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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add Node.js 22 support #10498

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16, 18, 20]
node-version: [18, 20, 22]
include:
- os: windows-latest
node-version: 18 # LTS
node-version: 20 # LTS
- os: macos-latest
node-version: 18 # LTS
node-version: 20 # LTS
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18 # LTS
node-version: 20 # LTS
- name: Install dependencies
run: npm ci
- name: Build
Expand All @@ -90,7 +90,7 @@ jobs:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18 # LTS
node-version: 20 # LTS
- name: Install dependencies
run: npm ci
- name: Build
Expand All @@ -112,7 +112,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18 # LTS
node-version: 20 # LTS
- name: Install dependencies
run: npm ci
- name: Verify commit linting
Expand All @@ -125,7 +125,7 @@ jobs:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18 # LTS
node-version: 20 # LTS
- name: Install dependencies
run: npm ci
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate-config-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18 # LTS
node-version: 20 # LTS
- name: Validate Renovate config
run: npx -p renovate --yes renovate-config-validator
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll.eslint": true
"source.organizeImports": "explicit",
"source.fixAll.eslint": "explicit"
},
"files.eol": "\n",
"files.exclude": {
Expand Down
2 changes: 1 addition & 1 deletion acceptance/extension-logging-fluentd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "acceptance/extension-logging-fluentd"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion acceptance/repository-cloudant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "acceptance/repository-cloudant"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion acceptance/repository-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "acceptance/repository-mongodb"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion acceptance/repository-mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "acceptance/repository-mysql"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion acceptance/repository-postgresql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "acceptance/repository-postgresql"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"directory": "benchmark"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion bodyparsers/rest-msgpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"directory": "bodyparsers/rest-msgpack"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"directory": "docs"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"version": "node ./bin/copy-readmes.js && node ./bin/copy-changelogs.js && cd .. && npm run tsdocs",
Expand Down
2 changes: 1 addition & 1 deletion examples/access-control-migration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"directory": "examples/access-control-migration"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/binding-resolution/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"directory": "examples/binding-resolution"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"directory": "examples/context"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
Expand Down
2 changes: 1 addition & 1 deletion examples/express-composition/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"directory": "examples/express-composition"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/file-transfer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"directory": "examples/file-transfer"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
Expand Down
2 changes: 1 addition & 1 deletion examples/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"directory": "examples/graphql"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
Expand Down
2 changes: 1 addition & 1 deletion examples/greeter-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"url": "https://github.com/loopbackio/loopback-next/issues"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/greeting-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"url": "https://github.com/loopbackio/loopback-next/issues"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"directory": "examples/hello-world"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
Expand Down
2 changes: 1 addition & 1 deletion examples/lb3-application/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"directory": "examples/lb3-application"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/log-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"url": "https://github.com/loopbackio/loopback-next/issues"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/metrics-prometheus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"directory": "examples/metrics-prometheus"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
Expand Down
2 changes: 1 addition & 1 deletion examples/multi-tenancy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"directory": "examples/multi-tenancy"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/passport-login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"directory": "examples/passport-login"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/references-many/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"directory": "examples/references-many"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/rest-crud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"directory": "examples/rest-crud"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/rpc-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"directory": "examples/rpc-server"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/soap-calculator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"directory": "examples/soap-calculator"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/socketio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"directory": "examples/socketio"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/todo-jwt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"directory": "examples/todo-jwt"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/todo-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"directory": "examples/todo-list"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"directory": "examples/todo"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/validation-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"directory": "examples/validation-app"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"directory": "examples/webpack"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion extensions/apiconnect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"directory": "extensions/apiconnect"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
Expand Down
2 changes: 1 addition & 1 deletion extensions/authentication-jwt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"directory": "extensions/authentication-jwt"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion extensions/authentication-passport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"directory": "extensions/authentication-passport"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
Expand Down
2 changes: 1 addition & 1 deletion extensions/context-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"directory": "extensions/context-explorer"
},
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 22"
},
"scripts": {
"build": "lb-tsc",
Expand Down