From 97191827aa4308e31bec99d01e7885cfa90aed3d Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Mon, 12 May 2025 18:15:09 -0400 Subject: [PATCH 1/3] build(package): set minimal node version in engines field to v20 BREAKING CHANGE: Drop support for NodeJS v18 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 84eb5847..c59fe8e6 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,6 @@ ] }, "engines": { - "node": ">= 18" + "node": ">= 20" } } From d26897b4bfc384a039176773f8bb4e9cc87c6b38 Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Mon, 12 May 2025 18:15:11 -0400 Subject: [PATCH 2/3] build: set minimal node version in build script to v20 --- scripts/build.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index d2ff2895..214a420b 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -30,7 +30,7 @@ async function main() { outdir: "pkg/dist-node", bundle: true, platform: "node", - target: "node18", + target: "node20", format: "esm", ...sharedOptions, }), From ed5a4b38a7feba8db040fae97b5b5ba466476ad3 Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Mon, 12 May 2025 18:15:14 -0400 Subject: [PATCH 3/3] ci: stop testing against NodeJS v18 --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0bedca05..2d340b61 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,9 +52,9 @@ jobs: fail-fast: false matrix: node_version: - - 18 - 20 - 22 + - 24 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: Use Node.js ${{ matrix.node_version }} @@ -74,6 +74,8 @@ jobs: - browser steps: - run: exit 1 - if: ${{ needs.lint.result != 'success' || needs.node.result != 'success' || needs.browser.result != 'success' || needs.deno.result != 'success' }} + if: + ${{ needs.lint.result != 'success' || needs.node.result != 'success' || + needs.browser.result != 'success' || needs.deno.result != 'success' }} - run: echo ok if: ${{ always() }}