Skip to content

Commit 7985e3a

Browse files
authored
Drop support for Node.js 18, add support for Node.js 24 (#565)
1 parent 8b15b92 commit 7985e3a

File tree

10 files changed

+192
-195
lines changed

10 files changed

+192
-195
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Setup the environment for the project
44
inputs:
55
node-version:
66
description: Node.js version
7-
default: '22'
87
required: false
98
node-registry:
109
description: Node.js package registry to set up for auth
@@ -16,6 +15,7 @@ runs:
1615
- name: Install Node.js
1716
uses: actions/setup-node@v4
1817
with:
18+
node-version-file: ${{ !inputs.node-version && '.node-version' || '' }}
1919
node-version: ${{ inputs.node-version }}
2020
registry-url: ${{ inputs.node-registry }}
2121

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
node:
33-
- 18
3433
- 20
3534
- 22
35+
- 24
3636
os:
3737
- name: Ubuntu
3838
version: ubuntu-latest

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

declarations/intl.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22
// TODO: Delete this file once Typescript has added these.
33
declare namespace Intl {
4+
// https://github.com/tc39/ecma402/pull/351
45
interface DateTimeFormatPartTypesRegistry {
56
yearName: any;
67
relatedYear: any;
@@ -17,5 +18,6 @@ declare namespace Intl {
1718

1819
interface Locale {
1920
readonly weekInfo: WeekInfo;
21+
getWeekInfo?(): WeekInfo;
2022
}
2123
}

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default defineConfig(
1717
globals: {
1818
...globals.node,
1919
},
20-
ecmaVersion: 2022,
20+
ecmaVersion: 2023,
2121
sourceType: 'commonjs',
2222
},
2323
},

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"conc": "./dist/bin/concurrently.js"
1212
},
1313
"engines": {
14-
"node": ">=18"
14+
"node": ">=20"
1515
},
1616
"exports": {
1717
".": {
@@ -64,9 +64,9 @@
6464
"yargs": "17.7.2"
6565
},
6666
"devDependencies": {
67-
"@eslint/js": "^9.33.0",
67+
"@eslint/js": "^9.34.0",
6868
"@hirez_io/observer-spy": "^2.2.0",
69-
"@types/node": "^18.19.123",
69+
"@types/node": "^20.19.17",
7070
"@types/shell-quote": "^1.7.5",
7171
"@types/supports-color": "^8.1.3",
7272
"@types/yargs": "^17.0.33",
@@ -75,15 +75,15 @@
7575
"coveralls-next": "^5.0.0",
7676
"ctrlc-wrapper": "^0.0.5",
7777
"esbuild": "~0.25.9",
78-
"eslint": "^9.33.0",
78+
"eslint": "^9.34.0",
7979
"eslint-config-flat-gitignore": "^2.1.0",
8080
"eslint-config-prettier": "^10.1.8",
8181
"eslint-plugin-import-lite": "^0.3.0",
8282
"eslint-plugin-prettier": "^5.5.4",
8383
"eslint-plugin-simple-import-sort": "^12.1.1",
8484
"globals": "16.3.0",
8585
"husky": "^9.1.7",
86-
"lint-staged": "^15.5.2",
86+
"lint-staged": "^16.1.5",
8787
"prettier": "^3.6.2",
8888
"safe-publish-latest": "^2.0.0",
8989
"string-argv": "^0.3.2",

0 commit comments

Comments
 (0)