Skip to content

Commit e48ded3

Browse files
committed
drop support for Node.js versions 16, 21
1 parent 7a81b23 commit e48ded3

File tree

3 files changed

+34
-26
lines changed

3 files changed

+34
-26
lines changed

.github/workflows/build-test.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ jobs:
1414
YARN_VERSION: ${{ steps.yarn-version.outputs.YARN_VERSION }}
1515
strategy:
1616
matrix:
17-
node-version: [16.x, 18.x, 20.x]
17+
node-version:
18+
- 18.x
19+
- 20.x
20+
- 22.x
1821
steps:
1922
- uses: actions/checkout@v3
2023
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2225
with:
2326
node-version: ${{ matrix.node-version }}
2427
- name: Get Yarn cache directory
@@ -41,11 +44,14 @@ jobs:
4144
- prepare
4245
strategy:
4346
matrix:
44-
node-version: [16.x, 18.x, 20.x]
47+
node-version:
48+
- 18.x
49+
- 20.x
50+
- 22.x
4551
steps:
4652
- uses: actions/checkout@v3
4753
- name: Use Node.js ${{ matrix.node-version }}
48-
uses: actions/setup-node@v3
54+
uses: actions/setup-node@v4
4955
with:
5056
node-version: ${{ matrix.node-version }}
5157
- name: Restore Yarn dependencies
@@ -67,15 +73,12 @@ jobs:
6773
runs-on: ubuntu-latest
6874
needs:
6975
- prepare
70-
strategy:
71-
matrix:
72-
node-version: [16.x, 18.x, 20.x]
7376
steps:
7477
- uses: actions/checkout@v3
75-
- name: Use Node.js ${{ matrix.node-version }}
76-
uses: actions/setup-node@v3
78+
- name: Set up Node.js
79+
uses: actions/setup-node@v4
7780
with:
78-
node-version: ${{ matrix.node-version }}
81+
node-version-file: '.nvmrc'
7982
- name: Restore Yarn dependencies
8083
uses: actions/cache@v3
8184
with:
@@ -103,11 +106,14 @@ jobs:
103106
- prepare
104107
strategy:
105108
matrix:
106-
node-version: [16.x, 18.x, 20.x]
109+
node-version:
110+
- 18.x
111+
- 20.x
112+
- 22.x
107113
steps:
108114
- uses: actions/checkout@v3
109115
- name: Use Node.js ${{ matrix.node-version }}
110-
uses: actions/setup-node@v3
116+
uses: actions/setup-node@v4
111117
with:
112118
node-version: ${{ matrix.node-version }}
113119
- name: Restore Yarn dependencies

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@metamask/eslint-config-nodejs": "^11.1.0",
6060
"@metamask/eslint-config-typescript": "^11.1.0",
6161
"@types/jest": "^27.0.6",
62-
"@types/node": "^16.18.50",
62+
"@types/node": "~18.18.14",
6363
"@typescript-eslint/eslint-plugin": "^5.59.1",
6464
"@typescript-eslint/parser": "^5.59.1",
6565
"ajv": "^8.11.0",
@@ -80,7 +80,7 @@
8080
},
8181
"packageManager": "[email protected]",
8282
"engines": {
83-
"node": "^16.20 || ^18.16 || >=20"
83+
"node": "^18.18 || ^20.14 || >=22"
8484
},
8585
"publishConfig": {
8686
"access": "public",

yarn.lock

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ __metadata:
905905
"@metamask/utils": ^9.0.0
906906
"@scure/base": ~1.1.3
907907
"@types/jest": ^27.0.6
908-
"@types/node": ^16.18.50
908+
"@types/node": ~18.18.14
909909
"@typescript-eslint/eslint-plugin": ^5.59.1
910910
"@typescript-eslint/parser": ^5.59.1
911911
ajv: ^8.11.0
@@ -1243,17 +1243,12 @@ __metadata:
12431243
languageName: node
12441244
linkType: hard
12451245

1246-
"@types/node@npm:*":
1247-
version: 18.7.6
1248-
resolution: "@types/node@npm:18.7.6"
1249-
checksum: 5122988c325eda8d1f5cbe4494916036aae1758f9d5bb2d8139a800b8bad1540fbb167cd3c759da9a5cb4600cd3507609ac7969747113c1549a3e4320a17b1a9
1250-
languageName: node
1251-
linkType: hard
1252-
1253-
"@types/node@npm:^16.18.50":
1254-
version: 16.18.50
1255-
resolution: "@types/node@npm:16.18.50"
1256-
checksum: 8aec1eaf83407197ec2fe947182c238f49b82a7aace867cee1f81f72eb8a76c3c8b2adb1fd356e7443317cffb2546708da8934299a579edd25e3160bf7af30a1
1246+
"@types/node@npm:*, @types/node@npm:~18.18.14":
1247+
version: 18.18.14
1248+
resolution: "@types/node@npm:18.18.14"
1249+
dependencies:
1250+
undici-types: ~5.26.4
1251+
checksum: 3a77e6819e50fd22196b08d542433e1513c855f4993a200bc0e7be076445c61ce2a9e5f7f202f060c46130b2b2f98643461fb7999f874475e6bb322c4534c580
12571252
languageName: node
12581253
linkType: hard
12591254

@@ -5904,6 +5899,13 @@ __metadata:
59045899
languageName: node
59055900
linkType: hard
59065901

5902+
"undici-types@npm:~5.26.4":
5903+
version: 5.26.5
5904+
resolution: "undici-types@npm:5.26.5"
5905+
checksum: 3192ef6f3fd5df652f2dc1cd782b49d6ff14dc98e5dced492aa8a8c65425227da5da6aafe22523c67f035a272c599bb89cfe803c1db6311e44bed3042fc25487
5906+
languageName: node
5907+
linkType: hard
5908+
59075909
"unique-filename@npm:^1.1.1":
59085910
version: 1.1.1
59095911
resolution: "unique-filename@npm:1.1.1"

0 commit comments

Comments
 (0)