Skip to content

Commit 209eb08

Browse files
committed
feat: add Node.js 22 support
1 parent 0326779 commit 209eb08

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/verify-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
strategy:
3232
matrix:
33-
node: ['18', '20']
33+
node: ['18', '20', '22']
3434
steps:
3535
- uses: actions/checkout@v4
3636
- uses: actions/setup-node@v4
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
strategy:
4949
matrix:
50-
node: ['18', '20']
50+
node: ['18', '20', '22']
5151
steps:
5252
- uses: actions/checkout@v4
5353
- uses: actions/setup-node@v4

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"bugs": "https://github.com/rowanmanning/allow-methods/issues",
2020
"license": "MIT",
2121
"engines": {
22-
"node": "18.x || 20.x"
22+
"node": "18.x || 20.x || 22.x"
2323
},
2424
"scripts": {
2525
"verify": "npm run verify:biome && npm run verify:types",
@@ -28,9 +28,9 @@
2828
"build:types": "tsc --noEmit false --emitDeclarationOnly --project ./jsconfig.json",
2929
"verify:types": "tsc --noEmit --project ./jsconfig.json",
3030
"test": "npm run test:coverage && npm run test:integration",
31-
"test:unit": "node --test test/unit",
31+
"test:unit": "cd test/unit && node --test",
3232
"test:coverage": "nyc npm run test:unit",
33-
"test:integration": "node --test test/integration",
33+
"test:integration": "cd test/integration && node --test",
3434
"prepare": "husky"
3535
},
3636
"devDependencies": {

0 commit comments

Comments
 (0)