Skip to content

Commit b884c7c

Browse files
authored
chore: support node v20 (microformats#272)
1 parent d8296c3 commit b884c7c

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

‎.github/workflows/build_and_test.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v3
1919
with:
20-
node-version: 18
20+
node-version-file: ".nvmrc"
21+
cache: "npm"
2122
- name: Install dependencies
2223
run: yarn
2324
- name: Lint code
@@ -39,7 +40,7 @@ jobs:
3940
needs: [build_and_test]
4041
strategy:
4142
matrix:
42-
node: [16, 18]
43+
node: [16, 18, 20]
4344
steps:
4445
- uses: actions/checkout@v4
4546
- uses: actions/setup-node@v3

‎.nvmrc

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

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@types/chai": "^4.2.11",
5151
"@types/glob": "^8.1.0",
5252
"@types/mocha": "^10.0.1",
53-
"@types/node": "^18.17.15",
53+
"@types/node": "^20.8.6",
5454
"@typescript-eslint/eslint-plugin": "^6.0.0",
5555
"@typescript-eslint/parser": "^6.0.0",
5656
"c8": "^8.0.1",

‎yarn.lock

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,12 @@
316316
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.2.tgz#96d63314255540a36bf24da094cce7a13668d73b"
317317
integrity sha512-NaHL0+0lLNhX6d9rs+NSt97WH/gIlRHmszXbQ/8/MV/eVcFNdeJ/GYhrFuUc8K7WuPhRhTSdMkCp8VMzhUq85w==
318318

319-
"@types/node@*", "@types/node@^18.17.15":
320-
version "18.17.15"
321-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.17.15.tgz#31301a273b9ca7d568fe6d1c35ae52e0fb3f8d6a"
322-
integrity sha512-2yrWpBk32tvV/JAd3HNHWuZn/VDN1P+72hWirHnvsvTGSqbANi+kSeuQR9yAHnbvaBvHDsoTdXV0Fe+iRtHLKA==
319+
"@types/node@*", "@types/node@^20.8.6":
320+
version "20.8.6"
321+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.8.6.tgz#0dbd4ebcc82ad0128df05d0e6f57e05359ee47fa"
322+
integrity sha512-eWO4K2Ji70QzKUqRy6oyJWUeB7+g2cRagT3T/nxYibYcT4y2BDL8lqolRXjTHmkZCdJfIPaY73KbJAZmcryxTQ==
323+
dependencies:
324+
undici-types "~5.25.1"
323325

324326
"@types/resolve@1.20.2":
325327
version "1.20.2"
@@ -2834,6 +2836,11 @@ unbox-primitive@^1.0.2:
28342836
has-symbols "^1.0.3"
28352837
which-boxed-primitive "^1.0.2"
28362838

2839+
undici-types@~5.25.1:
2840+
version "5.25.3"
2841+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.25.3.tgz#e044115914c85f0bcbb229f346ab739f064998c3"
2842+
integrity sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==
2843+
28372844
union@~0.5.0:
28382845
version "0.5.0"
28392846
resolved "https://registry.yarnpkg.com/union/-/union-0.5.0.tgz#b2c11be84f60538537b846edb9ba266ba0090075"

0 commit comments

Comments
 (0)