diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f7a640..fbc0aae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -132,27 +132,24 @@ jobs: strategy: fail-fast: false matrix: + node: ["22.x", "24.x", "26.x"] + os: [ubuntu-latest, ubuntu-24.04-arm, macos-15, macos-15-intel, windows-latest] include: - os: ubuntu-latest platform: linux-x64-gnu shell: bash - node: "22.23.4" - os: ubuntu-24.04-arm platform: linux-arm64-gnu shell: bash - node: "22.23.4" - - os: macos-14 # arm64 + - os: macos-15 # arm64 platform: darwin-arm64 shell: bash - node: "22.23.4" - os: macos-15-intel # x64 platform: darwin-x64 shell: bash - node: "22.23.4" - os: windows-latest platform: windows-x64 shell: pwsh - node: "22.23.4" runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index e199611..f8ceeb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- The next minor release (0.4.0) requires Node.js 22 or newer for `duroxide` + and its native platform packages. Upgrade from Node.js 18 or 20 before + installing 0.4.0. The requirement for 0.3.0 is unchanged. + ## [0.3.0] - 2026-11-30 ### Changed diff --git a/README.md b/README.md index 5199401..187321e 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,10 @@ Node.js/TypeScript SDK for the [Duroxide](https://github.com/microsoft/duroxide) ## Quick Start +Starting with SDK 0.4.0, Node.js 22 or newer is required. If you use Node.js +18 or 20, upgrade Node.js before upgrading the SDK. SDK 0.3.0 still declares +Node.js 18 as its minimum. + ```bash npm install duroxide ``` diff --git a/ci/smoke/README.md b/ci/smoke/README.md index ad12a05..2116cbf 100644 --- a/ci/smoke/README.md +++ b/ci/smoke/README.md @@ -4,6 +4,9 @@ Cross-platform smoke tests that exercise the **distributable** `duroxide` npm package — not the source tree. Installs into a fresh temp dir, resolves the napi-rs platform subpackage, runs a minimal SQLite-backed orchestration. +CI packs the tarballs on Node.js 24 and tests those same tarballs on Node.js +22, 24, and 26 for each supported OS and architecture. + Motivated by [microsoft/duroxide#13](https://github.com/microsoft/duroxide/issues/13): the Windows platform subpackage was renamed from `duroxide-win32-x64-msvc` to `duroxide-windows-x64` but `index.js` kept the old name, breaking every Windows diff --git a/npm/npm/darwin-arm64/package.json b/npm/npm/darwin-arm64/package.json index 1db7b92..513d437 100644 --- a/npm/npm/darwin-arm64/package.json +++ b/npm/npm/darwin-arm64/package.json @@ -18,6 +18,6 @@ }, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">=22" } } diff --git a/npm/npm/darwin-x64/package.json b/npm/npm/darwin-x64/package.json index 2433815..d9d4468 100644 --- a/npm/npm/darwin-x64/package.json +++ b/npm/npm/darwin-x64/package.json @@ -18,6 +18,6 @@ }, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">=22" } } diff --git a/npm/npm/linux-arm64-gnu/package.json b/npm/npm/linux-arm64-gnu/package.json index 78884ea..669b65a 100644 --- a/npm/npm/linux-arm64-gnu/package.json +++ b/npm/npm/linux-arm64-gnu/package.json @@ -18,7 +18,7 @@ }, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">=22" }, "libc": [ "glibc" diff --git a/npm/npm/linux-x64-gnu/package.json b/npm/npm/linux-x64-gnu/package.json index d8b7427..e8a3b87 100644 --- a/npm/npm/linux-x64-gnu/package.json +++ b/npm/npm/linux-x64-gnu/package.json @@ -18,7 +18,7 @@ }, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">=22" }, "libc": [ "glibc" diff --git a/npm/npm/win32-x64-msvc/package.json b/npm/npm/win32-x64-msvc/package.json index 9cf6ea5..0dadcbe 100644 --- a/npm/npm/win32-x64-msvc/package.json +++ b/npm/npm/win32-x64-msvc/package.json @@ -18,6 +18,6 @@ }, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">=22" } } diff --git a/package-lock.json b/package-lock.json index fbfd347..3e02521 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "dotenv": "^17.2.4" }, "engines": { - "node": ">= 18" + "node": ">=22" }, "optionalDependencies": { "duroxide-darwin-arm64": "0.3.0", diff --git a/package.json b/package.json index 715cf95..f4d37aa 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ }, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">=22" }, "optionalDependencies": { "duroxide-darwin-arm64": "0.3.0",