Skip to content

Commit 2b0094b

Browse files
drop support for Node<20
1 parent d5dd934 commit 2b0094b

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"es6": true
1313
},
1414
"parserOptions": {
15-
"ecmaVersion": 2019
15+
"ecmaVersion": 2023
1616
},
1717
"plugins": [
1818
"@typescript-eslint",
@@ -85,7 +85,7 @@
8585
"lib/*.js"
8686
],
8787
"parserOptions": {
88-
"ecmaVersion": 2019,
88+
"ecmaVersion": 2023,
8989
"sourceType": "commonjs"
9090
}
9191
},

.github/actions/setup/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ runs:
1010
registry-url: 'https://registry.npmjs.org'
1111
- run: npm install -g npm@latest
1212
shell: bash
13-
# TODO(NODE-7058): use npm CI here once we have a package-lock.json again
14-
- run: npm install --ignore-scripts
13+
- run: npm ci
1514
shell: bash

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ubuntu-latest, macos-latest, windows-latest]
12-
node-version: [16.x, 18.x, 20.x, 22.x]
12+
node-version: ["20.19.0", 22.x]
1313
runs-on: ${{matrix.os}}
1414
steps:
1515
- uses: actions/checkout@v4

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ dist
44
coverage
55
.esm-wrapper.mjs
66
lib/
7-
package-lock.json

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
},
6464
"dependencies": {
6565
"@types/whatwg-url": "^13.0.0",
66-
"whatwg-url": "^14.1.0 || ^13.0.0"
66+
"whatwg-url": "^14.1.0"
67+
},
68+
"engines": {
69+
"node": ">=20.19.0"
6770
}
68-
}
71+
}

tsconfig.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
"strict": true,
77
"declaration": true,
88
"removeComments": true,
9-
"target": "es2018",
10-
"lib": ["es2018"],
9+
"target": "es2023",
10+
"lib": [
11+
"es2023"
12+
],
1113
"outDir": "./lib",
1214
"moduleResolution": "node",
1315
"module": "commonjs"
@@ -18,4 +20,4 @@
1820
"exclude": [
1921
"./src/**/*.spec.*"
2022
]
21-
}
23+
}

0 commit comments

Comments
 (0)