Skip to content

Commit

Permalink
mk: support Node.js 21.x
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Nov 9, 2023
1 parent c915ce6 commit e3b6d08
Show file tree
Hide file tree
Showing 28 changed files with 83 additions and 83 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
path: ~/.local/share/pnpm/store
key: build-${{ hashFiles('**/package.json') }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
- run: corepack pnpm install
Expand All @@ -27,7 +27,7 @@ jobs:
unittest:
strategy:
matrix:
node: [18, 20]
node: [18, 20, 21]
fail-fast: false
runs-on: ubuntu-22.04
steps:
Expand All @@ -36,7 +36,7 @@ jobs:
with:
path: ~/.local/share/pnpm/store
key: unittest-${{ matrix.node }}-${{ hashFiles('**/package.json') }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
Expand Down Expand Up @@ -70,9 +70,9 @@ jobs:
~/.local/share/pnpm/store
~/.cache/puppeteer
key: integ-${{ hashFiles('**/package.json') }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: Install dependencies
run: |
echo "deb [arch=amd64 trusted=yes] https://nfd-nightly-apt.ndn.today/ubuntu jammy main" \
Expand Down Expand Up @@ -103,9 +103,9 @@ jobs:
with:
path: ~/.local/share/pnpm/store
key: publish-${{ hashFiles('**/package.json') }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- run: corepack pnpm install
env:
PUPPETEER_SKIP_DOWNLOAD: true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

Supported platforms include:

* Node.js: 18.x and 20.x, on Windows and Linux.
* Node.js: 18.x and 20.x and 21.x, on Windows and Linux.
* Bundlers: webpack 5.
* Firefox: latest version on Windows and Mac.
* Chrome: latest version on Windows, Mac, Android, and iOS 16.0+.
8 changes: 4 additions & 4 deletions integ/browser-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
},
"devDependencies": {
"@nodelib/fs.walk": "^2.0.0",
"@types/webpack": "^5.28.3",
"fork-ts-checker-webpack-plugin": "^9.0.0",
"@types/webpack": "^5.28.5",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"html-webpack-plugin": "^5.5.3",
"puppeteer": "^21.3.8",
"puppeteer": "^21.5.0",
"ts-loader": "^9.5.0",
"tslib": "^2.6.2",
"type-fest": "^4.4.0",
"type-fest": "^4.7.0",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
Expand Down
2 changes: 1 addition & 1 deletion integ/nac-interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/memdown": "^3.0.3"
"@types/memdown": "^3.0.5"
}
}
2 changes: 1 addition & 1 deletion integ/sync-interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@ndn/repo": "workspace:*",
"@ndn/sync": "workspace:*",
"@ndn/util": "workspace:*",
"@types/memdown": "^3.0.3",
"@types/memdown": "^3.0.5",
"memdown": "^6.1.1",
"tslib": "^2.6.2"
}
Expand Down
4 changes: 2 additions & 2 deletions mk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"devDependencies": {
"@k-foss/ts-esnode": "^2.0.3",
"@nodelib/fs.walk": "^2.0.0",
"@pnpm/lockfile-types": "^5.1.2",
"@pnpm/lockfile-types": "^5.1.3",
"js-yaml": "^4.1.0",
"readlink": "^3.0.0",
"split2": "^4.2.0",
"type-fest": "^4.4.0"
"type-fest": "^4.7.0"
},
"dependencies": {
"compare-versions": "6.1.0"
Expand Down
12 changes: 6 additions & 6 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@8.9.2",
"packageManager": "pnpm@8.10.2",
"devDependencies": {
"@types/node": "^20.8.6",
"@types/wtfnode": "^0.7.1",
"@typescript/lib-dom": "npm:@types/web@0.0.117",
"@types/node": "^20.9.0",
"@types/wtfnode": "^0.7.3",
"@typescript/lib-dom": "npm:@types/web@0.0.119",
"@vitest/coverage-v8": "^0.34.6",
"@yoursunny/xo-config": "0.56.0",
"codedown": "^2.2.0",
"tslib": "^2.6.2",
"typedoc": "^0.25.2",
"typedoc": "^0.25.3",
"typescript": "~5.2.2",
"vitest": "^0.34.6"
},
"engines": {
"node": "^18.13.0 || ^20.0.0"
"node": "^18.13.0 || ^20.0.0 || ^21.0.0"
},
"pnpm": {
"peerDependencyRules": {
Expand Down
8 changes: 4 additions & 4 deletions packages/autoconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
},
"devDependencies": {
"@ndn/util": "workspace:*",
"@types/default-gateway": "^7.2.0",
"@types/koa": "^2.13.9",
"@types/node-fetch": "^2.6.6",
"@types/default-gateway": "^7.2.2",
"@types/koa": "^2.13.11",
"@types/node-fetch": "^2.6.9",
"koa": "^2.14.2",
"type-fest": "^4.4.0"
"type-fest": "^4.7.0"
}
}
4 changes: 2 additions & 2 deletions packages/cat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/stdout-stream": "^1.4.0",
"@types/yargs": "^17.0.28"
"@types/stdout-stream": "^1.4.2",
"@types/yargs": "^17.0.31"
}
}
4 changes: 2 additions & 2 deletions packages/fw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"dependencies": {
"@ndn/packet": "workspace:*",
"@ndn/util": "workspace:*",
"@types/retry": "^0.12.3",
"@types/retry": "^0.12.5",
"hirestime": "^7.0.3",
"it-pushable": "^3.2.1",
"mnemonist": "^0.39.5",
"retry": "^0.13.1",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
"typescript-event-target": "^1.0.5"
"typescript-event-target": "^1.1.0"
}
}
14 changes: 7 additions & 7 deletions packages/keychain-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@
"fast-chunk-string": "^1.0.1",
"get-stdin": "^9.0.0",
"leveldown": "^6.1.1",
"nodemailer": "^6.9.6",
"nodemailer": "^6.9.7",
"prompts": "^2.4.2",
"stdout-stream": "^2.0.0",
"tslib": "^2.6.2",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/fast-chunk-string": "^1.0.1",
"@types/leveldown": "^4.0.4",
"@types/nodemailer": "^6.4.11",
"@types/prompts": "^2.4.6",
"@types/stdout-stream": "^1.4.0",
"@types/yargs": "^17.0.28"
"@types/fast-chunk-string": "^1.0.3",
"@types/leveldown": "^4.0.6",
"@types/nodemailer": "^6.4.14",
"@types/prompts": "^2.4.8",
"@types/stdout-stream": "^1.4.2",
"@types/yargs": "^17.0.31"
}
}
4 changes: 2 additions & 2 deletions packages/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/b64-lite": "^1.4.0",
"@types/tmp": "^0.2.4",
"@types/b64-lite": "^1.4.2",
"@types/tmp": "^0.2.6",
"b64-lite": "^1.4.0",
"tmp": "^0.2.1"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/l3face/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"retry": "^0.13.1",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
"type-fest": "^4.4.0",
"typescript-event-target": "^1.0.5"
"type-fest": "^4.7.0",
"typescript-event-target": "^1.1.0"
},
"devDependencies": {
"p-defer": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/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.5",
"tslib": "^2.6.2",
"type-fest": "^4.4.0"
"type-fest": "^4.7.0"
},
"devDependencies": {
"@ndn/repo": "workspace:*"
Expand Down
14 changes: 7 additions & 7 deletions packages/ndncert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@
"@ndn/rdr": "workspace:*",
"@ndn/tlv": "workspace:*",
"@ndn/util": "workspace:*",
"@types/imap": "^0.8.38",
"@types/nodemailer": "^6.4.11",
"@types/imap": "^0.8.40",
"@types/nodemailer": "^6.4.14",
"ajv": "^8.12.0",
"b64-lite": "^1.4.0",
"imap-emails": "^1.0.4",
"nodemailer": "^6.9.6",
"nodemailer": "^6.9.7",
"p-timeout": "^6.1.2",
"tslib": "^2.6.2",
"type-fest": "^4.4.0",
"typescript-event-target": "^1.0.5"
"type-fest": "^4.7.0",
"typescript-event-target": "^1.1.0"
},
"devDependencies": {
"@ndn/repo": "workspace:*",
"@types/b64-lite": "^1.4.0",
"@types/mailparser": "^3.4.2"
"@types/b64-lite": "^1.4.2",
"@types/mailparser": "^3.4.4"
}
}
2 changes: 1 addition & 1 deletion packages/ndnsec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/tmp": "^0.2.4",
"@types/tmp": "^0.2.6",
"tmp": "^0.2.1"
}
}
4 changes: 2 additions & 2 deletions packages/nfdmgmt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@ndn/l3face": "workspace:*",
"@ndn/node-transport": "workspace:*",
"type-fest": "^4.4.0",
"typescript-event-target": "^1.0.5"
"type-fest": "^4.7.0",
"typescript-event-target": "^1.1.0"
}
}
8 changes: 4 additions & 4 deletions packages/node-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
"@ndn/l3face": "workspace:*",
"event-iterator": "^2.0.0",
"tslib": "^2.6.2",
"type-fest": "^4.4.0",
"type-fest": "^4.7.0",
"url-format-lax": "^2.0.0",
"url-parse-lax": "^5.0.0"
},
"devDependencies": {
"@ndn/fw": "workspace:*",
"@ndn/packet": "workspace:*",
"@ndn/util": "workspace:*",
"@types/tmp": "^0.2.4",
"@types/url-format-lax": "^2.0.1",
"@types/url-parse-lax": "^5.0.0",
"@types/tmp": "^0.2.6",
"@types/url-format-lax": "^2.0.3",
"@types/url-parse-lax": "^5.0.2",
"streaming-iterables": "^8.0.1",
"tmp": "^0.2.1"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/packet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"buffer-compare": "^1.1.1",
"mnemonist": "^0.39.5",
"tslib": "^2.6.2",
"type-fest": "^4.4.0"
"type-fest": "^4.7.0"
},
"devDependencies": {
"@types/buffer-compare": "^0.0.31"
"@types/buffer-compare": "^0.0.33"
}
}
6 changes: 3 additions & 3 deletions packages/repo-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"@ndn/node-transport": "workspace:*",
"@ndn/tlv": "workspace:*",
"@ndn/util": "workspace:*",
"@types/duplexify": "^3.6.2",
"@types/tmp": "^0.2.4",
"@types/duplexify": "^3.6.4",
"@types/tmp": "^0.2.6",
"stream-mock": "^2.0.5",
"tmp": "^0.2.1",
"type-fest": "^4.4.0"
"type-fest": "^4.7.0"
}
}
6 changes: 3 additions & 3 deletions packages/repo-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/leveldown": "^4.0.4",
"@types/progress": "^2.0.5",
"@types/yargs": "^17.0.28"
"@types/leveldown": "^4.0.6",
"@types/progress": "^2.0.7",
"@types/yargs": "^17.0.31"
}
}
12 changes: 6 additions & 6 deletions packages/repo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@
"@ndn/repo-api": "workspace:*",
"@ndn/tlv": "workspace:*",
"@ndn/util": "workspace:*",
"@types/abstract-leveldown": "^7.2.3",
"@types/encoding-down": "^5.0.3",
"@types/levelup": "^5.1.3",
"@types/abstract-leveldown": "^7.2.5",
"@types/encoding-down": "^5.0.5",
"@types/levelup": "^5.1.5",
"abstract-leveldown": "^7.2.0",
"encoding-down": "^7.1.0",
"levelup": "^5.1.1",
"streaming-iterables": "^8.0.1",
"throat": "^6.0.2",
"tslib": "^2.6.2",
"typescript-event-target": "^1.0.5"
"typescript-event-target": "^1.1.0"
},
"devDependencies": {
"@ndn/fw": "workspace:*",
"@ndn/naming-convention2": "workspace:*",
"@ndn/rdr": "workspace:*",
"@ndn/segmented-object": "workspace:*",
"@types/level-errors": "^3.0.0",
"@types/memdown": "^3.0.3",
"@types/level-errors": "^3.0.2",
"@types/memdown": "^3.0.5",
"memdown": "^6.1.1"
}
}
4 changes: 2 additions & 2 deletions packages/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.0.5"
"typescript-event-target": "^1.1.0"
},
"devDependencies": {
"@ndn/l3face": "workspace:*",
"@ndn/repo-api": "workspace:*",
"stream-mock": "^2.0.5",
"type-fest": "^4.4.0"
"type-fest": "^4.7.0"
}
}
Loading

0 comments on commit e3b6d08

Please sign in to comment.