Skip to content

Commit 5fb6df9

Browse files
committed
feat: remove support for Node.js 12
BREAKING CHANGE: `lint-staged` will no longer support Node.js 12, which is EOL since 30 April 2022
1 parent d4da24d commit 5fb6df9

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ jobs:
4040
test:
4141
strategy:
4242
matrix:
43-
# Test with Node.js v12 (LTS), v14 (LTS), v16 (LTS), and 18 (Current)
43+
# Test with Node.js v14 (LTS), v16 (LTS), and 18 (Current)
4444
node:
45-
- 12
4645
- 14
4746
- 16
4847
- 18

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ See [Releases](https://github.com/okonet/lint-staged/releases).
6464

6565
### Migration
6666

67+
#### v13
68+
69+
- Since `v13.0.0` _lint-staged_ no longer supports Node.js 12. Please upgrade your Node.js version to at least `14.13.1`, or `16.0.0` onward.
70+
6771
#### v12
6872

6973
- Since `v12.0.0` _lint-staged_ is a pure ESM module, so make sure your Node.js version is at least `12.20.0`, `14.13.1`, or `16.0.0`. Read more about ESM modules from the official [Node.js Documentation site here](https://nodejs.org/api/esm.html#introduction).

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"url": "https://opencollective.com/lint-staged"
1515
},
1616
"engines": {
17-
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
17+
"node": "^14.13.1 || >=16.0.0"
1818
},
1919
"type": "module",
2020
"bin": "./bin/lint-staged.js",

0 commit comments

Comments
 (0)