Skip to content

Bump better-sqlite3 from ^11.0.0 to ^12.4.5 (Node 25 support)#263

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/bump-better-sqlite3-version
Draft

Bump better-sqlite3 from ^11.0.0 to ^12.4.5 (Node 25 support)#263
Copilot wants to merge 2 commits intomainfrom
copilot/bump-better-sqlite3-version

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

better-sqlite3@^11 (resolves to 11.10.0) has no Node 25 prebuilts and fails source compilation due to V8 API changes (v8-object.h errors). Node 25 support was added in v12.4.5 via WiseLibs/better-sqlite3#1411 and #1422.

Changes

  • package.json: "better-sqlite3": "^11.0.0""^12.4.5"
  • CHANGELOG.md: entry under [Unreleased]
Original prompt

This section details on the original issue you should resolve

<issue_title>npm install fails on Node 25: better-sqlite3 ^11 needs bump to ^12.4.5+</issue_title>
<issue_description>### Environment

  • OS: macOS arm64 (Darwin 23.6.0)
  • Node: v25.6.1 (Homebrew)
  • qmd: 1.0.7

Problem

npm install -g @tobilu/qmd fails on Node 25 because qmd pins better-sqlite3@^11.0.0 (resolves to 11.10.0), which has no Node 25 prebuilt binaries and fails source compilation due to V8 API changes:

v8-object.h:957:37: error: expected expression
    I::ReadExternalPointerField<{internal::kFirstEmbedderDataTag,

Root cause

better-sqlite3 added Node 25 support (prebuilds + engines) in v12.4.5 (WiseLibs/better-sqlite3#1411, WiseLibs/better-sqlite3#1422). QMD's package.json pins ^11.0.0 which caps the resolved version at 11.10.0.

Proposed fix

Bump better-sqlite3 dependency from ^11.0.0 to ^12.4.5 in package.json.

Workaround

Running qmd via Node 22 wrapper:

#!/usr/bin/env bash
exec /opt/homebrew/opt/node@22/bin/node \
  /opt/homebrew/lib/node_modules/@tobilu/qmd/dist/qmd.js "$@"

Notes

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: tobi <347+tobi@users.noreply.github.com>
Copilot AI changed the title [WIP] Bump better-sqlite3 dependency to ^12.4.5 Bump better-sqlite3 from ^11.0.0 to ^12.4.5 (Node 25 support) Feb 26, 2026
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.

npm install fails on Node 25: better-sqlite3 ^11 needs bump to ^12.4.5+

2 participants