Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual master cherrypick into 2.x #550

Merged
Merged
Changes from 1 commit
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
02b458e
Adding new OpenSearch versions and updating compatibility matrix (#257)
VachaShah Jun 27, 2022
0b194b3
Using standardized templates from .github (#249)
VachaShah Jul 19, 2022
3e5503e
Adding link checker workflow (#262)
VachaShah Jul 20, 2022
f5c6d16
feat: allow `doc` overwrite in `onDocument` (#263)
robdasilva Jul 21, 2022
4678ab0
fix: add missing memory circuit breaker options (#266)
robdasilva Jul 27, 2022
ad2be2e
Upgrade dependencies (#272)
VachaShah Aug 7, 2022
f6e4661
Removing OpenDistro integration tests (#271)
VachaShah Aug 8, 2022
717b9a9
Adding Dependabot configuration (#278)
VachaShah Aug 25, 2022
49cac0f
Adds bulk example to README (#277)
harshavamsi Aug 26, 2022
c8cb130
Bump semver from 7.3.5 to 7.3.7 (#280)
dependabot[bot] Aug 26, 2022
3f29592
Bump simple-git from 3.5.0 to 3.13.0 (#286)
dependabot[bot] Aug 29, 2022
05c466a
Fix #253 Cannot read property 'then' of null in Transport.js issue. (…
rawpixel-vincent Sep 5, 2022
9b6b077
Add AwsSigV4 signing functionality (#279)
harshavamsi Sep 7, 2022
7aa1ddb
fix: support TS resolution for .mjs (#296)
alexsasharegan Sep 27, 2022
b81cc52
fix awssigv4signer.test.js tests not running (#294)
rawpixel-vincent Sep 29, 2022
a345f93
Removed Unused Variables (#301)
nhtruong Sep 29, 2022
d862d70
Fix new line problem between diffs (#302)
harshavamsi Sep 30, 2022
5c1b9cd
Feature/add default credentials provider (#295)
rawpixel-vincent Sep 30, 2022
8582ce9
Implemented Retry for OpenSearch Container (#304)
nhtruong Oct 11, 2022
7d3f774
Update Maintainers List (#308)
nhtruong Oct 17, 2022
94dbb65
Bump node-fetch from 2.6.7 to 3.2.10 (#281)
dependabot[bot] Oct 18, 2022
d25505b
Bump @aws-sdk/types from 3.160.0 to 3.190.0 (#309)
dependabot[bot] Oct 18, 2022
c08ddc4
Bump prettier from 2.6.2 to 2.7.1 (#310)
dependabot[bot] Oct 19, 2022
03d1b2b
Add changelog and changelog verifier (#306)
harshavamsi Oct 20, 2022
c4a9119
Bump tsd from 0.22.0 to 0.24.1 (#312)
dependabot[bot] Oct 20, 2022
7d246cb
issue #291 mutability of headers (#311)
mmtdm Oct 25, 2022
d65c45c
Add release workflows (#317)
gaiksaya Oct 31, 2022
9281b4f
Bump semver from 7.3.7 to 7.3.8 (#313)
dependabot[bot] Nov 1, 2022
7ab734c
Bump Version from 2.1.0 to 2.1.1 (#318)
nhtruong Nov 9, 2022
d9dac70
Add release details and bump the jenkins lib version (#319)
gaiksaya Nov 9, 2022
60243e7
[FEATURE] Allow overriding the aws service identifier in AwsSigv4Sign…
bwg Nov 28, 2022
669f892
Bumps simple-git from 3.4.0 to 3.15.0 (#341)
ananzh Dec 16, 2022
6dac70d
Added skip-changelog label (#339)
nhtruong Dec 16, 2022
b04f201
Implement JSDOC (#337)
nhtruong Dec 16, 2022
20e10ea
Bump xmlbuilder2 from 2.4.1 to 3.0.2 (#321)
dependabot[bot] Dec 19, 2022
4ed5f60
Bump minimatch from 3.0.4 to 3.1.2 (#345)
dependabot[bot] Dec 19, 2022
a6586f0
Removed test artifacts from gh_pages workflow (#347)
nhtruong Dec 20, 2022
af9a16c
Bump eslint-plugin-prettier from 4.0.0 to 4.2.1 (#351)
dependabot[bot] Dec 27, 2022
4d5b6ed
Bump eslint from 7.32.0 to 8.30.0 (#346)
dependabot[bot] Dec 27, 2022
b523e85
Bump minimist from 1.2.6 to 1.2.7 (#350)
dependabot[bot] Dec 27, 2022
2d9b07c
Updated MAINTAINERS.md to match recommended opensearch-project format…
dblock Jan 6, 2023
0345836
Bump @aws-sdk/types from 3.190.0 to 3.226.0 (#355)
dependabot[bot] Jan 9, 2023
87ffd2a
Bump json5 from 2.2.0 to 2.2.3 (#359)
dependabot[bot] Jan 9, 2023
a1b87a7
Bump split2 from 3.2.2 to 4.1.0 (#354)
dependabot[bot] Jan 9, 2023
c5d1a65
Bump @types/node from 15.14.7 to 18.11.18 (#353)
dependabot[bot] Jan 9, 2023
88fc944
Added point in time APIs (#348)
ajygupta Jan 11, 2023
6fa2c72
Ensure Dependabot PR workflow retriggers on label change (#360)
Xtansia Jan 17, 2023
747c6e6
Bump prettier from 2.7.1 to 2.8.3 (#363)
dependabot[bot] Jan 18, 2023
7e7e016
Fixed missing namespace for API-PIT endpoints (#364)
nhtruong Jan 18, 2023
d41ffbd
Bump eslint from 8.30.0 to 8.32.0 (#362)
dependabot[bot] Jan 19, 2023
db1ee9e
Bump hpagent from 0.1.2 to 1.2.0 (#361)
dependabot[bot] Jan 19, 2023
92a3f29
Bump eslint-config-prettier from 8.5.0 to 8.6.0 (#368)
dependabot[bot] Jan 23, 2023
8737114
Bump rimraf from 3.0.2 to 4.1.1 (#370)
dependabot[bot] Jan 23, 2023
90694dc
Added Support for AOSS (#366)
nhtruong Jan 23, 2023
cd2785b
Updated user guide to include Amazon OpenSearch Serverless (#372)
saimedhi Jan 24, 2023
059ab2e
Bump simple-git from 3.15.1 to 3.16.0 (#373)
dependabot[bot] Jan 27, 2023
aa7a5e7
Bump secure-json-parse from 2.4.0 to 2.7.0 (#369)
dependabot[bot] Jan 30, 2023
8dc1be0
Bump @aws-sdk/types from 3.226.0 to 3.257.0 (#375)
dependabot[bot] Jan 30, 2023
649b3bf
Bump ora from 5.4.1 to 6.1.2 (#376)
dependabot[bot] Jan 31, 2023
876e129
Bump @types/node from 18.11.18 to 18.11.19 (#380)
dependabot[bot] Feb 6, 2023
00ec34e
Allow fields in BulkOperation to be optional (#378)
camerondurham Feb 8, 2023
b690073
Bump eslint from 8.32.0 to 8.33.0 (#379)
dependabot[bot] Feb 8, 2023
edacb00
Bump simple-statistics from 7.7.0 to 7.8.3 (#384)
dependabot[bot] Feb 13, 2023
c51d4f7
Bump dezalgo from 1.0.3 to 1.0.4 (#383)
dependabot[bot] Feb 13, 2023
b4a7848
Created untriaged issue workflow. (#386)
dblock Feb 14, 2023
229fb47
Add missing types for AwsSigv4SignerOptions.service (#377)
magoz Feb 14, 2023
36c485e
Bump tsd from 0.24.1 to 0.25.0 (#389)
dependabot[bot] Feb 20, 2023
6efbacf
Bump minimist from 1.2.7 to 1.2.8 (#388)
dependabot[bot] Feb 20, 2023
8ae5241
Bump prettier from 2.8.3 to 2.8.4 (#407)
dependabot[bot] Feb 27, 2023
792033b
Bump aws4 from 1.11.0 to 1.12.0 (#406)
dependabot[bot] Feb 28, 2023
ebdf199
Downgraded @types/node to 17 from 18 due to breaking changes. (#405)
nhtruong Feb 28, 2023
6e3752c
Updated Maintainers list and changelogs (#409)
nhtruong Feb 28, 2023
d5e6fd8
Bump deepmerge from 4.2.2 to 4.3.0 (#414)
dependabot[bot] Mar 6, 2023
dfcd31d
[CCI] Refactor: Remove unnecessary `data` argument when invoking `Ope…
timursaurus Mar 8, 2023
eb83f6b
Bump tap from 16.3.0 to 16.3.4 (#413)
dependabot[bot] Mar 8, 2023
2fdf090
[CCI] fix: pass required `data` argument to SerializationError class …
timursaurus Mar 9, 2023
f85f818
Fix deprecated folder mapping "./" in the "exports" field (#416)
silvialeung Mar 11, 2023
74e171e
[CCI] doc: fix grammar (#427)
Naurabay Mar 11, 2023
6726ff2
Bump rimraf from 4.1.1 to 4.4.0 (#432)
dependabot[bot] Mar 13, 2023
902779c
Bump tsd from 0.25.0 to 0.27.0 (#431)
dependabot[bot] Mar 13, 2023
9b5a439
[CCI] Remove waitCluster in Integration Tests (#423)
Wielmany Mar 13, 2023
d2840af
[CCI] Update Developer Guide (#436)
Wielmany Mar 20, 2023
e163597
Bump simple-git from 3.16.0 to 3.17.0 (#447)
dependabot[bot] Mar 20, 2023
2c7a158
Bump @types/node from 17.0.45 to 18.15.3 (#448)
dependabot[bot] Mar 20, 2023
89ba1e0
[CCI] Add pull request template (#440)
Wielmany Mar 21, 2023
3cb9ee7
[CCI] Don't run tests on PRs with doc changes only (#441)
Wielmany Mar 22, 2023
5cc31a0
Fixed deprecation warnings (#446)
ilikmeister Mar 22, 2023
f72a684
added the solution for the possible error during yarn installation on…
ilikmeister Mar 24, 2023
a4cc1c1
[CCI] Bump caniuse-lite from 1.0.30001249 to 1.0.30001469 (#459)
Wielmany Mar 27, 2023
47deb9f
[CCI] Update developerGuide regarding yarn troubleshoot steps (#456)
Wielmany Mar 27, 2023
86f29ba
Bump eslint-config-prettier from 8.6.0 to 8.8.0 (#463)
dependabot[bot] Mar 27, 2023
12a0faa
Bump @types/node from 18.15.3 to 18.15.10 (#462)
dependabot[bot] Mar 27, 2023
e99dadf
Bump deepmerge from 4.3.0 to 4.3.1 (#468)
dependabot[bot] Apr 3, 2023
1466fde
Bump split2 from 4.1.0 to 4.2.0 (#467)
dependabot[bot] Apr 3, 2023
22ed3d1
[CCI] Create index_template guide (#479)
Nicksqain Apr 10, 2023
a833d05
Create bulk guide (#480)
Nicksqain Apr 10, 2023
307ab98
Create index lifecycle guide (#482)
Nicksqain Apr 10, 2023
0857455
Create document lifecycle guide (#481)
Nicksqain Apr 10, 2023
a4279d3
Bump prettier from 2.8.4 to 2.8.7 (#487)
dependabot[bot] Apr 10, 2023
1bedb41
Bump jsdoc from 4.0.0 to 4.0.2 (#485)
dependabot[bot] Apr 10, 2023
b0b9c44
Bump @babel/eslint-parser from 7.19.1 to 7.21.3 (#486)
dependabot[bot] Apr 10, 2023
bb34981
feat: NotCompatibleError (#484)
timursaurus Apr 10, 2023
9f09f33
[CCI] Connection `request` method callback (#478)
timursaurus Apr 10, 2023
64a4d81
[CCI] Create advanced index actions guide (#483)
Nicksqain Apr 10, 2023
326a441
Create search guide (#488)
Nicksqain Apr 13, 2023
c87780b
Add Search guide (#489)
sayuree Apr 13, 2023
e8d88fd
[CCI] feat: add missing createConnection type (#490)
timursaurus Apr 13, 2023
5e9f08f
Bump rimraf from 4.4.0 to 5.0.0 (#492)
dependabot[bot] Apr 17, 2023
5db50f1
Bump eslint from 8.33.0 to 8.38.0 (#494)
dependabot[bot] Apr 17, 2023
8adf127
Bump @types/node from 18.15.10 to 18.15.11 (#493)
dependabot[bot] Apr 17, 2023
c1e2674
Bumped Version 2.2.1 In preparation for release (#495)
nhtruong Apr 18, 2023
1bf9357
[Bug] Fixed bundler.yml (#497)
nhtruong Apr 18, 2023
faf3446
Implemented Docker Image caching for `integration-unreleased` workflo…
nhtruong Apr 19, 2023
44721c3
Bump prettier from 2.8.7 to 2.8.8 (#501)
dependabot[bot] Apr 24, 2023
74ec5a4
Bump ora from 6.1.2 to 6.3.0 (#500)
dependabot[bot] Apr 24, 2023
b6e7106
Bump @types/node from 18.15.11 to 18.16.0 (#499)
dependabot[bot] Apr 24, 2023
abc2b94
Bump eslint from 8.38.0 to 8.39.0 (#504)
dependabot[bot] May 1, 2023
e961fdd
Bump xmlbuilder2 from 3.0.2 to 3.1.0 (#503)
dependabot[bot] May 1, 2023
0726ef6
Bump simple-git from 3.17.0 to 3.18.0 (#512)
dependabot[bot] May 9, 2023
c39655b
Bump @babel/eslint-parser from 7.21.3 to 7.21.8 (#513)
dependabot[bot] May 9, 2023
5288b4b
Bump @aws-sdk/types from 3.257.0 to 3.329.0 (#516)
dependabot[bot] May 9, 2023
e6cb6de
Added timursaurus to MAINTAINERS.md (#517)
nhtruong May 15, 2023
ddf5d87
Bump semver from 7.3.8 to 7.5.1 (#520)
dependabot[bot] May 15, 2023
a37b0e0
Bump xmlbuilder2 from 3.1.0 to 3.1.1 (#519)
dependabot[bot] May 15, 2023
d2ca2d6
Bump @types/node from 18.16.0 to 20.1.4 (#518)
dependabot[bot] May 15, 2023
9811938
Bump eslint from 8.39.0 to 8.41.0 (#525)
dependabot[bot] May 22, 2023
58cef1c
Bump node-fetch from 3.2.10 to 3.3.1 (#526)
dependabot[bot] May 23, 2023
d015a50
Bump ora from 6.3.0 to 6.3.1 (#524)
dependabot[bot] May 23, 2023
961339e
Bump @aws-sdk/types from 3.329.0 to 3.341.0 (#527)
dependabot[bot] May 30, 2023
8e5547e
Bump @types/node from 20.1.4 to 20.2.5 (#528)
dependabot[bot] May 30, 2023
3e07ab4
Add upgrading NPM to all workflows running older Node.js versions (#545)
AMoo-Miki Jul 12, 2023
fbe04e3
Add serialization and deserialization of numerals larger than `Number…
AMoo-Miki Jul 12, 2023
bb5fab7
Upgrade and secure the backport workflow (#547)
AMoo-Miki Jul 12, 2023
3127d67
Version Bump: 2.3.0 (#546)
nhtruong Jul 12, 2023
3f0b50c
Sync with `main`
AMoo-Miki Jul 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed Unused Variables (#301)
* Removed Unused Variables
- Removed `"no-unused-vars": "off"` in eslintrc.
- Disabled eslint's `no-unused-vars` check where the unused vars actually serve a purpose, and removed the unused vars otherwise.

Signed-off-by: Theo Truong <theotr@amazon.com>

* - eslint's `no-unused-vars` rule now ignores variables with leading underscore.

Signed-off-by: Theo Truong <theotr@amazon.com>

Signed-off-by: Theo Truong <theotr@amazon.com>
nhtruong authored and AMoo-Miki committed Jul 12, 2023

Verified

This commit was signed with the committer’s verified signature.
knqyf263 Teppei Fukuda
commit a345f93ac07b00cdab2dfd78cb525a9ed925ace5
13 changes: 9 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -18,9 +18,14 @@
"endOfLine": "auto"
}
],
/*temporarily turn off no-unused-vars, open an issue to track https://github.com/opensearch-project/opensearch-js/issues/241*/
"no-unused-vars": "off",
/*temporarily turn off no-dupe-else-if, open an issue to track https://github.com/opensearch-project/opensearch-js/issues/240*/
"no-dupe-else-if": "off"
"no-dupe-else-if": "off",
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_.*",
"argsIgnorePattern": "^_.*"
}
]
}
}
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -286,7 +286,7 @@ class Client extends OpenSearchAPI {

close(callback) {
if (callback == null) {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
this.close(resolve);
});
}
4 changes: 3 additions & 1 deletion lib/Connection.js
Original file line number Diff line number Diff line change
@@ -249,7 +249,8 @@ class Connection {
// We want to hide `auth`, `agent` and `ssl` since they made
// the logs very hard to read. The user can still
// access them with `instance.agent` and `instance.ssl`.
[inspect.custom](depth, options) {
[inspect.custom]() {
// eslint-disable-next-line no-unused-vars
const { authorization, ...headers } = this.headers;

return {
@@ -265,6 +266,7 @@ class Connection {
}

toJSON() {
// eslint-disable-next-line no-unused-vars
const { authorization, ...headers } = this.headers;

return {
14 changes: 6 additions & 8 deletions lib/Helpers.js
Original file line number Diff line number Diff line change
@@ -97,7 +97,6 @@ class Helpers {
}
params.scroll = params.scroll || '1m';
appendFilterPath('_scroll_id', params, false);
const { method, body, index, ...querystring } = params;

let response = null;
for (let i = 0; i <= maxRetries; i++) {
@@ -132,9 +131,8 @@ class Helpers {
for (let i = 0; i <= maxRetries; i++) {
response = await this[kClient].scroll(
{
scroll: querystring.scroll,
rest_total_hits_as_int:
querystring.rest_total_hits_as_int || querystring.restTotalHitsAsInt,
scroll: params.scroll,
rest_total_hits_as_int: params.rest_total_hits_as_int || params.restTotalHitsAsInt,
body: { scroll_id },
},
options
@@ -199,7 +197,7 @@ class Helpers {
let timeoutRef = null;
const operationsStream = new Readable({
objectMode: true,
read(size) {},
read() {},
});

const p = iterate();
@@ -332,7 +330,7 @@ class Helpers {
return { semaphore, finish };

function finish() {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
if (running === 0) {
resolve();
} else {
@@ -346,7 +344,7 @@ class Helpers {
running += 1;
return pImmediate(send);
} else {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
resolveSemaphore = resolve;
});
}
@@ -648,7 +646,7 @@ class Helpers {
running += 1;
return pImmediate(send);
} else {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
resolveSemaphore = resolve;
});
}
2 changes: 1 addition & 1 deletion lib/Transport.js
Original file line number Diff line number Diff line change
@@ -682,7 +682,7 @@ function randomSelector(connections) {
function generateRequestId() {
const maxInt = 2147483647;
let nextReqId = 0;
return function genReqId(params, options) {
return function genReqId() {
return (nextReqId = (nextReqId + 1) & maxInt);
};
}
4 changes: 2 additions & 2 deletions scripts/release-canary.js
Original file line number Diff line number Diff line change
@@ -90,8 +90,8 @@ async function release(opts) {
await writeFile(join(__dirname, '..', '.npmignore'), originalNpmIgnore, 'utf8');
}

function confirm(question) {
return new Promise((resolve, reject) => {
function confirm() {
return new Promise((resolve) => {
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
4 changes: 2 additions & 2 deletions scripts/utils/generateApis.js
Original file line number Diff line number Diff line change
@@ -267,7 +267,7 @@ function generateSingleApi(version, spec, common) {
documentation: generateDocumentation(spec[api], api),
};

function genRequiredChecks(param) {
function genRequiredChecks() {
const code = required.map(_genRequiredCheck).concat(_noBody()).filter(Boolean);

if (code.length) {
@@ -319,7 +319,7 @@ function generateSingleApi(version, spec, common) {
: str.replace(/_([a-z])/g, (k) => k[1].toUpperCase());
};

return acceptedQuerystring.reduce((acc, val, index) => {
return acceptedQuerystring.reduce((acc, val) => {
if (toCamelCase(val) !== val) {
acc[toCamelCase(val)] = val;
}
Loading