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.
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [better-sqlite3](https://github.com/WiseLibs/better-sqlite3) | [`12.11.1` → `13.0.1`](https://renovatebot.com/diffs/npm/better-sqlite3/12.11.1/13.0.1) |  |  |
---
### Release Notes
<details>
<summary>WiseLibs/better-sqlite3 (better-sqlite3)</summary>
### [`v13.0.1`](https://github.com/WiseLibs/better-sqlite3/releases/tag/v13.0.1)
[Compare Source](https://github.com/WiseLibs/better-sqlite3/compare/v13.0.0...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).
### [`v13.0.0`](https://github.com/WiseLibs/better-sqlite3/releases/tag/v13.0.0)
[Compare Source](https://github.com/WiseLibs/better-sqlite3/compare/v12.11.1...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](https://nodejs.org/api/n-api.html). 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`](https://www.npmjs.com/package/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](https://github.com/JoshuaWise) in [#​1498](https://github.com/WiseLibs/better-sqlite3/pull/1498)
- Added a new [`db.explain()`](https://github.com/WiseLibs/better-sqlite3/blob/master/docs/api.md#explainstring---array-of-rows) method, for running EXPLAIN queries without needing to supply bound parameters.
- Added a new [`preparedStatement.toString()`](https://github.com/WiseLibs/better-sqlite3/blob/master/docs/api.md#tostring---string) method, for getting the expanded SQL of a prepared statement.
- Fix `SqliteError` cross-realm and `Error.isError` compatibility by [@​dennismutuku2005](https://github.com/dennismutuku2005) in [#​1473](https://github.com/WiseLibs/better-sqlite3/pull/1473)
#### New Contributors
- [@​dennismutuku2005](https://github.com/dennismutuku2005) made their first contribution in [#​1473](https://github.com/WiseLibs/better-sqlite3/pull/1473)
**Full Changelog**: <https://github.com/WiseLibs/better-sqlite3/compare/v12.12.0...v13.0.0>
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNjMuMyIsInVwZGF0ZWRJblZlciI6IjQzLjE2My4zIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tYXRlZCIsImRlcGVuZGVuY2llcyJdfQ==-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
12.11.1→13.0.1Release Notes
WiseLibs/better-sqlite3 (better-sqlite3)
v13.0.1Compare Source
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).
v13.0.0Compare Source
Version
13.0.0marks a major milestone, as it's the first version ofbetter-sqlite3to 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 deprecatedprebuild-installdependency, and now prebuilt binaries are published directly with thebetter-sqlite3code itself. If your platform/architecture doesn't have a prebuilt binary, it should compile during install as before.What's Changed
db.explain()method, for running EXPLAIN queries without needing to supply bound parameters.preparedStatement.toString()method, for getting the expanded SQL of a prepared statement.SqliteErrorcross-realm andError.isErrorcompatibility by @dennismutuku2005 in #1473New Contributors
Full Changelog: https://github.com/WiseLibs/better-sqlite3/compare/v12.12.0...v13.0.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.