From b451e6e7684ea0803f46c9d3e9078960a7288ddc Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Mon, 12 Jun 2023 17:58:24 -0400 Subject: [PATCH] ci: stop testing against NodeJS v14, v16 (#637) * build(package): set minimal node version in engines field to v18 BREAKING CHANGE: Drop support for NodeJS v14, v16 --- .github/workflows/test.yml | 3 +-- package.json | 2 +- scripts/build.mjs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 534b0e57a..44399c5a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,9 +14,8 @@ jobs: strategy: matrix: node_version: - - 14 - - 16 - 18 + - 20 steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node_version }} diff --git a/package.json b/package.json index 0ea310352..ae606bfc0 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,6 @@ "access": "public" }, "engines": { - "node": ">= 14" + "node": ">= 18" } } diff --git a/scripts/build.mjs b/scripts/build.mjs index c573f6340..67f82f141 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -42,7 +42,7 @@ async function main() { outdir: "pkg/dist-node", bundle: true, platform: "node", - target: "node14", + target: "node18", format: "cjs", ...sharedOptions, }),