Skip to content

Require Node.js 22+ for SDK 0.4.0 - #33

Merged
Alperen Cetin (hacetin) merged 1 commit into
mainfrom
alperen/node-sdk-runtime-support
Nov 30, 2026
Merged

Alperen Cetin (hacetin) merged 1 commit into
mainfrom
alperen/node-sdk-runtime-support

Conversation

@hacetin

Copy link
Copy Markdown
Contributor

Raise engines.node to >=22 for duroxide and all five native platform packages. The README and unreleased changelog advise Node.js 18 and 20 users to upgrade their runtime before adopting SDK 0.4.0. No version bump or change to the tagged 0.3.0 release.

CI continues to build and pack on Node.js 24. The packaging smoke job installs the same tarballs and runs a SQLite orchestration on Node.js 22, 24, and 26 across all five supported platforms.

Locally verified the manifest and lockfile engine ranges, unchanged package versions, and the 15-entry smoke matrix. Cross-platform execution runs in GitHub Actions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a5aa73bb-3b04-4bbb-ad55-4325d4e1d8a8

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, assuming we're ok with the extra CI

strategy:
fail-fast: false
matrix:
node: ["22.x", "24.x", "26.x"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does a lot more CI (this is 3 node versions times 5 OS versions), 15 runs vs 5 before. That seems mostly fine, but I don't know how slow the CI for this is.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each job takes less than a minute and they run in parallel. I think we are good.

@hacetin
Alperen Cetin (hacetin) merged commit 6e1c44b into main Nov 30, 2026
23 checks passed
@ChrisKrawczyk

Copy link
Copy Markdown
Contributor

Post-merge review notes: follow-ups before 0.4.0

The change is correct. All six manifests and the lockfile root say >=22, v0.3.0 still says >=18, and all 15 smoke jobs passed. A few things should be closed before 0.4.0:

  1. main is version 0.3.0 with the Node 22 floor.
    • Nothing in release preparation forces a minor version bump, so a 0.3.1 cut from main would ship a breaking change.
    • Suggested fix: bump main to 0.4.0 now, or add this rule to the release-preparation skill in both SDKs: "a runtime-floor change requires at least the next minor version on 0.x".
    • Any 0.3.x release should come from a branch off v0.3.0.
  2. Node 18/20 users get a misleading error.
    • Some installs on Node 18/20 resolve to 0.4.x: @latest, ^0.4.0, or npm ci with a lockfile written on Node 22+. In those cases npm skips the platform package because its engines check fails, even with --force.
    • require('duroxide') then throws Cannot find module 'duroxide-<platform>'.
    • Suggested fix: in lib/duroxide.js, add a hint when the platform package fails to load, and name both possible causes:
      • running on Node older than 22;
      • having installed on Node older than 22, since npm checks engines against the Node version that ran the install.
    • Add a test with the optional package missing.
  3. Nothing checks engines in the packed tarballs.
    • Smoke tests would still pass if engines.node were missing or still >=18.
    • Suggested fix: add one check over all six packed manifests. It should assert that every value matches and that the floor is 22. A match check alone passes if all six are wrong together.
    • Add engines to the release-preparation sync list.

Smaller items:

  • The docs/user-guide.md install step doesn't mention Node 22+. The README does.
  • Smoke moved from the pinned 22.23.4 to 22.x/24.x/26.x with check-latest: false. As a result, macos-15-intel ran cached 22.23.2 and 24.19.0, which are older than the current security releases. Consider check-latest: true. This change also silently undid the 0.2.3 pin.
  • Node 22 reaches end of life on 2027-04-30. A short supported-runtimes policy, mirrored in duroxide-python, would make the next floor bump routine.

Consumers that still need Node 18/20: none found.

  • mertdogar/super-line declares >=18, but it pins duroxide 0.1.28 and runs CI on Node 22.
  • The other consumers we found already require Node 24+.
  • Not covered: private repositories. npm doesn't publish download counts by Node version, so those couldn't be checked.

Prepared with an AI-assisted multi-model review (GitHub Copilot CLI). Key claims were checked against the code and CI runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants