Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 305698c

Browse files
committed
drop support for Node.js versions 16, 21
1 parent 9de4ac0 commit 305698c

3 files changed

Lines changed: 30 additions & 25 deletions

File tree

.github/workflows/build-lint-test.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212
- name: Use Node.js
13-
uses: actions/setup-node@v3
13+
uses: actions/setup-node@v4
1414
with:
1515
node-version-file: '.nvmrc'
1616
cache: 'yarn'
@@ -24,11 +24,14 @@ jobs:
2424
- prepare
2525
strategy:
2626
matrix:
27-
node-version: [16.x, 18.x, 20.x]
27+
node-version:
28+
- 18.x
29+
- 20.x
30+
- 22.x
2831
steps:
2932
- uses: actions/checkout@v3
3033
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v3
34+
uses: actions/setup-node@v4
3235
with:
3336
node-version: ${{ matrix.node-version }}
3437
cache: 'yarn'
@@ -47,15 +50,12 @@ jobs:
4750
runs-on: ubuntu-latest
4851
needs:
4952
- prepare
50-
strategy:
51-
matrix:
52-
node-version: [16.x, 18.x, 20.x]
5353
steps:
5454
- uses: actions/checkout@v3
55-
- name: Use Node.js ${{ matrix.node-version }}
56-
uses: actions/setup-node@v3
55+
- name: Set up Node.js
56+
uses: actions/setup-node@v4
5757
with:
58-
node-version: ${{ matrix.node-version }}
58+
node-version-file: '.nvmrc'
5959
cache: 'yarn'
6060
- run: yarn --immutable --immutable-cache
6161
- run: yarn lint
@@ -80,11 +80,14 @@ jobs:
8080
- prepare
8181
strategy:
8282
matrix:
83-
node-version: [16.x, 18.x, 20.x]
83+
node-version:
84+
- 18.x
85+
- 20.x
86+
- 22.x
8487
steps:
8588
- uses: actions/checkout@v3
8689
- name: Use Node.js ${{ matrix.node-version }}
87-
uses: actions/setup-node@v3
90+
uses: actions/setup-node@v4
8891
with:
8992
node-version: ${{ matrix.node-version }}
9093
cache: 'yarn'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@types/ethereumjs-tx": "^1.0.1",
5959
"@types/hdkey": "^2.0.1",
6060
"@types/jest": "^28.1.6",
61-
"@types/node": "^16.18.57",
61+
"@types/node": "~18.18.14",
6262
"@types/sinon": "^9.0.10",
6363
"@types/w3c-web-usb": "^1.0.6",
6464
"@typescript-eslint/eslint-plugin": "^5.43.0",
@@ -84,7 +84,7 @@
8484
},
8585
"packageManager": "yarn@3.3.1",
8686
"engines": {
87-
"node": "^16.20 || ^18.16 || >=20"
87+
"node": "^18.18 || ^20.14 || >=22"
8888
},
8989
"publishConfig": {
9090
"access": "public",

yarn.lock

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ __metadata:
10811081
"@types/ethereumjs-tx": ^1.0.1
10821082
"@types/hdkey": ^2.0.1
10831083
"@types/jest": ^28.1.6
1084-
"@types/node": ^16.18.57
1084+
"@types/node": ~18.18.14
10851085
"@types/sinon": ^9.0.10
10861086
"@types/w3c-web-usb": ^1.0.6
10871087
"@typescript-eslint/eslint-plugin": ^5.43.0
@@ -1960,10 +1960,12 @@ __metadata:
19601960
languageName: node
19611961
linkType: hard
19621962

1963-
"@types/node@npm:*, @types/node@npm:>=13.7.0":
1964-
version: 18.11.18
1965-
resolution: "@types/node@npm:18.11.18"
1966-
checksum: 03f17f9480f8d775c8a72da5ea7e9383db5f6d85aa5fefde90dd953a1449bd5e4ffde376f139da4f3744b4c83942166d2a7603969a6f8ea826edfb16e6e3b49d
1963+
"@types/node@npm:*, @types/node@npm:>=13.7.0, @types/node@npm:~18.18.14":
1964+
version: 18.18.14
1965+
resolution: "@types/node@npm:18.18.14"
1966+
dependencies:
1967+
undici-types: ~5.26.4
1968+
checksum: 3a77e6819e50fd22196b08d542433e1513c855f4993a200bc0e7be076445c61ce2a9e5f7f202f060c46130b2b2f98643461fb7999f874475e6bb322c4534c580
19671969
languageName: node
19681970
linkType: hard
19691971

@@ -1974,13 +1976,6 @@ __metadata:
19741976
languageName: node
19751977
linkType: hard
19761978

1977-
"@types/node@npm:^16.18.57":
1978-
version: 16.18.57
1979-
resolution: "@types/node@npm:16.18.57"
1980-
checksum: db21a14416de3abce8dfc30d9e9513c505060ef4d197fdc1b1b7374feca3417a7757172d041989fd49910245e9f2d7869201accac3cceee7c75bfdf8759ead6d
1981-
languageName: node
1982-
linkType: hard
1983-
19841979
"@types/parse-json@npm:^4.0.0":
19851980
version: 4.0.0
19861981
resolution: "@types/parse-json@npm:4.0.0"
@@ -8447,6 +8442,13 @@ __metadata:
84478442
languageName: node
84488443
linkType: hard
84498444

8445+
"undici-types@npm:~5.26.4":
8446+
version: 5.26.5
8447+
resolution: "undici-types@npm:5.26.5"
8448+
checksum: 3192ef6f3fd5df652f2dc1cd782b49d6ff14dc98e5dced492aa8a8c65425227da5da6aafe22523c67f035a272c599bb89cfe803c1db6311e44bed3042fc25487
8449+
languageName: node
8450+
linkType: hard
8451+
84508452
"unique-filename@npm:^2.0.0":
84518453
version: 2.0.1
84528454
resolution: "unique-filename@npm:2.0.1"

0 commit comments

Comments
 (0)