Skip to content

Commit 24b5f6b

Browse files
authored
feat: Support Node v20 (#82)
* feat: Support Node v20 * ci: Allow lockfile updates, switch to Node v20
1 parent 7dc86e6 commit 24b5f6b

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: ['14', '16', '18']
14+
node-version: ['14', '16', '18', '20']
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: Use Node.js ${{ matrix.node-version }}
@@ -27,7 +27,7 @@ jobs:
2727
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ matrix.node-version }}
2828
- name: Install dependencies
2929
if: steps.yarn-cache.outputs.cache-hit != 'true'
30-
run: yarn install --frozen-lockfile
30+
run: yarn install
3131
- name: Build
3232
run: yarn build
3333
- name: Test

.github/workflows/npm-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-node@v2
1414
with:
15-
node-version: '14'
15+
node-version: '20'
1616
registry-url: 'https://registry.npmjs.org'
17-
- run: yarn install --frozen-lockfile
17+
- run: yarn install
1818
- run: yarn build
1919
- run: npm publish
2020
env:

.github/workflows/prettier.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: ['16']
14+
node-version: ['20']
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: Use Node.js ${{ matrix.node-version }}
@@ -27,6 +27,6 @@ jobs:
2727
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ matrix.node-version }}
2828
- name: Install dependencies
2929
if: steps.yarn-cache.outputs.cache-hit != 'true'
30-
run: yarn install --frozen-lockfile
30+
run: yarn install
3131
- name: Check code style
3232
run: yarn prettier:lint

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"@types/mocha": "^10.0.0",
27-
"@types/node": "^14",
27+
"@types/node": "^14 || ^16 || ^18 || ^20",
2828
"mocha": "^10.1.0",
2929
"prettier": "^3.0.2",
3030
"ts-mocha": "^10.0.0",
@@ -43,6 +43,6 @@
4343
"trailingComma": "es5"
4444
},
4545
"engines": {
46-
"node": "^14 || ^16 || ^18"
46+
"node": "^14 || ^16 || ^18 || ^20"
4747
}
4848
}

yarn.lock

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@
5757
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.6.tgz#818551d39113081048bdddbef96701b4e8bb9d1b"
5858
integrity sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==
5959

60-
"@types/node@^14":
61-
version "14.18.54"
62-
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.54.tgz#fc304bd66419030141fa997dc5a9e0e374029ae8"
63-
integrity sha512-uq7O52wvo2Lggsx1x21tKZgqkJpvwCseBBPtX/nKQfpVlEsLOb11zZ1CRsWUKvJF0+lzuA9jwvA7Pr2Wt7i3xw==
60+
"@types/node@^20":
61+
version "20.11.6"
62+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.6.tgz#6adf4241460e28be53836529c033a41985f85b6e"
63+
integrity sha512-+EOokTnksGVgip2PbYbr3xnR7kZigh4LbybAfBAw5BpnQ+FqBYUsvCEjYd70IXKlbohQ64mzEYmMtlWUY8q//Q==
64+
dependencies:
65+
undici-types "~5.26.4"
6466

6567
acorn-walk@^8.1.1:
6668
version "8.2.0"
@@ -667,6 +669,11 @@ typescript@^5.1.6:
667669
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37"
668670
integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==
669671

672+
undici-types@~5.26.4:
673+
version "5.26.5"
674+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
675+
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
676+
670677
v8-compile-cache-lib@^3.0.1:
671678
version "3.0.1"
672679
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"

0 commit comments

Comments
 (0)