From 1a411cba552852cd8bf7487cce4233788b907e1f Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Thu, 19 Oct 2023 03:21:35 +0900 Subject: [PATCH] Drop support against end-of-lifed Node.js versions --- .circleci/config.yml | 26 +++++++------------------- babel.config.js | 3 +-- package.json | 2 +- 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 72dc989..7e3888d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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 @@ -131,12 +122,9 @@ workflows: test: jobs: - audit - - test-node14: - requires: - - audit - - test-node16: + - test-node18: requires: - audit - - test-node18: + - test-node20: requires: - audit diff --git a/babel.config.js b/babel.config.js index d7f0289..9841ff6 100644 --- a/babel.config.js +++ b/babel.config.js @@ -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 }], ], } diff --git a/package.json b/package.json index afea0c0..4aa6431 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "url": "https://github.com/marp-team/marpit" }, "engines": { - "node": ">=10" + "node": ">=18" }, "main": "lib/index.js", "types": "index.d.ts",