Skip to content

Commit

Permalink
Require Node 16+
Browse files Browse the repository at this point in the history
Node 14 support ends on 2023-04-30 according to [Node's docs][0].

[0]: https://nodejs.dev/en/about/releases/
  • Loading branch information
EvanHahn committed May 6, 2023
1 parent 8e14969 commit 8d7977e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Removed

- **Breaking:** Drop support for Node 14 and 15. Node 16+ is now required

### 6.2.0 - 2023-05-06

- Expose header names (e.g., `strictTransportSecurity` for the `Strict-Transport-Security` header, instead of `hsts`)
Expand Down
6 changes: 1 addition & 5 deletions build/build-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,7 @@ async function buildPackageJson({
},
license: "MIT",
keywords: ["express", "security", "headers", "backend"],

engines: {
node: ">=14.0.0",
},

engines: devPackageJson.engines,
exports: {
...(esm ? { import: "./index.mjs" } : {}),
require: "./index.cjs",
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
"build": "ts-node-esm ./build/build-package.ts",
"test": "jest"
},
"type": "module"
"type": "module",
"engines": {
"node": ">=16.0.0"
}
}

0 comments on commit 8d7977e

Please sign in to comment.