Skip to content

Commit bbc477f

Browse files
feat: drop node 18, support node 22
1 parent 670314d commit bbc477f

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ on:
77
branches: [main]
88

99
jobs:
10-
test-node-18:
10+
test-node-20:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 18
16+
node-version: 20
1717
- run: yarn install --frozen-lockfile
1818
- run: yarn ci
1919

20-
test-node-20:
20+
test-node-22:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: 20
26+
node-version: 22
2727
- run: yarn install --frozen-lockfile
2828
- run: yarn ci
2929

@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@v4
3434
- uses: actions/setup-node@v4
3535
with:
36-
node-version: 20
36+
node-version: 22
3737
- run: yarn install --frozen-lockfile
3838
- run: yarn install --frozen-lockfile
3939
working-directory: ./examples/commonjs
@@ -46,7 +46,7 @@ jobs:
4646
- uses: actions/checkout@v4
4747
- uses: actions/setup-node@v4
4848
with:
49-
node-version: 20
49+
node-version: 22
5050
- run: yarn install --frozen-lockfile
5151
- run: yarn install --frozen-lockfile
5252
working-directory: ./examples/typescript-bundler
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/checkout@v4
6060
- uses: actions/setup-node@v4
6161
with:
62-
node-version: 20
62+
node-version: 22
6363
- run: yarn install --frozen-lockfile
6464
- run: yarn install --frozen-lockfile
6565
working-directory: ./examples/typescript-legacy
@@ -72,7 +72,7 @@ jobs:
7272
- uses: actions/checkout@v4
7373
- uses: actions/setup-node@v4
7474
with:
75-
node-version: 20
75+
node-version: 22
7676
- run: yarn install --frozen-lockfile
7777
- run: yarn install --frozen-lockfile
7878
working-directory: ./examples/typescript-nodenext
@@ -85,7 +85,7 @@ jobs:
8585
- uses: actions/checkout@v4
8686
- uses: actions/setup-node@v4
8787
with:
88-
node-version: 20
88+
node-version: 22
8989
- run: yarn install --frozen-lockfile
9090
- run: yarn install --frozen-lockfile
9191
working-directory: ./examples/vue
@@ -98,7 +98,7 @@ jobs:
9898
- uses: actions/checkout@v4
9999
- uses: actions/setup-node@v4
100100
with:
101-
node-version: 20
101+
node-version: 22
102102
- run: yarn install --frozen-lockfile
103103
- run: yarn install --frozen-lockfile
104104
working-directory: ./examples/web-test-runner
@@ -113,7 +113,7 @@ jobs:
113113
submodules: recursive
114114
- uses: actions/setup-node@v4
115115
with:
116-
node-version: 20
116+
node-version: 22
117117
- uses: actions/setup-python@v5
118118
with:
119119
# REF: https://github.com/web-platform-tests/wpt/issues/44427

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"a11y",
2020
"guidepup"
2121
],
22+
"engines": {
23+
"node": ">=20"
24+
},
2225
"main": "./lib/cjs/index.js",
2326
"types": "./lib/cjs/index.d.ts",
2427
"module": "./lib/esm/index.legacy-esm.js",

0 commit comments

Comments
 (0)