Skip to content

Commit dc5028e

Browse files
Copilotota-meshiCopilot
authored
Drop support for Node.js <20.19.0 (#522)
* Initial plan * Update Node.js version requirements and add changeset Co-authored-by: ota-meshi <16508807+ota-meshi@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ota-meshi <16508807+ota-meshi@users.noreply.github.com> Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b94326e commit dc5028e

File tree

5 files changed

+9
-20
lines changed

5 files changed

+9
-20
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-yml": major
3+
---
4+
5+
Drop support for Node.js versions older than 20.19.0. The new supported version is `^20.19.0 || ^22.13.0 || >=24`.

.github/workflows/NodeCI.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
node-version: [18.x, 20.x]
25+
node-version: [20.x, 22.x, 24.x]
2626
steps:
2727
- uses: actions/checkout@v6
2828
- name: Use Node.js ${{ matrix.node-version }}
@@ -33,22 +33,6 @@ jobs:
3333
run: npm install
3434
- name: Test
3535
run: npm test
36-
test-with-eslint8:
37-
runs-on: ubuntu-latest
38-
strategy:
39-
matrix:
40-
node-version: [14.x, 16.x]
41-
steps:
42-
- uses: actions/checkout@v6
43-
- uses: actions/setup-node@v4
44-
name: Use Node.js ${{ matrix.node-version }}
45-
- name: Install Target Packages
46-
run: |+
47-
npm i -D eslint@^8
48-
npx rimraf node_modules
49-
npm install
50-
- name: Test
51-
run: npm test
5236
test-with-eslint6:
5337
runs-on: ubuntu-latest
5438
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ npm install --save-dev eslint eslint-plugin-yml
5454
> **Requirements**
5555
>
5656
> - ESLint v6.0.0 and above
57-
> - Node.js v14.17.x, v16.x and above
57+
> - Node.js v20.19.0 or higher (in the 20.x line), v22.13.0 or higher (in the 22.x line), or v24.0.0 and above
5858
5959
<!--DOCS_IGNORE_END-->
6060

docs/user-guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ npm install --save-dev eslint eslint-plugin-yml
99
::: tip Requirements
1010

1111
- ESLint v6.0.0 and above
12-
- Node.js v14.17.x, v16.x and above
12+
- Node.js v20.19.0 or higher (in the 20.x line), v22.13.0 or higher (in the 22.x line), or v24.0.0 and above
1313

1414
:::
1515

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"lib"
88
],
99
"engines": {
10-
"node": "^14.17.0 || >=16.0.0"
10+
"node": "^20.19.0 || ^22.13.0 || >=24.0.0"
1111
},
1212
"scripts": {
1313
"prebuild": "npm run -s clean",

0 commit comments

Comments
 (0)