@opensearch-project/opensearch 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +13 -5
- package/ADMINS.md +13 -38
- package/CHANGELOG.md +54 -0
- package/COMPATIBILITY.md +4 -1
- package/MAINTAINERS.md +11 -73
- package/Makefile +2 -12
- package/README.md +4 -107
- package/RELEASING.md +7 -1
- package/USER_GUIDE.md +248 -0
- package/api/api/bulk.js +24 -2
- package/api/api/cat.js +320 -2
- package/api/api/clear_scroll.js +15 -2
- package/api/api/cluster.js +238 -2
- package/api/api/count.js +29 -2
- package/api/api/create.js +27 -2
- package/api/api/create_pit.js +88 -0
- package/api/api/dangling_indices.js +46 -2
- package/api/api/delete.js +24 -2
- package/api/api/delete_all_pits.js +53 -0
- package/api/api/delete_by_query.js +49 -2
- package/api/api/delete_by_query_rethrottle.js +15 -2
- package/api/api/delete_pit.js +61 -0
- package/api/api/delete_script.js +15 -2
- package/api/api/exists.js +26 -2
- package/api/api/exists_source.js +26 -2
- package/api/api/explain.js +28 -2
- package/api/api/features.js +25 -2
- package/api/api/field_caps.js +20 -2
- package/api/api/get.js +26 -2
- package/api/api/get_all_pits.js +53 -0
- package/api/api/get_script.js +17 -2
- package/api/api/get_script_context.js +12 -2
- package/api/api/get_script_languages.js +12 -2
- package/api/api/get_source.js +26 -2
- package/api/api/index.js +30 -2
- package/api/api/indices.js +816 -2
- package/api/api/info.js +12 -2
- package/api/api/ingest.js +90 -2
- package/api/api/mget.js +25 -2
- package/api/api/msearch.js +23 -2
- package/api/api/msearch_template.js +20 -2
- package/api/api/mtermvectors.js +1 -2
- package/api/api/nodes.js +92 -2
- package/api/api/ping.js +12 -2
- package/api/api/put_script.js +18 -2
- package/api/api/rank_eval.js +20 -2
- package/api/api/reindex.js +23 -2
- package/api/api/reindex_rethrottle.js +15 -2
- package/api/api/render_search_template.js +15 -2
- package/api/api/scripts_painless_execute.js +14 -2
- package/api/api/scroll.js +18 -2
- package/api/api/search.js +61 -2
- package/api/api/search_shards.js +20 -2
- package/api/api/search_template.js +28 -2
- package/api/api/shutdown.js +4 -2
- package/api/api/snapshot.js +211 -2
- package/api/api/tasks.js +57 -2
- package/api/api/terms_enum.js +2 -2
- package/api/api/termvectors.js +27 -2
- package/api/api/update.js +29 -2
- package/api/api/update_by_query.js +51 -2
- package/api/api/update_by_query_rethrottle.js +15 -2
- package/api/index.js +29 -2
- package/api/new.d.ts +65 -2
- package/api/opensearch_dashboards.d.ts +5 -2
- package/api/requestParams.d.ts +17 -2
- package/api/types.d.ts +48 -2
- package/api/utils.js +1 -2
- package/index.d.ts +605 -120
- package/index.js +2 -3
- package/index.mjs +1 -2
- package/jenkins/release.JenkinsFile +11 -0
- package/lib/Connection.d.ts +1 -2
- package/lib/Connection.js +5 -4
- package/lib/Helpers.d.ts +5 -4
- package/lib/Helpers.js +13 -17
- package/lib/Serializer.d.ts +1 -2
- package/lib/Serializer.js +2 -3
- package/lib/Transport.d.ts +10 -4
- package/lib/Transport.js +34 -7
- package/lib/aws/AwsSigv4Signer.js +176 -0
- package/lib/aws/errors.js +24 -0
- package/lib/aws/index.d.ts +39 -0
- package/lib/aws/index.js +19 -0
- package/lib/errors.d.ts +1 -2
- package/lib/errors.js +1 -2
- package/lib/pool/BaseConnectionPool.js +1 -2
- package/lib/pool/CloudConnectionPool.js +1 -2
- package/lib/pool/ConnectionPool.js +1 -2
- package/lib/pool/index.d.ts +1 -2
- package/lib/pool/index.js +1 -2
- package/package.json +36 -18
package/lib/errors.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
2
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
3
4
|
*
|
|
4
5
|
* The OpenSearch Contributors require contributions made to
|
|
5
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
6
7
|
* compatible open source license.
|
|
7
8
|
*
|
|
8
|
-
* Modifications Copyright OpenSearch Contributors. See
|
|
9
|
-
* GitHub history for details.
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
/*
|
package/lib/errors.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
2
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
3
4
|
*
|
|
4
5
|
* The OpenSearch Contributors require contributions made to
|
|
5
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
6
7
|
* compatible open source license.
|
|
7
8
|
*
|
|
8
|
-
* Modifications Copyright OpenSearch Contributors. See
|
|
9
|
-
* GitHub history for details.
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
/*
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
2
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
3
4
|
*
|
|
4
5
|
* The OpenSearch Contributors require contributions made to
|
|
5
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
6
7
|
* compatible open source license.
|
|
7
8
|
*
|
|
8
|
-
* Modifications Copyright OpenSearch Contributors. See
|
|
9
|
-
* GitHub history for details.
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
/*
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
2
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
3
4
|
*
|
|
4
5
|
* The OpenSearch Contributors require contributions made to
|
|
5
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
6
7
|
* compatible open source license.
|
|
7
8
|
*
|
|
8
|
-
* Modifications Copyright OpenSearch Contributors. See
|
|
9
|
-
* GitHub history for details.
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
/*
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
2
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
3
4
|
*
|
|
4
5
|
* The OpenSearch Contributors require contributions made to
|
|
5
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
6
7
|
* compatible open source license.
|
|
7
8
|
*
|
|
8
|
-
* Modifications Copyright OpenSearch Contributors. See
|
|
9
|
-
* GitHub history for details.
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
/*
|
package/lib/pool/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
2
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
3
4
|
*
|
|
4
5
|
* The OpenSearch Contributors require contributions made to
|
|
5
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
6
7
|
* compatible open source license.
|
|
7
8
|
*
|
|
8
|
-
* Modifications Copyright OpenSearch Contributors. See
|
|
9
|
-
* GitHub history for details.
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
/*
|
package/lib/pool/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
2
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
3
4
|
*
|
|
4
5
|
* The OpenSearch Contributors require contributions made to
|
|
5
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
6
7
|
* compatible open source license.
|
|
7
8
|
*
|
|
8
|
-
* Modifications Copyright OpenSearch Contributors. See
|
|
9
|
-
* GitHub history for details.
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
/*
|
package/package.json
CHANGED
|
@@ -6,12 +6,24 @@
|
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"require": "./index.js",
|
|
9
|
+
"types": "./index.d.ts",
|
|
9
10
|
"import": "./index.mjs"
|
|
10
11
|
},
|
|
12
|
+
"./aws": "./lib/aws/index.js",
|
|
11
13
|
"./": "./"
|
|
12
14
|
},
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
"*": {
|
|
17
|
+
".": [
|
|
18
|
+
"index.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"aws": [
|
|
21
|
+
"./lib/aws/index.d.ts"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
13
25
|
"homepage": "https://www.opensearch.org/",
|
|
14
|
-
"version": "2.
|
|
26
|
+
"version": "2.2.0",
|
|
15
27
|
"versionCanary": "7.10.0-canary.6",
|
|
16
28
|
"keywords": [
|
|
17
29
|
"opensearch",
|
|
@@ -23,16 +35,16 @@
|
|
|
23
35
|
"index"
|
|
24
36
|
],
|
|
25
37
|
"scripts": {
|
|
26
|
-
"test": "npm run lint && tap test/{unit,acceptance}/{
|
|
27
|
-
"test:unit": "tap test/unit/{
|
|
38
|
+
"test": "npm run lint && tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js && npm run test:types",
|
|
39
|
+
"test:unit": "tap test/unit/{*,**/*,**/**/*}.test.js",
|
|
28
40
|
"test:acceptance": "tap test/acceptance/*.test.js",
|
|
29
41
|
"test:integration": "node test/integration/index.js",
|
|
30
42
|
"test:integration:helpers": "tap test/integration/helpers/*.test.js",
|
|
31
43
|
"test:integration:helpers-secure": "tap test/integration/helpers-secure/*.test.js",
|
|
32
44
|
"test:types": "tsd",
|
|
33
|
-
"test:coverage-90": "tap test/{unit,acceptance}/{
|
|
34
|
-
"test:coverage-report": "tap test/{unit,acceptance}/{
|
|
35
|
-
"test:coverage-ui": "tap test/{unit,acceptance}/{
|
|
45
|
+
"test:coverage-90": "tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --branches=90 --functions=90 --lines=90 --statements=90 --nyc-arg=\"--exclude=api\"",
|
|
46
|
+
"test:coverage-report": "tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --branches=90 --functions=90 --lines=90 --statements=90 --nyc-arg=\"--exclude=api\" && nyc report --reporter=text-lcov > coverage.lcov",
|
|
47
|
+
"test:coverage-ui": "tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --coverage-report=html --nyc-arg=\"--exclude=api\"",
|
|
36
48
|
"lint": "eslint .",
|
|
37
49
|
"lint:fix": "eslint . --fix",
|
|
38
50
|
"license-checker": "license-checker --production --onlyAllow='MIT;Apache-2.0;Apache1.1;ISC;BSD-3-Clause;BSD-2-Clause'",
|
|
@@ -44,44 +56,50 @@
|
|
|
44
56
|
"company": "Elasticsearch BV"
|
|
45
57
|
},
|
|
46
58
|
"devDependencies": {
|
|
59
|
+
"@aws-sdk/types": "^3.160.0",
|
|
60
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
47
61
|
"@sinonjs/fake-timers": "github:sinonjs/fake-timers#0bfffc1",
|
|
48
|
-
"@types/node": "^
|
|
49
|
-
"babel-eslint": "^10.1.0",
|
|
62
|
+
"@types/node": "^18.11.18",
|
|
50
63
|
"convert-hrtime": "^5.0.0",
|
|
51
64
|
"cross-zip": "^4.0.0",
|
|
52
65
|
"dedent": "^0.7.0",
|
|
53
66
|
"deepmerge": "^4.2.2",
|
|
54
67
|
"dezalgo": "^1.0.3",
|
|
55
|
-
"eslint": "^
|
|
68
|
+
"eslint": "^8.30.0",
|
|
56
69
|
"eslint-config-prettier": "^8.5.0",
|
|
57
70
|
"eslint-plugin-prettier": "^4.0.0",
|
|
58
71
|
"fast-deep-equal": "^3.1.3",
|
|
59
72
|
"into-stream": "^6.0.0",
|
|
60
73
|
"js-yaml": "^4.1.0",
|
|
74
|
+
"jsdoc": "^4.0.0",
|
|
61
75
|
"license-checker": "^25.0.1",
|
|
62
76
|
"minimist": "^1.2.5",
|
|
63
|
-
"node-fetch": "^2.
|
|
77
|
+
"node-fetch": "^3.2.10",
|
|
64
78
|
"ora": "^5.4.0",
|
|
65
79
|
"prettier": "^2.6.2",
|
|
66
80
|
"pretty-hrtime": "^1.0.3",
|
|
67
81
|
"proxy": "^1.0.2",
|
|
68
|
-
"rimraf": "^
|
|
82
|
+
"rimraf": "^4.1.1",
|
|
69
83
|
"semver": "^7.3.5",
|
|
70
|
-
"simple-git": "^3.
|
|
84
|
+
"simple-git": "^3.15.0",
|
|
71
85
|
"simple-statistics": "^7.7.0",
|
|
72
|
-
"split2": "^
|
|
86
|
+
"split2": "^4.1.0",
|
|
73
87
|
"stoppable": "^1.1.0",
|
|
74
|
-
"tap": "^
|
|
75
|
-
"tsd": "^0.
|
|
88
|
+
"tap": "^16.3.0",
|
|
89
|
+
"tsd": "^0.24.1",
|
|
76
90
|
"workq": "^3.0.0",
|
|
77
|
-
"xmlbuilder2": "^
|
|
91
|
+
"xmlbuilder2": "^3.0.2"
|
|
78
92
|
},
|
|
79
93
|
"dependencies": {
|
|
94
|
+
"aws4": "^1.11.0",
|
|
80
95
|
"debug": "^4.3.1",
|
|
81
|
-
"hpagent": "^
|
|
96
|
+
"hpagent": "^1.2.0",
|
|
82
97
|
"ms": "^2.1.3",
|
|
83
98
|
"secure-json-parse": "^2.4.0"
|
|
84
99
|
},
|
|
100
|
+
"resolutions": {
|
|
101
|
+
"**/strip-ansi": "^6.0.1"
|
|
102
|
+
},
|
|
85
103
|
"license": "Apache-2.0",
|
|
86
104
|
"repository": {
|
|
87
105
|
"type": "git",
|
|
@@ -104,4 +122,4 @@
|
|
|
104
122
|
"coverage": false,
|
|
105
123
|
"jobs-auto": true
|
|
106
124
|
}
|
|
107
|
-
}
|
|
125
|
+
}
|