Skip to content

Commit c369870

Browse files
committed
Add warning that this package is deprecated
1 parent 8f77bc0 commit c369870

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elastic/elasticsearch-serverless",
3-
"version": "0.9.0+20231031",
3+
"version": "0.9.1+20231031",
44
"description": "The official Node.js Elastic client for the Elasticsearch Serverless service.",
55
"main": "./index.js",
66
"types": "index.d.ts",

src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ import API from './api'
4848
import packageJson from '../package.json'
4949
import transportPackageJson from '@elastic/transport/package.json'
5050

51+
console.warn(`This package is deprecated and no longer supported. All serverless-specific Elasticsearch functionality has been merged back into @elastic/elasticsearch.`)
52+
5153
const kChild = Symbol('elasticsearchjs-child')
5254
const kInitialOptions = Symbol('elasticsearchjs-initial-options')
5355
let clientVersion: string = packageJson.version

0 commit comments

Comments
 (0)