Repository navigation
v10.3.0
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)