Skip to content

Commit

Permalink
Remove support for older Node.js versions than 14.18.0 (#23)
Browse files Browse the repository at this point in the history
`np` (`npm run release`) now requires the `engines.node` field in `package.json`,
so this change adds the field. The minimum version is determined by `ls-engines`.

```console
$ npx ls-engines@latest
...
┌────────────────────────┬───────────────────────────┐
│ package engines:       │ dependency graph engines: │
├────────────────────────┼───────────────────────────┤
│ "engines": {           │ "engines": {              │
│   "node": ">= 14.18.0" │   "node": ">= 14.18"      │
│ }                      │ }                         │
└────────────────────────┴───────────────────────────┘
...
Your “engines” field exactly matches your dependency graph’s requirements!
```
  • Loading branch information
ybiquitous committed Jul 10, 2023
1 parent a28e69e commit 75774ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Head

- Removed: Prettier 2 support.
- Removed: support for older Node.js versions than `14.18.0`.
- Changed: package type to pure ESM.

## 2.0.0
Expand Down
3 changes: 3 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
"peerDependencies": {
"prettier": ">=3.0.0"
},
"engines": {
"node": ">=14.18.0"
},
"publishConfig": {
"access": "public"
}
Expand Down

0 comments on commit 75774ac

Please sign in to comment.