-
Notifications
You must be signed in to change notification settings - Fork 915
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
[Backport 2.x] Add support for Node.js >=14.20.1 <19 (#4071) #4153
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
14.21.3 | ||
16.20.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
14.21.3 | ||
16.20.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG NODE_VERSION=14.20.1 | ||
ARG NODE_VERSION=18.16.0 | ||
FROM node:${NODE_VERSION} AS base | ||
|
||
ENV HOME '.' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
"test:jest:ci": "scripts/use_node scripts/jest --ci --colors --runInBand", | ||
"test:jest:ci:coverage": "scripts/use_node scripts/jest --ci --colors --runInBand --coverage", | ||
"test:jest_integration": "scripts/use_node scripts/jest_integration", | ||
"test:jest_integration:ci": "scripts/use_node scripts/jest_integration --ci --colors --max-old-space-size=5120", | ||
"test:jest_integration:ci": "scripts/use_node scripts/jest_integration --ci --colors", | ||
"test:mocha": "scripts/use_node scripts/mocha", | ||
"test:mocha:coverage": "yarn nyc --reporter=text-summary --reporter=lcov --report-dir=./target/opensearch-dashboards-coverage/mocha scripts/use_node scripts/mocha", | ||
"test:ftr": "scripts/use_node scripts/functional_tests", | ||
|
@@ -79,7 +79,7 @@ | |
"url": "https://github.com/opensearch-project/opensearch-dashboards.git" | ||
}, | ||
"resolutions": { | ||
"**/@types/node": "^14.17.32", | ||
"**/@types/node": "~18.7.0", | ||
"**/ansi-regex": "^5.0.1", | ||
"**/async": "^3.2.3", | ||
"**/d3-color": "^3.1.0", | ||
|
@@ -99,6 +99,7 @@ | |
"**/minimatch": "^3.0.5", | ||
"**/jest-config": "npm:@amoo-miki/[email protected]", | ||
"**/jest-jasmine2": "npm:@amoo-miki/[email protected]", | ||
"**/set-value": "^4.1.0", | ||
"**/xml2js": "^0.5.0", | ||
"**/yaml": "^2.2.2" | ||
}, | ||
|
@@ -170,7 +171,7 @@ | |
"deep-freeze-strict": "^1.1.1", | ||
"del": "^6.1.1", | ||
"dns-sync": "^0.2.1", | ||
"elastic-apm-node": "^3.7.0", | ||
"elastic-apm-node": "^3.43.0", | ||
"elasticsearch": "^16.7.0", | ||
"http-aws-es": "npm:@zhongnansu/[email protected]", | ||
"execa": "^4.0.2", | ||
|
@@ -180,7 +181,7 @@ | |
"getos": "^3.2.1", | ||
"glob": "^7.1.7", | ||
"glob-all": "^3.2.1", | ||
"globby": "^8.0.1", | ||
"globby": "^11.1.0", | ||
"handlebars": "4.7.7", | ||
"hjson": "3.2.1", | ||
"http-proxy-agent": "^2.1.0", | ||
|
@@ -215,6 +216,7 @@ | |
"rison-node": "1.0.2", | ||
"rxjs": "^6.5.5", | ||
"semver": "^5.7.0", | ||
"set-value": "^4.1.0", | ||
"source-map-support": "^0.5.19", | ||
"symbol-observable": "^1.2.0", | ||
"tar": "^6.1.11", | ||
|
@@ -305,7 +307,7 @@ | |
"@types/mock-fs": "^4.10.0", | ||
"@types/moment-timezone": "^0.5.12", | ||
"@types/mustache": "^0.8.31", | ||
"@types/node": "^14.17.32", | ||
"@types/node": "~18.7.0", | ||
"@types/node-forge": "^1.0.1", | ||
"@types/normalize-path": "^3.0.0", | ||
"@types/pegjs": "^0.10.1", | ||
|
@@ -400,7 +402,7 @@ | |
"immer": "^9.0.6", | ||
"intl-messageformat-parser": "^1.4.0", | ||
"jest": "^27.5.1", | ||
"jest-canvas-mock": "^2.3.1", | ||
"jest-canvas-mock": "^2.5.1", | ||
"jest-raw-loader": "^1.0.1", | ||
"jimp": "^0.14.0", | ||
"jquery": "^3.5.0", | ||
|
@@ -473,7 +475,7 @@ | |
"zlib": "^1.0.5" | ||
}, | ||
"engines": { | ||
"node": "^14.20.1", | ||
"yarn": "^1.21.1" | ||
"node": ">=14.20.1 <19", | ||
"yarn": "^1.22.10" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,6 @@ | |
"@osd/babel-preset": "1.0.0", | ||
"raw-loader": "^4.0.2", | ||
"typescript": "4.0.2", | ||
"webpack": "^4.41.5" | ||
"webpack": "npm:@amoo-miki/[email protected]" | ||
} | ||
} |
5 changes: 2 additions & 3 deletions
5
packages/osd-config-schema/src/errors/__snapshots__/schema_error.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/osd-dev-utils/src/serializers/strip_promises_serizlizer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const createStripPromisesSerializer = () => ({ | ||
serialize: (value: string) => value.replace(/("value": Promise) \{[^}]+}/gm, '$1 {}'), | ||
test: (value: any) => typeof value === 'string', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,6 @@ | |
"glob-all": "^3.2.1", | ||
"lru-cache": "^4.1.5", | ||
"resolve": "^1.7.1", | ||
"webpack": "^4.41.5" | ||
"webpack": "npm:@amoo-miki/[email protected]" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn’t this be 16.20.0 too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should but I think there is a general follow up to pull this correctly. I don't think we have verified if this Dockerfile works