Skip to content

chore: migrate to Node 24 LTS and replace sqlite3 with node:sqlite#422

Closed
YagUber wants to merge 3 commits intocedya77:devfrom
YagUber:chore/migrate-sqlite-node24
Closed

chore: migrate to Node 24 LTS and replace sqlite3 with node:sqlite#422
YagUber wants to merge 3 commits intocedya77:devfrom
YagUber:chore/migrate-sqlite-node24

Conversation

@YagUber
Copy link
Copy Markdown
Contributor

@YagUber YagUber commented Apr 11, 2026

Summary

sqlite3 is no longer maintained and its README recommends migrating away from it.

node:sqlite is currently at Stability 1.2 (release candidate). It will emit an ExperimentalWarning at runtime until it reaches stable. The API surface used here (DatabaseSync, prepare, run, get, all) is unlikely to change before stabilization.

better-sqlite3 was considered as an alternative, but I figured being an early adopter of the built-in module couldn't hurt here.

Tested against the SQLite path locally, all read/write/upsert/delete operations work as expected.

Changes

  • Add .nvmrc pinning Node.js 24
  • Retarget Dockerfile runner and builder to Node.js 24
  • Remove the unmaintained sqlite3 package in favor of the built-in node:sqlite module introduced in Node.js 22 and available without flags in Node 24

YagUber added 3 commits April 10, 2026 20:28
Bump base Docker image and .nvmrc to node:24-alpine / 24. Node 20 enters end-of-life April 2026. Node 24 is the current Active LTS through April 2028.
Remove unmaintained sqlite3 npm package in favor of the native node:sqlite module introduced in Node.js 22 and available without a flag in Node 24.
@YagUber
Copy link
Copy Markdown
Contributor Author

YagUber commented Apr 13, 2026

Addressed by #423

@YagUber YagUber closed this Apr 13, 2026
@YagUber YagUber deleted the chore/migrate-sqlite-node24 branch April 13, 2026 18:43
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.

1 participant