Skip to content

Commit

Permalink
mk: support Node 22.x, drop Node 21.x
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed May 2, 2024
1 parent ca71ef1 commit c329010
Show file tree
Hide file tree
Showing 25 changed files with 43 additions and 47 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
unittest:
strategy:
matrix:
node: [18, 20, 21]
node: [18, 20, 22]
fail-fast: false
runs-on: ubuntu-22.04
steps:
Expand All @@ -48,11 +48,7 @@ jobs:
env:
PUPPETEER_SKIP_DOWNLOAD: true
- run: corepack pnpm test
if: ${{ matrix.node == 18 }}
- run: corepack pnpm test
env:
NODE_OPTIONS: --experimental-websocket
if: ${{ matrix.node == 21 }}
if: ${{ matrix.node == 18 || matrix.node == 22 }}
- run: corepack pnpm cover
env:
NODE_OPTIONS: --experimental-websocket
Expand Down Expand Up @@ -131,7 +127,7 @@ jobs:
fqdn: ndnts-nightly.ndn.today
env:
GH_PAT: ${{ secrets.NIGHTLY_ACCESS_TOKEN }}
- uses: nwtgck/actions-netlify@v2.1.0
- uses: nwtgck/actions-netlify@v3
with:
publish-dir: ./docs/
production-deploy: true
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

Supported platforms include:

* Node.js: 18.x and 20.x and 21.x, on Windows and Linux.
* Node.js: 18.x and 20.x and 22.x, on Windows and Linux.
* Generally, I support *Active LTS* and *Current* versions.
* Support for 18.x and 21.x will be dropped on or after 2024-04-23.
* Support for 18.x will be dropped soon.
* Bundlers: webpack 5.
* Firefox: latest version on Windows and Mac.
* Chrome: latest version on Windows, Mac, Android, and iOS 16.0+.
4 changes: 2 additions & 2 deletions integ/browser-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"@types/webpack": "^5.28.5",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"html-webpack-plugin": "^5.6.0",
"puppeteer": "^22.6.5",
"puppeteer": "^22.7.1",
"ts-loader": "^9.5.1",
"tslib": "^2.6.2",
"type-fest": "^4.15.0",
"type-fest": "^4.18.1",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
Expand Down
2 changes: 1 addition & 1 deletion mk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"js-yaml": "^4.1.0",
"readlink": "^3.0.0",
"split2": "^4.2.0",
"type-fest": "^4.15.0"
"type-fest": "^4.18.1"
},
"dependencies": {
"compare-versions": "6.1.0"
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
"test": "vitest",
"typedoc": "bash mk/typedoc.sh"
},
"packageManager": "pnpm@9.0.4+sha256.caa915eaae9d9aefccf50ee8aeda25a2f8684d8f9d5c6e367eaf176d97c1f89e",
"packageManager": "pnpm@9.1.0-0+sha256.c557b24d2298d9b5e3be7086ebf55a28253b008324d545f72645a6de89844102",
"devDependencies": {
"@types/node": "^20.12.7",
"@types/node": "^20.12.8",
"@types/wtfnode": "^0.7.3",
"@typescript/lib-dom": "npm:@types/[email protected]",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/coverage-v8": "^1.5.3",
"@yoursunny/xo-config": "0.58.0",
"codedown": "^3.1.0",
"tslib": "^2.6.2",
"typedoc": "^0.25.13",
"typescript": "~5.4.5",
"vitest": "^1.5.0"
"vitest": "^1.5.3"
},
"engines": {
"node": "^18.18.0 || ^20.10.0 || ^21.0.0"
"node": "^18.18.0 || ^20.12.0 || ^22.0.0"
},
"pnpm": {
"peerDependencyRules": {
Expand Down
2 changes: 1 addition & 1 deletion pkg/autoconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"@types/default-gateway": "^7.2.2",
"@types/koa": "^2.15.0",
"koa": "^2.15.3",
"type-fest": "^4.15.0"
"type-fest": "^4.18.1"
}
}
2 changes: 1 addition & 1 deletion pkg/fw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"retry": "^0.13.1",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
"typescript-event-target": "^1.1.0"
"typescript-event-target": "^1.1.1"
}
}
2 changes: 1 addition & 1 deletion pkg/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"idb-keyval": "^6.2.1",
"mnemonist": "^0.39.8",
"tslib": "^2.6.2",
"type-fest": "^4.15.0",
"type-fest": "^4.18.1",
"wait-your-turn": "^1.0.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions pkg/l3face/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"retry": "^0.13.1",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
"type-fest": "^4.15.0",
"typescript-event-target": "^1.1.0"
"type-fest": "^4.18.1",
"typescript-event-target": "^1.1.1"
}
}
2 changes: 1 addition & 1 deletion pkg/nac/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@yoursunny/asn1": "0.0.20200718",
"mnemonist": "^0.39.8",
"tslib": "^2.6.2",
"type-fest": "^4.15.0"
"type-fest": "^4.18.1"
},
"devDependencies": {
"@ndn/l3face": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions pkg/ndncert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
"@ndn/util": "workspace:*",
"@types/imap": "^0.8.40",
"@types/nodemailer": "^6.4.14",
"ajv": "^8.12.0",
"ajv": "^8.13.0",
"b64-lite": "^1.4.0",
"imap-emails": "^1.0.4",
"nodemailer": "^6.9.13",
"p-timeout": "^6.1.2",
"tslib": "^2.6.2",
"type-fest": "^4.15.0",
"typescript-event-target": "^1.1.0"
"type-fest": "^4.18.1",
"typescript-event-target": "^1.1.1"
},
"devDependencies": {
"@ndn/fw": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions pkg/nfdmgmt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@ndn/l3face": "workspace:*",
"@ndn/node-transport": "workspace:*",
"type-fest": "^4.15.0",
"typescript-event-target": "^1.1.0"
"type-fest": "^4.18.1",
"typescript-event-target": "^1.1.1"
}
}
2 changes: 1 addition & 1 deletion pkg/node-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"event-iterator": "^2.0.0",
"p-event": "^6.0.1",
"tslib": "^2.6.2",
"type-fest": "^4.15.0",
"type-fest": "^4.18.1",
"url-format-lax": "^2.0.0",
"url-parse-lax": "^5.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/packet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"buffer-compare": "^1.1.1",
"mnemonist": "^0.39.8",
"tslib": "^2.6.2",
"type-fest": "^4.15.0"
"type-fest": "^4.18.1"
},
"devDependencies": {
"@types/buffer-compare": "^0.0.33"
Expand Down
2 changes: 1 addition & 1 deletion pkg/psync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"p-defer": "^4.0.1",
"pako": "^2.1.0",
"tslib": "^2.6.2",
"typescript-event-target": "^1.1.0"
"typescript-event-target": "^1.1.1"
},
"devDependencies": {
"@ndn/fw": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions pkg/pyrepo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"p-defer": "^4.0.1",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
"type-fest": "^4.15.0",
"typescript-event-target": "^1.1.0"
"type-fest": "^4.18.1",
"typescript-event-target": "^1.1.1"
},
"devDependencies": {
"@ndn/keychain": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions pkg/repo-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
"p-event": "^6.0.1",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
"typescript-event-target": "^1.1.0",
"typescript-event-target": "^1.1.1",
"wait-your-turn": "^1.0.1"
},
"devDependencies": {
"@ndn/node-transport": "workspace:*",
"stream-mock": "^2.0.5",
"type-fest": "^4.15.0"
"type-fest": "^4.18.1"
}
}
4 changes: 2 additions & 2 deletions pkg/repo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"memory-level": "^1.0.0",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
"type-fest": "^4.15.0",
"typescript-event-target": "^1.1.0",
"type-fest": "^4.18.1",
"typescript-event-target": "^1.1.1",
"wait-your-turn": "^1.0.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions pkg/segmented-object/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"p-lazy": "^4.0.0",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
"typescript-event-target": "^1.1.0"
"typescript-event-target": "^1.1.1"
},
"devDependencies": {
"@ndn/l3face": "workspace:*",
"@ndn/repo-api": "workspace:*",
"stream-mock": "^2.0.5",
"type-fest": "^4.15.0"
"type-fest": "^4.18.1"
}
}
4 changes: 2 additions & 2 deletions pkg/svs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@ndn/util": "workspace:*",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
"type-fest": "^4.15.0",
"typescript-event-target": "^1.1.0"
"type-fest": "^4.18.1",
"typescript-event-target": "^1.1.1"
},
"devDependencies": {
"@ndn/keychain": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion pkg/sync-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"@ndn/packet": "workspace:*",
"@ndn/util": "workspace:*",
"tslib": "^2.6.2",
"typescript-event-target": "^1.1.0"
"typescript-event-target": "^1.1.1"
}
}
2 changes: 1 addition & 1 deletion pkg/tlv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"@ndn/util": "workspace:*",
"mnemonist": "^0.39.8",
"tslib": "^2.6.2",
"type-fest": "^4.15.0"
"type-fest": "^4.18.1"
}
}
2 changes: 1 addition & 1 deletion pkg/trust-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"mnemonist": "^0.39.8",
"obliterator": "^2.0.4",
"tslib": "^2.6.2",
"type-fest": "^4.15.0"
"type-fest": "^4.18.1"
},
"devDependencies": {
"@ndn/l3face": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions pkg/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"minimalistic-assert": "^1.0.1",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
"type-fest": "^4.15.0",
"type-fest": "^4.18.1",
"wait-your-turn": "^1.0.1"
},
"devDependencies": {
Expand All @@ -44,6 +44,6 @@
"write": "^2.0.0"
},
"engines": {
"node": "^18.18.0 || ^20.10.0 || ^21.0.0"
"node": "^18.18.0 || ^20.12.0 || ^22.0.0"
}
}
2 changes: 1 addition & 1 deletion pkg/ws-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"event-iterator": "^2.0.0",
"p-event": "^6.0.1",
"tslib": "^2.6.2",
"ws": "^8.16.0"
"ws": "^8.17.0"
},
"devDependencies": {
"@ndn/node-transport": "workspace:*"
Expand Down

0 comments on commit c329010

Please sign in to comment.