What changed in better-sqlite3 from 12 to 13

4 releases numbered after v12.12.0 up to and including v13.0.3, stable releases only. v12.12.0 and v13.0.3 are the newest stable releases of 12 and 13 we track; this page follows them as new ones ship.

11 changes across 4 releases

Added 3

v13.0.2

  • Add gypfile option to package.json

v13.0.0

  • Added db.explain() method for running EXPLAIN queries without needing to supply bound parameters
  • Added preparedStatement.toString() method for getting the expanded SQL of a prepared statement
Changed 3

v13.0.3

  • Use Ubuntu 22.04-arm for builds

v13.0.2

  • Update SQLite to version 3.53.4

v13.0.0

  • Refactored codebase to use node-addon-api and N-API for compatibility across different versions of Node.js and Electron
Fixed 4

v13.0.2

  • Validate the parameters of table properly
  • Fix process aborting from terminating worker threads

v13.0.1

  • Fixed a regression in parameter binding where it would be overly strict and reject plain objects from other realms

v13.0.0

  • Fixed SqliteError cross-realm and Error.isError compatibility
Removed 1

v13.0.0

  • Removed deprecated prebuild-install dependency

Original release notes, newest first

The list above is our reading of these notes; the originals from WiseLibs are here, one fold per release.

v13.0.3
v13.0.2
What's Changed
New Contributors

Full Changelog: https://github.com/WiseLibs/better-sqlite3/compare/v13.0.1...v13.0.2

View originalPermalink

v13.0.1

Full Changelog: https://github.com/WiseLibs/better-sqlite3/compare/v13.0.0...v13.0.1

Fixed a regression in parameter binding where it would be overly strict and reject plain objects from other realms (e.g., in jest tests).

View originalPermalink

v13.0.0

Version 13.0.0 marks a major milestone, as it's the first version of better-sqlite3 to run on the N-API. This means prebuilt binaries should theoretically work across different versions of Node.js and Electron, and perhaps even other runtimes like Bun. As a result, we've removed the deprecated prebuild-install dependency, and now prebuilt binaries are published directly with the better-sqlite3 code itself. If your platform/architecture doesn't have a prebuilt binary, it should compile during install as before.

What's Changed
New Contributors

Full Changelog: https://github.com/WiseLibs/better-sqlite3/compare/v12.12.0...v13.0.0

View originalPermalink