Skip to content

Conversation

@daniel-hauser
Copy link

This pull request updates the Node.js version support for the project, adding compatibility for Node.js v25

  • Updated the NODE_BUILD_CMD in .github/workflows/build.yml to include Node.js v25, ensuring prebuilt binaries are generated for this version.
  • Added Node.js v25 to the test matrix in .github/workflows/build.yml so that CI tests run against this version.
  • Updated the engines.node field in package.json to include Node.js v25, formally declaring support for this version.
  • Changed the minimum required Node.js version in README.md from v14.21.1 to v20.0.0 to match the current support policy.

Fixes #1411

@daniel-hauser daniel-hauser requested review from a team and JoshuaWise as code owners October 17, 2025 20:45
],
"engines": {
"node": "20.x || 22.x || 23.x || 24.x"
"node": "20.x || 22.x || 23.x || 24.x || 25.x"

Choose a reason for hiding this comment

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

How about just using >=20?

Copy link
Author

Choose a reason for hiding this comment

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

I explicitly added 25 to match it with the prebuild that is for a closed list of versions

Copy link
Member

Choose a reason for hiding this comment

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

FWIW I’d be fine with either approach

mceachen
mceachen previously approved these changes Oct 19, 2025
Copy link
Member

@mceachen mceachen left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@mceachen
Copy link
Member

Bummer, it seems like node 25 needs a newer compiler toolchain? https://github.com/WiseLibs/better-sqlite3/actions/runs/18604446742/job/53116228499?pr=1412 I suspect pulling in a new gcc will require a newer Ubuntu host image. Perhaps we only make the newer Ubuntu a requirement for node 25?

@daniel-hauser
Copy link
Author

daniel-hauser commented Oct 20, 2025

Bummer, it seems like node 25 needs a newer compiler toolchain? https://github.com/WiseLibs/better-sqlite3/actions/runs/18604446742/job/53116228499?pr=1412 I suspect pulling in a new gcc will require a newer Ubuntu host image. Perhaps we only make the newer Ubuntu a requirement for node 25?

From what i read, gcc11 should work. Can you approve the workflow run so we can see if it works?

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

better-sqlite3 12.3.0 fails to build on Node.js latest (25)

3 participants