diff --git a/.github/workflows/ci-win.yml b/.github/workflows/ci-win.yml index 3bd60207a..a0dc12140 100644 --- a/.github/workflows/ci-win.yml +++ b/.github/workflows/ci-win.yml @@ -18,22 +18,18 @@ jobs: - standard - experimental node-version: - - 20.x - 22.x - 24.x - - 25.x - 26.x architecture: [x64, x86] os: - windows-2022 - windows-2025 exclude: - # Skip when node 24.x or 25.x AND architecture is x86 since there is - # no published Node.js x86 build for those versions. + # Skip Node.js 24.x and 26.x on x86 since there are no published + # Node.js x86 builds for those versions. - node-version: 24.x architecture: x86 - - node-version: 25.x - architecture: x86 - node-version: 26.x architecture: x86 runs-on: ${{ matrix.os }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c583b8c8e..22e867e45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,10 +18,8 @@ jobs: - standard - experimental node-version: - - 20.x - 22.x - 24.x - - 25.x - 26.x os: - macos-latest diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8758fdcef..12f2cc70d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -68,11 +68,11 @@ jobs: # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - name: Use Node.js v18.x + - name: Use Node.js v22.x if: matrix.language == 'cpp' uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: - node-version: 18.x + node-version: 22.x - name: Build cpp if: matrix.language == 'cpp' diff --git a/README.md b/README.md index 268c1e70f..1d220793a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ This allows addons built with it to run with Node.js versions which support the **However** the node-addon-api support model is to support only the active LTS Node.js versions. This means that every year there will be a new major which drops support for the Node.js LTS version which has gone out of service. -The oldest Node.js version supported by the current version of node-addon-api is Node.js 18.x. +The oldest Node.js version supported by the current version of node-addon-api is Node.js 22.x. ## Badges diff --git a/package.json b/package.json index bc824264d..b8118238e 100644 --- a/package.json +++ b/package.json @@ -476,6 +476,6 @@ "version": "8.9.2", "support": true, "engines": { - "node": "^18 || ^20 || >= 21" + "node": "^22 || ^24 || >= 26" } }