Skip to content

Releases

v11.0.0-nitro-v1.2

v11.0.0-nitro-v1.2 Pre-release
Pre-release

Choose a tag to compare

@chrispader chrispader released this 02 Dec 07:29
0e914fa

Nitro SQLite 11.0.0-nitro-v1.2 is another Nitro V1 prerelease on the nitro-v1 npm channel. It doesn't include NitroUI. The 11.0.0 line with NitroUI is published separately on the alpha channel.

Since 11.0.0-nitro-v1.1, query results are converted to JavaScript with less work. Large synchronous reads skip JSON encoding, and repeated calls reuse cached statements and move parameters and column names instead of copying them. A result column named __proto__ now stays an ordinary property of its row. The package metadata also points to the renamed repository, margelo/nitro-sqlite.

Performance

We measured a release candidate of this build against 10.4.0 on physical phones, using paired runs:

Case iPhone 14 Pro (iOS 27.2) Galaxy S10e (Android 12)
Read 10,000 narrow rows 5.8% faster 26.7% faster
Read 300,000 wide rows 4.2% faster 13.3% faster
Read 300,000 wide rows asynchronously 12.6% faster 13.7% faster
Asynchronous batch write 18.2% faster 23.0% faster

The other cases were within 3% of 10.4.0. In 11.0.0-nitro-v1.1, the same wide read on the iPhone was 18.9% slower than 10.4.0.

Try Nitro V1

Use React Native 0.88 or newer with the New Architecture. Install the Nitro Modules version used to build this release. The published package records it in devDependencies.

sqlite_version=11.0.0-nitro-v1.2
nitro_version=$(npm view "react-native-nitro-sqlite@$sqlite_version" devDependencies.react-native-nitro-modules)
test -n "$nitro_version" && npm install --save-exact "react-native-nitro-sqlite@$sqlite_version" "react-native-nitro-modules@$nitro_version"

Install the exact version. npm sorts nitro-v1 prereleases above alpha prereleases, so a range such as ^11.0.0-alpha.0 can resolve to this build.

For vector search, install react-native-nitro-sqlite-vec@11.0.0-nitro-v1.2. For Drizzle ORM, install react-native-nitro-sqlite-drizzle@11.0.0-nitro-v1.2.

On iOS, the package builds with Swift Package Manager. Use Xcode with Swift 6.4 or newer, and set a literal deployment target of iOS 16.0 or later in every app build configuration before updating SwiftPM. Follow the React Native SwiftPM setup or the Expo prebuild setup, then rebuild your native app.

macOS and visionOS aren't supported by Nitro V1 yet. For those platforms, use Nitro SQLite 10.x with Nitro Modules 0.37.2.

See the Nitro V1 migration guide for the renamed TypeScript types and native headers.


11.0.0-nitro-v1.2 (2026-12-02)

💨 Performance Improvements

  • avoid allocating default sync queue options (#575) (7caed27)
  • convert large synchronous results from compact native blocks (#589) (ceccc6c)
  • convert result metadata with one runtime data lookup (#577) (2bc9152)
  • defer RowBatchSender until the first full batch (#566) (c3e4262)
  • forward async connection operations by rvalue reference (#567) (48ac0ba)
  • move column names into the final native result (#563) (5038715)
  • move parameters into raw async operations (#564) (3b23eb2)
  • port the Nitro V1 result-encoding optimizations to the release lane (#561) (8ddd52c)
  • reuse statement cache entries on hits (#562) (07e9fd2)
  • reuse the inherited name probe as the first result row (#574) (3105c29)

🐛 Bug Fixes

  • keep inherited column names as own properties in direct rows (#570) (86433ae)

🏗️ Project configuration and build flow

  • prepare 11.0.0-nitro-v1.2 for the renamed repository (#625) (c89b738)

v11.0.0-alpha.1

v11.0.0-alpha.1 Pre-release
Pre-release

Choose a tag to compare

@chrispader chrispader released this 02 Dec 11:29
9952b1d

NitroSQLite 11.0.0-alpha.1 is the first alpha of 11.0.0, that runs fully on Nitro V1 and now also support NitroUI. This is an alpha, so APIs and requirements can still change before 11.0.0 is stable. Please report any issues you find.

Install it from the alpha tag. In React Native apps:

npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101

In NitroUI apps:

npm install --save-exact nitro-sqlite@alpha

Install the companion packages you use from alpha too, such as react-native-nitro-sqlite-vec@alpha or nitro-sqlite-drizzle@alpha. Use --save-exact (--exact for Yarn and Bun) for every alpha package. Without it, npm saves ^11.0.0-alpha.1, and that range also matches the older 11.0.0-nitro-v1.x builds.

The stable 10.x line stays on the latest tag, so installing without a tag still gives you 10.x.

Nitro V1

NitroSQLite now uses Nitro V1. In our benchmarks against 10.4.0, large reads and asynchronous batch writes are faster on iOS and Android, and other operations perform within 3% of 10.4.0.

NitroUI

NitroUI apps can now use NitroSQLite without React Native. The new nitro-sqlite package registers the same SQLite engine and TypeScript API with NitroUI on iOS and Android. It reads the same NitroSQLite_* Info.plist keys as the React Native package.

nitro-sqlite-vec, nitro-sqlite-drizzle, nitro-sqlite-kysely, nitro-sqlite-mikro-orm and nitro-sqlite-typeorm are the NitroUI versions of the React Native integration packages. They use the same ORM and Drizzle sources. The examples/nitro-ui app runs the same tests and benchmarks as the React Native example.

See Install on NitroUI to set it up.

Requirements

11.0.0 raises the minimum versions. For React Native:

  • React Native 0.88 or newer with the New Architecture, which also needs Node 22.13 or newer and Android minSdk 24.
  • Expo SDK 58, if you use Expo.
  • react-native-nitro-modules 1.0.0-alpha.nightly.138.g43e09c161101. The generated bindings must match this exact version.
  • On iOS, a deployment target of iOS 16.0 or later, Swift Package Manager instead of CocoaPods, and Xcode with Swift 6.4 or newer.

For NitroUI, use NitroUI SDK 0.2.0 with Nitro Core 1.0.0-alpha.nightly.137.gd4793c40b8b8, and on iOS a deployment target of iOS 16.0 or later and Xcode with Swift 6.4 or newer.

macOS and visionOS

11.0.0 doesn't support macOS (react-native-macos) or visionOS for now, because of incompatibilities with Nitro V1. I'm working on it. Apps on those platforms should stay on NitroSQLite 10.x.

Breaking changes

SQLiteError replaces NitroSQLiteError, and thrown errors now have the name SQLiteError. The old export still refers to the same class. Several exported types have shorter names, such as Connection and NativeQueryResult, and the old names remain as deprecated aliases. Native helper headers drop their NitroSQLite prefix, so NitroSQLiteOperations.hpp becomes SQLiteOperations.hpp.

The Android bindings moved to the com.margelo.nitro.nitrosqlite package. Autolinking handles this, but native code that calls RNNitroSQLiteOnLoad.initializeNative() directly needs the new package. On iOS, the NitroSQLite_DatabaseLocation and NitroSQLite_AppGroup Info.plist keys take precedence, and the RNNitroSQLite_* keys keep working when the new keys are absent.

Trying the alpha

  1. Upgrade your app to React Native 0.88 or newer, or to Expo SDK 58.
  2. Install react-native-nitro-sqlite@alpha, the companion packages you use from alpha, and react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101, all with exact versions.
  3. On iOS, set the deployment target to 16.0 or later and switch your app to Swift Package Manager. Expo apps opt in with "experiments": { "swiftPackageManager": true } in the app config, then run prebuild.
  4. If your code checks error.name === 'NitroSQLiteError', check for 'SQLiteError' or use instanceof SQLiteError.
  5. Rebuild your app.

iOS setup · Expo setup · Nitro V1 migration guide


11.0.0-alpha.1 (2026-12-02)

🐛 Bug Fixes

  • add repository metadata to nitro-sqlite and check it before publishing (#635) (605c5d9)
  • keep prerelease channels separate in the release plan (#636) (f8c809c)

v10.5.0

Choose a tag to compare

@chrispader chrispader released this 02 Dec 00:11
19f1442

NitroSQLite 10.5.0 adds Kysely and MikroORM support and improves how React Native apps read large query results. You can upgrade on Nitro 0.x without migrating to Nitro V1. We’re preparing Nitro V1 and NitroUI support for 11.0.0.

Kysely, MikroORM, and TypeORM

Kysely users can now run queries through a standalone SQLite dialect. The new MikroORM driver works with Metro. TypeORM has its own optional adapter, so apps that use SQLite directly no longer need to install TypeORM. Existing TypeORM apps can keep their core driver import if they install TypeORM themselves.

Query performance

On iOS, large asynchronous reads yield between row batches so the app can draw frames. Android skips that pause. Synchronous queries skip redundant queue checks, and building a query result takes one fewer native allocation.

Query results

Column aliases such as __proto__ now appear as ordinary properties on result rows. You can read the value by its alias, and the row keeps its original JavaScript prototype.

Upgrading

Update the NitroSQLite packages you use to 10.5.0, install Pods on Apple platforms, and rebuild your app. This release uses Nitro Modules 0.37.2. Android now initializes the database directory in native code and keeps existing database paths.

Kysely setup · MikroORM setup · TypeORM setup


10.5.0 (2026-12-01)

✨ Features

  • add a Nitro SQLite driver for MikroORM (#543) (efbe52a)
  • add a standalone Kysely dialect for Nitro SQLite (#582) (6c685ac)
  • isolate TypeORM behind an optional adapter package (#585) (6f62518)
  • run the MikroORM driver under Metro (#545) (20f4c0d)

💨 Performance Improvements

  • android: stop pausing large async reads between row batches (#572) (db02d97)
  • construct SQLite query results with final row storage (#595) (ddfd734)
  • let frames run between row batches of large async reads (#530) (6151fe8)
  • skip redundant managed queue checks and empty sync draining (#593) (3884725)

🐛 Bug Fixes

  • ci: cancel active runs after a pull request closes (#604) (853c0eb)
  • ci: run release checks for manifest-only changes (#601) (e99c514)
  • example: render the static navigation config with createStaticNavigation (#558) (9710cd6)
  • keep proto and other inherited column names as own row properties (#571) (f085db0)

🔄 Code Refactoring

  • android: initialize SQLite directories in the native root (#581) (28698c0)

🏗️ Project configuration and build flow

  • configure CodeRabbit reviews for Nitro SQLite (#532) (3f75db0)
  • include the MikroORM driver in coordinated releases (#546) (ac0f0d8)
  • include the TypeORM adapter in coordinated releases (#586) (ff1c55a)
  • point GitHub sponsoring to chrispader (#588) (fd7831c)
  • skip CodeRabbit reviews on release PRs (#603) (2507072)

📚 Documentation

  • explain how ORMs work with SQLite (#587) (1bf4365)
  • point agents to the QuickSQLite migration and the merged skill (#529) (edaa49f)
  • share the quick start for ORMs and Kysely (#583) (2f1af14)

v11.0.0-nitro-v1.1

v11.0.0-nitro-v1.1 Pre-release
Pre-release

Choose a tag to compare

@chrispader chrispader released this 30 Nov 21:49
5b756ca

Nitro SQLite 11.0.0-nitro-v1.1 is the final prerelease on the nitro-v1 npm channel. Since 11.0.0-nitro-v1.0, you can return query rows as arrays, listen for committed row changes, and set native SQLite options with Expo config plugins.

Try Nitro V1

Use React Native 0.88 or newer with the New Architecture. Install the Nitro Modules version used to build this release. The published package records it in devDependencies.

sqlite_version=11.0.0-nitro-v1.1
nitro_version=$(npm view "react-native-nitro-sqlite@$sqlite_version" devDependencies.react-native-nitro-modules)
test -n "$nitro_version" && npm install "react-native-nitro-sqlite@$sqlite_version" "react-native-nitro-modules@$nitro_version"

For vector search, install react-native-nitro-sqlite-vec@11.0.0-nitro-v1.1. For Drizzle ORM, install react-native-nitro-sqlite-drizzle@11.0.0-nitro-v1.1.

On iOS, use Xcode with Swift 6.4 or newer. Set a literal deployment target of iOS 16.0 or later in every app build configuration before updating SwiftPM. Follow the React Native SwiftPM setup or the Expo prebuild setup, then rebuild your native app.

For macOS and visionOS, use Nitro SQLite 10.x with Nitro Modules 0.37.2.

See the Nitro V1 migration guide for the renamed TypeScript types and native headers.


11.0.0-nitro-v1.1 (2026-11-30)

⚠ BREAKING CHANGES

  • The package no longer ships a CommonJS build. Jest setups that load react-native-nitro-sqlite/mock must add the package to transformIgnorePatterns so Jest transforms its ES modules.

🐛 Bug Fixes

  • expo: apply SQLite build options in SwiftPM (#554) (e0bc2ca)
  • keep Nitro V1 release notes on the release branch (#552) (2f3065e)

🏗️ Project configuration and build flow

  • integrate main into the Nitro V1 release lane (#553) (8ccdd68)

📚 Documentation

  • clarify Nitro V1 Apple deployment requirements (#556) (8ebd9c2)

v10.4.0

Choose a tag to compare

@chrispader chrispader released this 17 Nov 19:27
0d712a2

NitroSQLite 10.4.0 is available. The changes since v10.3.1 are listed below.


10.4.0 (2026-11-17)

🛠️ Dependency Upgrades

✨ Features

  • add change listeners for committed row changes (#516) (6664abd)
  • add Expo config plugins (#512) (ad2387e)
  • ios: read SQLite settings from Podfile.properties.json (#511) (3465f51)

🐛 Bug Fixes

  • android: apply every nitroSqliteFlags definition (#519) (a3a589a)
  • macos: declare macOS 10.15 as the minimum deployment target (#508) (5bf7745)
  • wait for row batches that arrive after an async result (#515) (18907e6)

🏗️ Project configuration and build flow

  • deps-dev: bump @react-native-harness/cli to 1.7.0 (#506) (486a661)
  • deps-dev: bump @react-native-harness/platform-android to 1.7.0 (#507) (f61af25)
  • deps-dev: support better-sqlite3 13 (#435) (5e2508b)
  • example: add an Expo example that uses the config plugins (#520) (85828b4)
  • example: keep Drizzle fixtures in Metro builds without watchman (#509) (cfb2f42)

v10.3.1

Choose a tag to compare

@chrispader chrispader released this 17 Nov 11:17
23c3278

NitroSQLite 10.3.1 makes the async APIs faster and fixes loadFileAsync() on a closed connection.

Faster async calls

Async calls used to pass through several async functions before they reached the native promise. Each one added a promise and extra microtask turns. executeAsync(), executeRawAsync(), executeBatchAsync(), loadFileAsync() and transaction() now chain the native promise directly. When no transaction or other call holds the connection, a statement now starts right away instead of waiting in the queue. Errors still come back as rejected promises. #496 #499 #500 #502

On Release builds of sqlite-bench, #496 alone brought 250 point reads in flight on a Galaxy S10 from between 138 and 153 µs per query down to between 100 and 102 µs. Sequential async point reads on an iPhone 14 Pro went from about 42 µs to 37 µs.

executeAsync() also passed a new JavaScript callback to native code on every query, although native code only uses it for results of 256 rows or more. It now registers one row handler and passes a numeric ID with each query. #504

Transactions

transaction() now runs BEGIN TRANSACTION synchronously, like COMMIT, because a deferred BEGIN takes no lock. The callback no longer waits for a round trip to the background thread, and it still starts after transaction() returns. BEGIN EXCLUSIVE TRANSACTION stays on the background thread because it can wait for another connection's lock. #501

Prepared statements

A prepared statement's executeAsync() and executeRawAsync() ran on a shared thread pool that doesn't keep call order, so each call waited for the previous result. They now run on the connection's background thread in call order, like db.executeAsync(), so you can start several calls without waiting for each result. #503

Bug fix

loadFileAsync() on a closed connection now returns a rejected promise instead of throwing. #498

Upgrading

Update react-native-nitro-sqlite to 10.3.1, and update react-native-nitro-sqlite-vec and react-native-nitro-sqlite-drizzle to the same version if you use them. The prepared statement and row handler changes touch the native module, so install Pods again on Apple platforms and rebuild your native app.


10.3.1 (2026-11-17)

💨 Performance Improvements

  • begin deferred transactions synchronously (#501) (dd43898)
  • drop promise layers around transactions (#500) (a939f67)
  • drop promise layers from async queries (#496) (92a2855)
  • drop promise layers from batch and file loading (#499) (77a8667)
  • run prepared async executions on the connection worker (#503) (3da8dc9)
  • send row batches to one registered handler (#504) (ed85f1a)
  • start statements directly when the queue is free (#502) (4339a76)

🐛 Bug Fixes

  • reject loadFileAsync on a closed connection (#498) (88e72ac)

🏗️ Project configuration and build flow

  • example: bundle Drizzle fixtures in release builds (#489) (b9b4cb8)

v11.0.0-nitro-v1.0

v11.0.0-nitro-v1.0 Pre-release
Pre-release

Choose a tag to compare

@chrispader chrispader released this 13 Nov 09:59
9f42e5b

NitroSQLite 11.0.0-nitro-v1.0 is available. The changes since v10.2.0 are listed below.


11.0.0-nitro-v1.0 (2026-11-13)

⚠ BREAKING CHANGES

  • ios: iOS apps must build with Swift Package Manager and Xcode with Swift 6.4 or newer.
  • Requires React Native 0.88 and Nitro V1.

build

  • ios: build with Swift Package Manager (f48b970)

✨ Features

🐛 Bug Fixes

  • ci: keep hyphenated prerelease versions intact in release PRs (e7b94c3)
  • vec: accept Nitro V1 prereleases of the core package (e80d5e0)
  • wait for asynchronous row batch delivery (92744b3)

🔄 Code Refactoring

  • encode query results with AnyJSON (14812ba)
  • rename the prepared statement hybrid object (b4b1317)
  • replace NitroSQLiteOnLoad with a platform context (537737b)
  • shorten SQLite type and helper names (73023ec)

🏗️ Project configuration and build flow

  • example: replace react-native-quick-crypto with buffer (5a8e3f1)
  • example: upgrade to React Native 0.88 (#455) (1311185)

📚 Documentation

  • consolidate shared SQLite configuration (#444) (aa2ab2f)
  • document the Nitro V1 setup (fb786ed)
  • separate SQLite concepts from NitroSQLite guides (#445) (8137684)

v10.3.0

Choose a tag to compare

@chrispader chrispader released this 10 Nov 15:32
22a75e2

NitroSQLite 10.3.0 adds a Drizzle ORM driver and queries that return rows as arrays. This minor release changes the package format to ES modules only, which can break Jest setups, so read the breaking change below before upgrading.

Breaking change: ES modules only

react-native-nitro-sqlite no longer ships a CommonJS build. The package now publishes a single ES module build, and both import and require resolve to it. #475

Jest runs tests as CommonJS and doesn't transform files in node_modules by default. If your tests load react-native-nitro-sqlite or react-native-nitro-sqlite/mock, add the package to the list in your transformIgnorePatterns so Jest transforms it:

// jest.config.js
module.exports = {
  transformIgnorePatterns: [
    'node_modules/(?!((jest-)?react-native|@react-native(-community)?|react-native-nitro-sqlite)/)',
  ],
}

See the Node.js test mock guide for the full setup.

Drizzle ORM

The new react-native-nitro-sqlite-drizzle package is a Drizzle ORM driver with drizzle(), migrate(), and a useMigrations() hook. See the Drizzle ORM guide for setup, migrations, and transactions. #448

Rows as arrays

executeRaw() and executeRawAsync() take the same arguments as execute() and executeAsync(), but return each row as an array of values in column order. When two columns share a name, as in a join, each keeps its own value. Connections, transactions, and prepared statements all have both methods. See rows as arrays. #447

Upgrading

Update react-native-nitro-sqlite to 10.3.0, and update react-native-nitro-sqlite-vec and react-native-nitro-sqlite-drizzle to the same version if you use them. The new query methods change the native module, so install Pods again on Apple platforms and rebuild your native app.


10.3.0 (2026-11-10)

⚠ BREAKING CHANGES

  • The package no longer ships a CommonJS build. Jest setups that load react-native-nitro-sqlite/mock must add the package to transformIgnorePatterns so Jest transforms its ES modules.

🛠️ Dependency Upgrades

  • deps: bump callstackincubator/react-native-harness from 1.6.0 to 1.7.0 in the actions group (#471) (67cd86f)
  • deps: bump Nitro to 0.37.2 (#473) (790742f)
  • deps: bump react-native-builder-bob to 0.44.1 (#477) (518e79d)

✨ Features

🏗️ Project configuration and build flow

  • example: benchmark app workloads and Drizzle (#470) (c12b9a5)
  • example: benchmark async reads and fractional REAL values (#469) (1b09ac4)
  • example: upgrade to React Native 0.88 (#455) (1311185)
  • ship ESM-only package output (#475) (1e74395)

📚 Documentation

  • announce 10.3.0 with the ESM-only breaking change (#480) (56a4a62)
  • consolidate shared SQLite configuration (#444) (aa2ab2f)
  • separate SQLite concepts from NitroSQLite guides (#445) (8137684)

v10.2.0

Choose a tag to compare

@chrispader chrispader released this 12 Oct 16:19
2484395

NitroSQLite 10.2.0 improves repeated queries, async result delivery, and Android writes. It also adds runtime error constants and an errors-only entry point for shared code and Node.js tests. This minor release includes compatibility changes to SQL validation and query result objects, so review the upgrade notes before rebuilding your app.

Performance improvements

Each connection now caches its 32 most recently used query and data-change statements. Repeated calls to execute() and executeAsync() can reuse compiled SQL when the query text stays the same. Bind values as parameters to benefit from this cache. Statements such as PRAGMA, ATTACH, and transaction commands still compile on every call. See the performance guide.

Async queries, batches, and file imports now run on a dedicated worker thread per connection. Large managed async queries convert rows to JavaScript in batches while SQLite reads the remaining rows. The promise still resolves once with every row in order; paginate large queries to limit the final result size.

Android builds now use fdatasync() and enable batch atomic writes on supported F2FS filesystems. These changes reduce commit I/O without lowering PRAGMA synchronous. SQLite falls back to its rollback journal when atomic writes are unavailable. See the Android configuration guide for details and build-time opt-outs. #440

Breaking changes and migration

One SQL statement per query

SQL strings containing more than one statement now throw or reject instead of running the first statement and silently ignoring the rest. This affects execute(), executeAsync(), prepare(), each batch command, and each nonempty SQL-file line. Trailing whitespace, comments, and extra semicolons remain allowed. #439

Replace a query such as db.execute('CREATE TABLE foo (id INTEGER); CREATE TABLE bar (id INTEGER);') with separate statements. Use a batch when the changes should commit together:

await db.executeBatchAsync([
  { query: 'CREATE TABLE foo (id INTEGER)' },
  { query: 'CREATE TABLE bar (id INTEGER)' },
])

Use separate execute() or executeAsync() calls when you need each statement's results. Inside a transaction callback, execute each statement through the callback's tx methods. SQL files must contain one complete statement per nonempty line; a line with multiple statements now fails and rolls back the import. Do not split SQL by semicolons alone, since semicolons can appear inside strings and trigger bodies. See batch operations and SQL file loading.

Query results are plain objects

NitroSQLiteQueryResult no longer extends Nitro's HybridObject. Results no longer have name, toString(), equals(), or dispose() members from Nitro. Remove result-specific Nitro lifecycle calls and hybrid-object assumptions; ordinary JavaScript garbage collection reclaims results. The data fields rowsAffected, insertId, results, and metadata remain, and managed results retain rows._array, rows.length, and rows.item().

For users calling NitroSQLite.native.executeAsync() directly, the new optional onRows callback receives leading rows in batches. When supplied, those rows are excluded from the resolved result's results array, so combine the callback batches with the final rows if you need the complete result. Omitting the callback returns every row as before. Managed executeAsync() handles this automatically. See native access. #440

Error handling and upgrading

NitroSQLiteExceptionType is now available as runtime constants as well as a TypeScript type. Import it with NitroSQLiteError from react-native-nitro-sqlite/errors to classify failures without importing React Native or initializing the native module. Both exports remain available from the package root. #441

Update react-native-nitro-sqlite to 10.2.0 and, if you use sqlite-vec, update react-native-nitro-sqlite-vec to the same version. Install Pods again on Apple platforms and rebuild your native app. The native bindings changed, so this upgrade requires a new native build.


10.2.0 (2026-10-12)

🛠️ Dependency Upgrades

  • deps: bump actions/download-artifact from 4 to 8 (#437) (8f38649)
  • deps: bump actions/upload-artifact from 4 to 7 (#438) (251e509)

✨ Features

💨 Performance Improvements

🐛 Bug Fixes

  • reject SQL containing more than one statement (#439) (c6d6aab), closes #3

🏗️ Project configuration and build flow

  • deps-dev: upgrade Mocha to 12 in the example (#418) (6c47743)

v10.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 14:02
680c305

NitroSQLite 10.1.0 adds opt-in SQLite SEE encryption support and a Node.js mock backed by better-sqlite3. We've improved repeated batch execution and query-result conversion, upgraded bundled SQLite to 3.53.4, and enabled RTree indexes by default. This release includes the connection ownership fix shipped in 10.0.1, along with the newer changes on main.

Encryption and Node.js testing

You can now pass an encryption key when opening a database built with the licensed SQLite Encryption Extension. SEE source is not bundled with NitroSQLite; enabling it requires your licensed source and a native rebuild. See the encryption guide for setup and key handling. #410

The new react-native-nitro-sqlite/mock entry point runs against better-sqlite3 in Node.js. It supports independent connections, prepared statements, transactions, and batches for tests that need a real SQLite engine. Install better-sqlite3 separately when using the mock. #395, #420

Query performance and SQLite support

Grouped batch parameters reuse a prepared statement for repeated executions of the same SQL. Query results also avoid an extra native row copy during conversion to JavaScript. #387, #389

Bundled SQLite is now 3.53.4, and its symbols are isolated from other SQLite engines linked into the same app. RTree is enabled by default for spatial and range indexes. See the queries and indexes guide. #392, #390, #425

Reliability and upgrading

Connections close with the NitroSQLite owner that opened them, so replacing a runtime can reopen the same database. We've also improved transaction cleanup and error reporting, restored undefined parameters as SQL NULL, preserved embedded NUL bytes in text results, and corrected column metadata types. Android temporary files now use the app cache. The changelog below links each fix.

Update both packages to 10.1.0 if you use sqlite-vec, install Pods again on Apple platforms, and rebuild your native app. SQLite 3.53 changes floating-point-to-text conversion from 15 to 17 significant digits, so check code that depends on exact SQL text formatting. The TypeORM dependency is now 1.1.1. #426

The documentation website now includes guides and a generated API reference.


10.1.0 (2026-10-01)

✨ Features

  • add better-sqlite3 Node mock (#395) (8331394)
  • add opt-in SQLite SEE encryption support (#410) (f7cdfd5)
  • extend Node mock with connections and statements (#420) (b934d7b)

💨 Performance Improvements

  • convert positional query results without native row copies (#389) (bc43ba0)
  • example: make SQLite benchmarks reproducible (#412) (e92e176)
  • example: sample process memory in benchmarks (#414) (4508c9b)
  • reuse prepared statements for grouped batch parameters (#387) (234bf34)

🐛 Bug Fixes

  • android: use app cache for SQLite temporary files (#406) (3c0e78d)
  • bundle Android release from example app (#385) (8dc98a1)
  • correct SQLite column metadata types (#313) (35185bc), closes #305
  • docs: space API symbol actions below headings (#416) (fb0f5bd)
  • enable SQLite RTree by default (#425) (d51cd54)
  • include parameter context in SQLite binding errors (#314) (2cc28d5), closes #309
  • isolate bundled SQLite symbols from other engines (#390) (604f040)
  • locate hoisted Hermes compiler for Android release (#388) (faffcf4)
  • preserve embedded NUL bytes in SQLite text results (#386) (bfddf53)
  • preserve loadFile transaction errors (#315) (b393c5f), closes #308
  • restore undefined SQL query parameters (#382) (4c3a2c9)
  • roll back failed transaction commits (#316) (46b6e7d), closes #307
  • scope database connections to their NitroSQLite owner (#421) (6dd1049)
  • use example entry for Android release bundle (#384) (0528831)

🏗️ Project configuration and build flow

Read more