From ea6f1f9c0a06b304a31e3e76ceb914956daa0c6d Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Mon, 12 Jun 2023 17:17:12 -0400 Subject: [PATCH] ci: stop testing against NodeJS v14, v16 (#849) * build(package): set minimal node version in engines field to v18 BREAKING CHANGE: Drop support for NodeJS v14, v16 * build: set minimal node version in build script to v14 * ci: stop testing against NodeJS v14, v16 * ci: stop testing against NodeJS v14, v16 * ci: stop testing against NodeJS v14, v16 * ci: stop testing against NodeJS v14, v16 * ci: stop testing against NodeJS v14, v16 * ci: stop testing against NodeJS v14, v16 --------- Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com> Co-authored-by: Keegan Campbell --- .github/workflows/test.yml | 7 +++---- package.json | 2 +- scripts/build.mjs | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2fc6dcdc..978829e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,11 +12,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: - - 14 - - 16 + node: - 18 - name: Node ${{ matrix.node_version }} + - 20 + name: Node ${{ matrix.node }} steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 diff --git a/package.json b/package.json index 38a4c3d1..b4629efb 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "typescript": "^5.0.0" }, "engines": { - "node": ">= 14" + "node": ">= 18" }, "publishConfig": { "access": "public" diff --git a/scripts/build.mjs b/scripts/build.mjs index 05e2e173..7d643664 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, }),