Skip to content

Commit c68f69d

Browse files
committed
feat!: drop Node 12, 14 & 16 support (#242)
BREAKING CHANGE: Requires Node@^18.18.0 || ^20.9.0 || >=21.1.0
1 parent 62a1344 commit c68f69d

File tree

2 files changed

+6
-25
lines changed

2 files changed

+6
-25
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
strategy:
5050
matrix:
5151
eslint: [9]
52-
node: [18, 20, 22, 24]
52+
node: [18.18.0, 18, 20.9.0, 20, 22, 24]
5353
os: [ubuntu-latest]
5454
include:
5555
# On other platforms
@@ -59,23 +59,10 @@ jobs:
5959
- os: macos-latest
6060
eslint: 9
6161
node: 24
62-
# On old Node versions & ESLint v8
63-
- eslint: 8
64-
node: 12.22.0
65-
os: ubuntu-latest
66-
- eslint: 8
67-
node: 12
68-
os: ubuntu-latest
69-
- eslint: 8
70-
node: 14.17.0
71-
os: ubuntu-latest
72-
- eslint: 8
73-
node: 14
74-
os: ubuntu-latest
62+
# On old ESLint versions
7563
- eslint: 8
76-
node: 16
64+
node: 24
7765
os: ubuntu-latest
78-
# On old ESLint versions
7966
- eslint: 7
8067
node: 24
8168
os: ubuntu-latest
@@ -84,7 +71,7 @@ jobs:
8471
os: ubuntu-latest
8572
# On the minimum supported ESLint/Node.js version
8673
- eslint: 6.0.0
87-
node: 12.22.0
74+
node: 18.18.0
8875
os: ubuntu-latest
8976
runs-on: ${{ matrix.os }}
9077
steps:
@@ -107,13 +94,7 @@ jobs:
10794
run: npm run build
10895

10996
- name: ▶️ Run test script
110-
run: |
111-
npm run test-coverage
112-
113-
# Load src/index.mjs to check for syntax errors.
114-
# This is because for some reason the exit code does not become 1 in Node.js 12.
115-
# See https://github.com/eslint-community/eslint-utils/pull/253
116-
node src/index.mjs
97+
run: npm run test-coverage
11798

11899
- name: ⬆️ Upload coverage report
119100
uses: codecov/codecov-action@v5

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
8484
},
8585
"engines": {
86-
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
86+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
8787
},
8888
"funding": "https://opencollective.com/eslint"
8989
}

0 commit comments

Comments
 (0)