Skip to content

Commit

Permalink
feat: remove support for Node.js 12
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `lint-staged` will no longer support Node.js 12, which is EOL since 30 April 2022
  • Loading branch information
iiroj committed Jun 1, 2022
1 parent d4da24d commit 5fb6df9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ jobs:
test:
strategy:
matrix:
# Test with Node.js v12 (LTS), v14 (LTS), v16 (LTS), and 18 (Current)
# Test with Node.js v14 (LTS), v16 (LTS), and 18 (Current)
node:
- 12
- 14
- 16
- 18
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ See [Releases](https://github.com/okonet/lint-staged/releases).

### Migration

#### v13

- 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.

#### v12

- 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).
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"url": "https://opencollective.com/lint-staged"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": "^14.13.1 || >=16.0.0"
},
"type": "module",
"bin": "./bin/lint-staged.js",
Expand Down

0 comments on commit 5fb6df9

Please sign in to comment.