Skip to content

Commit

Permalink
Drop support against end-of-lifed Node.js versions
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Oct 18, 2023
1 parent 56d7f44 commit 1a411cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
26 changes: 7 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ commands:
default: []
yarn:
type: string
default: '^1.22.11'
default: '^1.22.19'
steps:
- run:
name: Upgrade yarn for current user
Expand Down Expand Up @@ -100,28 +100,19 @@ jobs:
steps:
- audit

test-node14:
executor:
name: node
version: '14.18'
steps:
- prepare
- lint
- test

test-node16:
test-node18:
executor:
name: node
version: '16.18'
version: '18.17.1' # Specify LTS version for development
steps:
- prepare
- lint
- test

test-node18:
test-node20:
executor:
name: node
version: '18.17.1' # Specify LTS version for development
version: '20.8'
steps:
- prepare
- lint
Expand All @@ -131,12 +122,9 @@ workflows:
test:
jobs:
- audit
- test-node14:
requires:
- audit
- test-node16:
- test-node18:
requires:
- audit
- test-node18:
- test-node20:
requires:
- audit
3 changes: 1 addition & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
// TODO: Drop support for EOL Node in Marpit v3
presets: [
['@babel/preset-env', { targets: { node: '10' }, shippedProposals: true }],
['@babel/preset-env', { targets: { node: '18' }, shippedProposals: true }],
],
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"url": "https://github.com/marp-team/marpit"
},
"engines": {
"node": ">=10"
"node": ">=18"
},
"main": "lib/index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 1a411cb

Please sign in to comment.