| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-07-21 | 1.5 kB | |
| v13.0.0 source code.tar.gz | 2026-07-21 | 2.7 MB | |
| v13.0.0 source code.zip | 2026-07-21 | 2.8 MB | |
| Totals: 3 Items | 5.5 MB | 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
- Refactored codebase to use node-addon-api by @JoshuaWise in https://github.com/WiseLibs/better-sqlite3/pull/1498
- Added a new
db.explain()(github.com) method, for running EXPLAIN queries without needing to supply bound parameters. - Added a new
preparedStatement.toString()(github.com) method, for getting the expanded SQL of a prepared statement. - Fix
SqliteErrorcross-realm andError.isErrorcompatibility by @dennismutuku2005 in https://github.com/WiseLibs/better-sqlite3/pull/1473
New Contributors
- @dennismutuku2005 made their first contribution in https://github.com/WiseLibs/better-sqlite3/pull/1473
Full Changelog: https://github.com/WiseLibs/better-sqlite3/compare/v12.12.0...v13.0.0