Skip to content

Releases: WiseLibs/better-sqlite3

v7.3.0

05 May 01:19

Choose a tag to compare

  • Added the db.serialize() method.
  • Buffers returned from db.serialize() can be opened as in-memory databases by passing them to new Database(buffer).
  • Added the stmt.readonly property.
  • added the directOnly option to user-defined functions and aggregates.

v7.2.0

04 May 06:19

Choose a tag to compare

  • added support for the RETURNING clause
  • statements that return data can now be executed via .run() if no query results are desired

v7.1.5

14 Apr 22:58

Choose a tag to compare

  • Fixed subclassing (e.g., class MyClass extends Database {})

v7.1.4

30 Mar 22:48

Choose a tag to compare

  • Fixes for Jest environments
  • Updated SQLite to v3.35.2

v7.1.2

19 Dec 22:37

Choose a tag to compare

7.1.2

v7.1.1

14 Sep 20:29

Choose a tag to compare

7.1.1

v7.1.0

10 Jun 18:49

Choose a tag to compare

Updated SQLite to version 3.32.0.

v7.0.1

26 Apr 00:58

Choose a tag to compare

7.0.1

v7.0.0

25 Apr 15:33

Choose a tag to compare

Breaking changes

Non-breaking changes

  • Added support for worker threads (see an example here)
  • Added support for Jest environments
  • Fixed many issues related to users building packaged executables, including:
    • FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal
    • FATAL ERROR: v8::Object::GetAlignedPointerFromInternalField()
    • Error: Cannot find module '...\node_modules\integer\node
    • Various electron-related issues
  • Added an optional second parameter to db.loadExtension() which allows users to specify the entry point of the extension
  • Improved documentation for building custom configurations
  • Documented some undocumented features.
  • Enabled SQLITE_ENABLE_GEOPOLY
  • Enabled SQLITE_THREADSAFE=2
  • Enabled SQLITE_OMIT_SHARED_CACHE
  • Removed SQLITE_USE_URI
  • The "verbose" option now logs SQL passed to db.exec() in statement-by-statement fashion, rather than all at once (to match the behavior of using prepared statements)
  • Added "unsafe mode" which allows advanced users to do dangerous things at their own risk:
    • allows users to mutate the database while iterating through a query, which has non-deterministic behavior
    • disables SQLITE_DBCONFIG_DEFENSIVE which allows users to corrupt their database file and execute undefined behavior

v6.0.1

24 Feb 14:12

Choose a tag to compare

6.0.1