Skip to content

Commit

Permalink
chore(node): drop Node 16 support (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
wKovacs64 committed Oct 26, 2023
1 parent 669580a commit fd72c24
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .babelrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
{
modules: false,
targets: {
node: '16.0.0',
node: '18.0.0',
},
},
],
Expand Down
5 changes: 5 additions & 0 deletions .changeset/heavy-pianos-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'pwned': major
---

Drop support for Node.js 16 as it is [end-of-life](https://nodejs.org/en/download/releases), making the new minimum Node.js runtime v18.0.0. Please upgrade your Node.js environment if necessary, or continue using a previous release if you are unable to upgrade your environment.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"homepage": "https://wkovacs64.github.io/pwned",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"dependencies": {
"common-tags": "^1.8.2",
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"lib": ["ESNext", "DOM"], // "DOM" only for msw
"target": "ES2021", // Node 16
"module": "Node16",
"moduleResolution": "node16",
"target": "ES2022", // Node 18
"module": "ESNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"esModuleInterop": true,
"verbatimModuleSyntax": true,
Expand Down

0 comments on commit fd72c24

Please sign in to comment.