From d6051743002d815c4a22e5f14c28603236187748 Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Mon, 11 Aug 2025 00:42:18 +0900 Subject: [PATCH 1/2] Drop Node.js 18 support --- .circleci/config.yml | 12 ------------ babel.config.js | 2 +- jest.setup.js | 8 -------- package.json | 2 +- 4 files changed, 2 insertions(+), 22 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e718250..6a7648e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -93,15 +93,6 @@ jobs: steps: - audit - test-node18: - executor: - name: node - version: '18.20' - steps: - - prepare: - force: true - - test - test-node20: executor: name: node @@ -133,9 +124,6 @@ workflows: test: jobs: - audit - - test-node18: - requires: - - audit - test-node20: requires: - audit diff --git a/babel.config.js b/babel.config.js index 9841ff6..950b939 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,5 @@ module.exports = { presets: [ - ['@babel/preset-env', { targets: { node: '18' }, shippedProposals: true }], + ['@babel/preset-env', { targets: { node: '20' }, shippedProposals: true }], ], } diff --git a/jest.setup.js b/jest.setup.js index bb8f2cc..af8d02d 100644 --- a/jest.setup.js +++ b/jest.setup.js @@ -1,9 +1 @@ global.context = describe - -// https://github.com/nodejs/undici/issues/4374 -if (process.versions.node.startsWith('18.')) { - const { File, Blob } = require('buffer') - - global.File = File - global.Blob = Blob -} diff --git a/package.json b/package.json index bd4a1ff..cb5d3fc 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "url": "https://github.com/marp-team/marpit" }, "engines": { - "node": ">=18" + "node": ">=20" }, "main": "lib/index.js", "types": "index.d.ts", From 6198f1530415a87f5b8e47e1aad701b459536b7f Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Mon, 11 Aug 2025 00:47:16 +0900 Subject: [PATCH 2/2] Bump development Node.js to v22.18.0 --- .circleci/config.yml | 4 ++-- .nvmrc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6a7648e..2cb21b4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -105,7 +105,7 @@ jobs: test-node22: executor: name: node - version: '22.15.0' # Specify LTS version for development + version: '22.18.0' # Specify LTS version for development steps: - prepare - lint @@ -114,7 +114,7 @@ jobs: test-node24: executor: name: node - version: '24.0' + version: '24.5' steps: - prepare - lint diff --git a/.nvmrc b/.nvmrc index b8ffd70..91d5f6f 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22.15.0 +22.18.0