From 28163f5078c73f97515f25859085abc0ecd57cc4 Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Wed, 2 Dec 2026 01:51:10 +0100 Subject: [PATCH 1/3] docs: install the 11.0.0 alpha from the alpha tag Co-Authored-By: Claude Opus 5.5 --- docs/content/docs/configuration/expo.mdx | 4 +- docs/content/docs/configuration/index.mdx | 2 +- docs/content/docs/configuration/macos.mdx | 2 +- .../docs/guides/migrate-from-quick-sqlite.mdx | 2 +- docs/releases/README.md | 4 +- docs/releases/v11.0.0-alpha.0.md | 48 +++++++++++++++++++ 6 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 docs/releases/v11.0.0-alpha.0.md diff --git a/docs/content/docs/configuration/expo.mdx b/docs/content/docs/configuration/expo.mdx index b8e09cdf..1e1ebd4c 100644 --- a/docs/content/docs/configuration/expo.mdx +++ b/docs/content/docs/configuration/expo.mdx @@ -5,7 +5,7 @@ description: Configure optional native SQLite features during Expo prebuild and SQLite compiles optional modules into the native library. FTS5 adds full-text indexes, while sqlite-vec adds vector search. Changing these modules requires a native rebuild; a JavaScript update cannot enable them. -Use Expo SDK 58 for the Nitro V1 prerelease. Its native runtime requires React Native 0.88 or newer and uses Swift Package Manager on iOS. Nitro SQLite autolinks without a config plugin. Add the plugins to change SQLite settings during prebuild. The repository tests these prebuild transformations on Expo SDKs 55 through 58. Run your app in a development or production build because Expo Go does not include Nitro SQLite. +Use Expo SDK 58 for the 11.0.0 alpha. Its native runtime requires React Native 0.88 or newer and uses Swift Package Manager on iOS. Nitro SQLite autolinks without a config plugin. Add the plugins to change SQLite settings during prebuild. The repository tests these prebuild transformations on Expo SDKs 55 through 58. Run your app in a development or production build because Expo Go does not include Nitro SQLite. ## Configure SQLite @@ -42,7 +42,7 @@ Shared settings such as `threadSafe`, `performanceMode`, and `enableRTree` still Install the companion package and add its plugin: ```sh -npx expo install react-native-nitro-sqlite-vec@nitro-v1 +npx expo install react-native-nitro-sqlite-vec@alpha ``` ```json diff --git a/docs/content/docs/configuration/index.mdx b/docs/content/docs/configuration/index.mdx index f65546c7..26eab031 100644 --- a/docs/content/docs/configuration/index.mdx +++ b/docs/content/docs/configuration/index.mdx @@ -19,7 +19,7 @@ The `react-native-nitro-sqlite` build reads `nitroSQLite` in your app's `package } ``` -All values are booleans. Rebuild the native app on every platform after changing them. On iOS with the Nitro V1 prerelease, delete `~/Library/Caches/org.swift.swiftpm/manifests` before rebuilding so Swift Package Manager reads the new settings. On macOS and visionOS with Nitro SQLite 10.x, install Pods again before rebuilding. +All values are booleans. Rebuild the native app on every platform after changing them. On iOS with the 11.0.0 alpha, delete `~/Library/Caches/org.swift.swiftpm/manifests` before rebuilding so Swift Package Manager reads the new settings. On macOS and visionOS with Nitro SQLite 10.x, install Pods again before rebuilding. ## Thread safety diff --git a/docs/content/docs/configuration/macos.mdx b/docs/content/docs/configuration/macos.mdx index 6812bb95..01b0f9db 100644 --- a/docs/content/docs/configuration/macos.mdx +++ b/docs/content/docs/configuration/macos.mdx @@ -5,7 +5,7 @@ description: Installation, database storage, and Apple build options. Use Nitro SQLite 10.x and Nitro Modules 0.37.2 in a CocoaPods-based React Native macOS app. The 10.x SQLite pod declares macOS 10.15, and the app must also meet the minimums of React Native macOS and Xcode. React Native macOS 0.81 and 0.83 both require macOS 14. -The Nitro V1 prerelease requires React Native 0.88 or later. React Native macOS 0.83 lacks JSI APIs that Nitro V1 uses. +The 11.0.0 alpha requires React Native 0.88 or later. React Native macOS 0.83 lacks JSI APIs that Nitro V1 uses. Install the 10.x packages, then install Pods and rebuild: diff --git a/docs/content/docs/guides/migrate-from-quick-sqlite.mdx b/docs/content/docs/guides/migrate-from-quick-sqlite.mdx index b4537431..7a4bc5c8 100644 --- a/docs/content/docs/guides/migrate-from-quick-sqlite.mdx +++ b/docs/content/docs/guides/migrate-from-quick-sqlite.mdx @@ -11,7 +11,7 @@ This guide covers React Native apps. NitroUI apps use a different host package; ```sh npm uninstall react-native-quick-sqlite -npm install react-native-nitro-sqlite@nitro-v1 react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 +npm install react-native-nitro-sqlite@alpha react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 npx react-native spm ``` diff --git a/docs/releases/README.md b/docs/releases/README.md index e62dc544..04949c77 100644 --- a/docs/releases/README.md +++ b/docs/releases/README.md @@ -28,9 +28,9 @@ Version 9 releases use the npm `legacy-9` channel and never become GitHub's late ## Prerelease channels -A prerelease version publishes to an npm channel named after its prerelease identifiers, without the trailing number. For example, `11.0.0-nitro-v1.0` publishes to `nitro-v1` and installs with `react-native-nitro-sqlite@nitro-v1`. Prereleases never move `latest`, and their GitHub release is marked as a prerelease. +A prerelease version publishes to an npm channel named after its prerelease identifiers, without the trailing number. For example, `11.0.0-alpha.0` publishes to `alpha` and installs with `react-native-nitro-sqlite@alpha`. Prereleases never move `latest`, and their GitHub release is marked as a prerelease. -Start a channel by releasing its branch with an exact version, such as `11.0.0-nitro-v1.0`. Later releases from the same branch can use `prerelease`, which increments the trailing number to `11.0.0-nitro-v1.1`. Releasing `patch`, `minor`, or `major` from a prerelease finishes that version, so `11.0.0-nitro-v1.3` becomes `11.0.0` for `major`. +Start a channel by releasing its branch with an exact version, such as `11.0.0-alpha.0`. Later releases from the same branch can use `prerelease`, which increments the trailing number to `11.0.0-alpha.1`. Releasing `patch`, `minor`, or `major` from a prerelease finishes that version, so `11.0.0-alpha.3` becomes `11.0.0` for `major`. ## Credentials diff --git a/docs/releases/v11.0.0-alpha.0.md b/docs/releases/v11.0.0-alpha.0.md new file mode 100644 index 00000000..8c9dceaa --- /dev/null +++ b/docs/releases/v11.0.0-alpha.0.md @@ -0,0 +1,48 @@ +NitroSQLite 11.0.0-alpha.0 is the first alpha of 11.0.0. It runs on Nitro V1 and adds support for NitroUI apps. 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: + +```sh +npm install react-native-nitro-sqlite@alpha react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 +``` + +Install the companion packages you use from `alpha` too, such as `react-native-nitro-sqlite-vec@alpha`. 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](https://sqlite.margelo.com/docs/nitro-ui) to set it up. + +## Requirements + +- 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. + +## macOS and visionOS + +11.0.0 doesn't support macOS (react-native-macos) or visionOS yet, because they aren't compatible with Nitro V1. I'm working on adding them. Apps on those platforms should stay on NitroSQLite 10.x for now. + +## 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`. +3. On iOS, set the deployment target to 16.0 or later and switch your app to Swift Package Manager. Expo apps get this from prebuild. +4. If your code checks `error.name === 'NitroSQLiteError'`, check for `'SQLiteError'` or use `instanceof SQLiteError`. +5. Rebuild your app. + +[iOS setup](https://sqlite.margelo.com/docs/configuration/ios#set-up-swift-package-manager) · [Expo setup](https://sqlite.margelo.com/docs/configuration/expo) · [Nitro V1 migration guide](https://sqlite.margelo.com/docs/guides/migrate-to-nitro-v1) From 5ba5b40c26a1d4b9cbe86db58eaf93989c2ced4d Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Wed, 2 Dec 2026 04:48:34 +0100 Subject: [PATCH 2/3] docs: install NitroUI and 11.x companions from npm alpha The NitroUI stack documented installs from source checkouts and local archives. The 11.0.0 alpha publishes all twelve packages to npm, so every 11.x install now uses the `alpha` tag. Each alpha install saves an exact version, because npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. Co-Authored-By: Claude Opus 5.5 --- README.md | 12 ++++---- docs/content/docs/configuration/expo.mdx | 4 ++- .../docs/guides/migrate-from-quick-sqlite.mdx | 2 +- .../content/docs/guides/standalone-review.mdx | 2 +- docs/content/docs/index.mdx | 2 +- .../docs/integrations/orms/drizzle.mdx | 12 +++++++- docs/content/docs/integrations/orms/index.mdx | 29 ++++++++----------- .../content/docs/integrations/orms/kysely.mdx | 2 +- .../docs/integrations/orms/mikro-orm.mdx | 2 +- .../docs/integrations/vector-search.mdx | 16 ++++++++-- docs/content/docs/nitro-ui/index.mdx | 15 +++------- docs/content/docs/react-native/index.mdx | 13 +++------ docs/content/docs/supported-platforms.mdx | 2 +- docs/releases/v11.0.0-alpha.0.md | 22 ++++++++++---- examples/nitro-ui/README.md | 2 +- .../integrations/nitro-ui/drizzle/README.md | 11 ++++--- .../integrations/nitro-ui/kysely/README.md | 9 +++++- .../integrations/nitro-ui/mikro-orm/README.md | 8 ++++- .../integrations/nitro-ui/typeorm/README.md | 6 ++-- packages/integrations/nitro-ui/vec/README.md | 8 ++--- .../react-native/drizzle/README.md | 6 ++-- .../react-native/kysely/README.md | 9 +++++- .../react-native/mikro-orm/README.md | 8 ++++- .../react-native/typeorm/README.md | 8 ++--- .../integrations/react-native/vec/README.md | 8 ++--- packages/nitro-sqlite/README.md | 8 ++++- 26 files changed, 133 insertions(+), 93 deletions(-) diff --git a/README.md b/README.md index c9f93217..eed226fa 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Choose the package for your app's runtime: | Runtime | Package | Setup | | --- | --- | --- | | React Native | `react-native-nitro-sqlite` | [React Native guide](docs/content/docs/react-native/index.mdx) | -| NitroUI | `nitro-sqlite` | [NitroUI guide](docs/content/docs/nitro-ui/index.mdx). Pre-release source with local archive and checkout installation. | +| NitroUI | `nitro-sqlite` | [NitroUI guide](docs/content/docs/nitro-ui/index.mdx) | Both runtimes support [Drizzle ORM](docs/content/docs/integrations/orms/drizzle.mdx), [TypeORM](docs/content/docs/integrations/orms/typeorm.mdx), [MikroORM](docs/content/docs/integrations/orms/mikro-orm.mdx), [Kysely](docs/content/docs/integrations/orms/kysely.mdx), and [vector search](docs/content/docs/integrations/vector-search.mdx) through optional companion packages. @@ -27,22 +27,20 @@ Both runtimes support [Drizzle ORM](docs/content/docs/integrations/orms/drizzle. | Kysely | `react-native-nitro-sqlite-kysely` | `nitro-sqlite-kysely` | | Vector search | `react-native-nitro-sqlite-vec` | `nitro-sqlite-vec` | -These pre-release companion packages use the matching SQLite adapter for the same host. Install them from local archives after preparing the source checkout. See the [ORM setup guide](docs/content/docs/integrations/orms/index.mdx). The TypeORM export in each SQLite adapter remains available for compatibility and is deprecated in favor of its companion package. +Each companion uses the SQLite adapter for the same host. Install it from the `alpha` tag with an exact version, like the adapter. See the [ORM setup guide](docs/content/docs/integrations/orms/index.mdx). The TypeORM export in each SQLite adapter remains available for compatibility and is deprecated in favor of its companion package. Read [Supported platforms](docs/content/docs/supported-platforms.mdx) for platform status, runtime versions, and integration limits. The React Native documentation is also available at [sqlite.margelo.com](https://sqlite.margelo.com/docs). If you use a coding agent, give it the [NitroSQLite skill](https://github.com/margelo/react-native-skills/blob/main/skills/react-native-nitro-sqlite/SKILL.md). It links to focused guidance for connections, queries, transactions, concurrency, and migration. See the [AI agent guide](https://sqlite.margelo.com/docs/guides/ai-agents) for what to check in generated code. -Published React Native releases remain available, including 10.x and the `nitro-v1` prereleases. The instructions below install this source checkout from local archives. Its React Native package versions remain provisional. Use the documentation for your installed release when staying on an existing version. - ## React Native installation -The Nitro V1 prerelease requires React Native 0.88 or newer. iOS requires a deployment target of 16.0 or later, Swift Package Manager, and Xcode with Swift 6.4 or newer. +The 11.0.0 alpha installs from the `alpha` tag and requires React Native 0.88 or newer. iOS requires a deployment target of 16.0 or later, Swift Package Manager, and Xcode with Swift 6.4 or newer. Stable 10.x stays on the `latest` tag. -Prepare the source checkout and build the SQLite archive from `packages/react-native-nitro-sqlite` with its packing script. The packing step prints the archive filename with its recorded package version. Replace `VERSION` below with that version and install it in your app: +Save an exact version. npm otherwise saves `^11.0.0-alpha.0`, and that range also matches the older `11.0.0-nitro-v1.x` builds: ```sh -npm install /path/to/react-native-nitro-sqlite-VERSION.tgz react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 +npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 ``` For iOS, follow the [React Native SwiftPM setup](https://sqlite.margelo.com/docs/configuration/ios#set-up-swift-package-manager), including the steps for keeping other CocoaPods, or the [Expo prebuild setup](https://sqlite.margelo.com/docs/configuration/expo#generate-and-rebuild). diff --git a/docs/content/docs/configuration/expo.mdx b/docs/content/docs/configuration/expo.mdx index 1e1ebd4c..c5846811 100644 --- a/docs/content/docs/configuration/expo.mdx +++ b/docs/content/docs/configuration/expo.mdx @@ -42,9 +42,11 @@ Shared settings such as `threadSafe`, `performanceMode`, and `enableRTree` still Install the companion package and add its plugin: ```sh -npx expo install react-native-nitro-sqlite-vec@alpha +npx expo install react-native-nitro-sqlite-vec@alpha -- --save-exact ``` +Expo passes the arguments after `--` to your package manager, so the exact version is saved. With Yarn or Bun, use `-- --exact`. + ```json { "expo": { diff --git a/docs/content/docs/guides/migrate-from-quick-sqlite.mdx b/docs/content/docs/guides/migrate-from-quick-sqlite.mdx index 7a4bc5c8..fc865b5a 100644 --- a/docs/content/docs/guides/migrate-from-quick-sqlite.mdx +++ b/docs/content/docs/guides/migrate-from-quick-sqlite.mdx @@ -11,7 +11,7 @@ This guide covers React Native apps. NitroUI apps use a different host package; ```sh npm uninstall react-native-quick-sqlite -npm install react-native-nitro-sqlite@alpha react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 +npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 npx react-native spm ``` diff --git a/docs/content/docs/guides/standalone-review.mdx b/docs/content/docs/guides/standalone-review.mdx index 64f7e013..907ab81d 100644 --- a/docs/content/docs/guides/standalone-review.mdx +++ b/docs/content/docs/guides/standalone-review.mdx @@ -5,6 +5,6 @@ description: Find the NitroUI installation and first-query guides. Nitro SQLite runs on NitroUI through `nitro-sqlite`. The adapter uses the shared SQLite implementation and API without React Native. -Start with [Install on NitroUI](/docs/nitro-ui) for the source checkout and local archive paths. Then [run your first query](/docs/nitro-ui/first-query). +Start with [Install on NitroUI](/docs/nitro-ui) to install the adapter from npm or run the repository example. Then [run your first query](/docs/nitro-ui/first-query). The [supported platforms page](/docs/supported-platforms) lists the runtime versions and OS coverage. The [shared API reference](/api) describes the database operations. diff --git a/docs/content/docs/index.mdx b/docs/content/docs/index.mdx index a2c0560f..cc644a51 100644 --- a/docs/content/docs/index.mdx +++ b/docs/content/docs/index.mdx @@ -16,7 +16,7 @@ SQLite stores your data in a local file. Opening a connection creates the file w The packages use different Nitro versions and generated bindings. Choose the package for your app's runtime. See [supported platforms](/docs/supported-platforms) for OS coverage and version requirements. -The NitroUI adapter is available through the source checkout or a locally packed archive. Its installation guide covers both paths. +Both packages install from the `alpha` npm tag as 11.0.0 alpha releases. Stable 10.x stays on the `latest` tag and supports React Native only. ## Use the shared docs diff --git a/docs/content/docs/integrations/orms/drizzle.mdx b/docs/content/docs/integrations/orms/drizzle.mdx index 7adbe343..1b53dabe 100644 --- a/docs/content/docs/integrations/orms/drizzle.mdx +++ b/docs/content/docs/integrations/orms/drizzle.mdx @@ -14,7 +14,17 @@ Install `drizzle-orm` (0.45.4 or a later 0.x release) alongside the driver and S | [React Native](/docs/react-native) | `react-native-nitro-sqlite-drizzle` | `react-native-nitro-sqlite` | | [NitroUI](/docs/nitro-ui) | `nitro-sqlite-drizzle` | `nitro-sqlite` | -For this pre-release source, install the matching driver and SQLite archives from the checkout. The repository examples use the local packages. +Install both from the `alpha` tag with exact versions. In React Native: + +```sh +npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-sqlite-drizzle@alpha drizzle-orm@0.45.4 +``` + +In NitroUI: + +```sh +bun add --exact nitro-sqlite@alpha nitro-sqlite-drizzle@alpha drizzle-orm@0.45.4 +``` ## Open a database diff --git a/docs/content/docs/integrations/orms/index.mdx b/docs/content/docs/integrations/orms/index.mdx index 0885c6e7..d334d7f1 100644 --- a/docs/content/docs/integrations/orms/index.mdx +++ b/docs/content/docs/integrations/orms/index.mdx @@ -28,7 +28,7 @@ For the difference between entity mapping and a typed query builder, see [How OR ## Installation -Follow [Getting Started](/docs) to install Nitro SQLite and Nitro Modules. Add the packages for your library below before rebuilding the native app. +Follow [Getting Started](/docs) to install Nitro SQLite and Nitro Modules. Add the packages for your library below before rebuilding the native app. The companions install from the `alpha` tag. Save them with exact versions, as described in [React Native installation](/docs/react-native#1-install-the-packages). @@ -37,7 +37,7 @@ Follow [Getting Started](/docs) to install Nitro SQLite and Nitro Modules. Add t Install Drizzle and its Nitro SQLite driver. ```sh -npm install react-native-nitro-sqlite-drizzle drizzle-orm@0.45.4 +npm install --save-exact react-native-nitro-sqlite-drizzle@alpha drizzle-orm@0.45.4 ``` @@ -51,7 +51,7 @@ npm install typeorm@1.1.2 npm install --save-dev babel-plugin-module-resolver @babel/plugin-transform-class-static-block ``` -Nitro SQLite 10.4.0 includes the TypeORM driver in core. For releases that ship the standalone adapter, also run `npm install react-native-nitro-sqlite-typeorm` and [switch the driver import and Babel alias](/docs/integrations/orms/typeorm#install-the-separate-adapter). +The 11.0.0 alpha ships the driver as a separate companion. Also run `npm install --save-exact react-native-nitro-sqlite-typeorm@alpha` and [switch the driver import and Babel alias](/docs/integrations/orms/typeorm#install-the-separate-adapter). Nitro SQLite 10.4.0 includes the driver in core. @@ -60,7 +60,7 @@ Nitro SQLite 10.4.0 includes the TypeORM driver in core. For releases that ship Install the driver and its runtime dependencies. [Configure Metro, Babel, and Buffer](/docs/integrations/orms/mikro-orm#configure-metro-and-babel) before importing the ORM. ```sh -npm install react-native-nitro-sqlite-mikro-orm @mikro-orm/core@7.2.13 @mikro-orm/sql@7.2.13 kysely@0.29.9 @craftzdog/react-native-buffer@6.1.2 react-native-quick-base64@3.0.1 base64-js@1.5.1 +npm install --save-exact react-native-nitro-sqlite-mikro-orm@alpha @mikro-orm/core@7.2.13 @mikro-orm/sql@7.2.13 kysely@0.29.9 @craftzdog/react-native-buffer@6.1.2 react-native-quick-base64@3.0.1 base64-js@1.5.1 ``` @@ -70,31 +70,26 @@ npm install react-native-nitro-sqlite-mikro-orm @mikro-orm/core@7.2.13 @mikro-or Install Kysely and its Nitro SQLite dialect. ```sh -npm install react-native-nitro-sqlite-kysely 'kysely@^0.29.9' +npm install --save-exact react-native-nitro-sqlite-kysely@alpha +npm install 'kysely@^0.29.9' ``` -## Install from a source checkout +## Install on NitroUI -Use a source checkout with its workspace dependencies installed. The NitroUI companion packages are source previews. For this checkout, build local archives of the SQLite adapter and companions for your host. The archive name contains the version in each package manifest. - -From the package directory for your host and integration, build a local archive. For example: +NitroUI apps use the `nitro-sqlite-*` companions instead of the React Native companions, with the same ORM libraries as the installation tabs above. First [install the adapter](/docs/nitro-ui#add-the-adapter-to-an-existing-app), then add the companion from the `alpha` tag with an exact version. For example, for Kysely: ```sh -cd packages/integrations/nitro-ui/kysely -bun run pack +bun add --exact nitro-sqlite-kysely@alpha +bun add 'kysely@^0.29.9' ``` -For the staged NitroUI package version, this produces `nitro-sqlite-kysely-11.0.0.tgz`. Use the corresponding `packages/integrations/react-native/kysely` directory for React Native. The ORM companions have the same packing entry point. For React Native Vec, run `bun pm pack` in `packages/integrations/react-native/vec` instead. - -Install the archive into your app alongside the SQLite adapter for that host. For NitroUI, follow [adapter installation](/docs/nitro-ui#add-the-adapter-to-an-existing-app). For React Native, follow [React Native setup](/docs/react-native) and use the matching SQLite archive from this checkout. - -A companion archive includes its shared implementation. Your app does not need `shared/orm`, `nitro-sqlite-core`, or `nitro-sqlite-drizzle-core` installed from a registry. If you install a package through a local directory instead of an archive, prepare it from the source checkout first. +Each companion package includes its shared implementation. Your app does not need `shared/orm`, `nitro-sqlite-core`, or `nitro-sqlite-drizzle-core`. -NitroUI apps also need the ORM libraries in the installation tabs above, using their `nitro-sqlite-*` companions instead of the React Native companions. MikroORM requires both its driver and Kysely companion archives. Its NitroUI [browser bundle and Buffer setup](/docs/integrations/orms/mikro-orm#configure-nitroui) uses JavaScript dependencies. React Native keeps its [native Buffer setup](/docs/integrations/orms/mikro-orm#react-native-buffer-options) or can use the shared JavaScript adapter. +MikroORM requires both its driver and Kysely companions. Its NitroUI [browser bundle and Buffer setup](/docs/integrations/orms/mikro-orm#configure-nitroui) uses JavaScript dependencies. React Native keeps its [native Buffer setup](/docs/integrations/orms/mikro-orm#react-native-buffer-options) or can use the shared JavaScript adapter. ## Usage diff --git a/docs/content/docs/integrations/orms/kysely.mdx b/docs/content/docs/integrations/orms/kysely.mdx index 7eeb5d1a..1770f745 100644 --- a/docs/content/docs/integrations/orms/kysely.mdx +++ b/docs/content/docs/integrations/orms/kysely.mdx @@ -7,7 +7,7 @@ SQLite stores tables and indexes in a file on the device. [Kysely](https://kysel ## Install -The [companion installation guide](/docs/integrations/orms#kysely) lists the packages for each host. These pre-release packages use Nitro SQLite 11 and Kysely 0.29.9. Both React Native and NitroUI expose the same dialect API. +The [companion installation guide](/docs/integrations/orms#kysely) lists the packages for each host. These 11.0.0 alpha packages install from the `alpha` tag and use Kysely 0.29.9. Both React Native and NitroUI expose the same dialect API. ## Create a table and query it diff --git a/docs/content/docs/integrations/orms/mikro-orm.mdx b/docs/content/docs/integrations/orms/mikro-orm.mdx index ca40963d..34f946af 100644 --- a/docs/content/docs/integrations/orms/mikro-orm.mdx +++ b/docs/content/docs/integrations/orms/mikro-orm.mdx @@ -21,7 +21,7 @@ MikroORM cursors encode with `base64url`, so the app's global `Buffer` must supp The NitroUI example prepares MikroORM as a browser bundle before the SDK bundles the app. Follow the same preparation for another NitroUI app. Install `esbuild@0.28.1` as a development dependency, plus `buffer@6.0.3` and `reflect-metadata` as app dependencies. -1. Copy `prepare-mikro-orm.mjs` and `mikro-environment.mjs` from the source checkout into your app's `scripts` directory. Run the preparation script before starting or bundling the app: +1. Copy `prepare-mikro-orm.mjs` and `mikro-environment.mjs` from the repository into your app's `scripts` directory. Run the preparation script before starting or bundling the app: ```sh node scripts/prepare-mikro-orm.mjs diff --git a/docs/content/docs/integrations/vector-search.mdx b/docs/content/docs/integrations/vector-search.mdx index 729e792c..9e083519 100644 --- a/docs/content/docs/integrations/vector-search.mdx +++ b/docs/content/docs/integrations/vector-search.mdx @@ -11,13 +11,25 @@ Install the companion for your runtime. Both expose the same functions for creat ## Enable vector search in React Native -Install `react-native-nitro-sqlite-vec` alongside `react-native-nitro-sqlite`. Enable it for each platform you ship using the [iOS](/docs/configuration/ios#vector-search) or [Android](/docs/configuration/android#vector-search) configuration page, then rebuild the native app. Check availability with `isVecAvailable(db)` before running vector queries. A JavaScript update alone cannot enable the extension. +Install `react-native-nitro-sqlite-vec` alongside `react-native-nitro-sqlite`: + +```sh +npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-sqlite-vec@alpha +``` + +Enable it for each platform you ship using the [iOS](/docs/configuration/ios#vector-search) or [Android](/docs/configuration/android#vector-search) configuration page, then rebuild the native app. Check availability with `isVecAvailable(db)` before running vector queries. A JavaScript update alone cannot enable the extension. Expo projects can enable Vec during prebuild with the [Vec config plugin](/docs/configuration/expo#enable-vector-search). For macOS, use the [10.x setup](/docs/configuration/macos#apple-build-options). ## NitroUI -Install the local `nitro-sqlite-vec` archive alongside the matching `nitro-sqlite` archive. The repository example uses a local file dependency for each package. Prepare and rebuild the native app after adding Vec, just as when [installing the SQLite adapter](/docs/nitro-ui). Vec links to the SQLite engine in the adapter. +Install `nitro-sqlite-vec` alongside `nitro-sqlite`. Both must be direct app dependencies: + +```sh +bun add --exact nitro-sqlite@alpha nitro-sqlite-vec@alpha +``` + +Prepare and rebuild the native app after adding Vec, just as when [installing the SQLite adapter](/docs/nitro-ui). Vec links to the SQLite engine in the adapter. Call `registerVectorExtensions()` once at startup, before opening your first connection. Registration applies to connections opened afterward and lasts for the rest of the process. diff --git a/docs/content/docs/nitro-ui/index.mdx b/docs/content/docs/nitro-ui/index.mdx index 8068cc05..6a6b775b 100644 --- a/docs/content/docs/nitro-ui/index.mdx +++ b/docs/content/docs/nitro-ui/index.mdx @@ -5,7 +5,7 @@ description: Use the SQLite adapter in a NitroUI app on iOS and Android. `nitro-sqlite` runs Nitro SQLite in NitroUI without React Native. The adapter opens SQLite files in the app's storage directory and exposes the [shared SQLite API](/api). -This 11.0.0 pre-release source is not an npm release. Install the adapter from a source checkout or a locally packed archive using one of the paths below. +The adapter is part of the 11.0.0 alpha and installs from the `alpha` npm tag. You can add it to an existing app or run the repository example. ## Requirements @@ -44,20 +44,13 @@ The app opens the **NitroUI SQLite Example** home screen. Choose **SQL Console** ## Add the adapter to an existing app -Use an existing NitroUI app with the compatible versions above. Build a local adapter archive from the source checkout. First install the repository's workspace dependencies, then run these commands from the repository root: +Use an existing NitroUI app with the compatible versions above. The package includes the TypeScript API, native implementation, bundled SQLite, and generated bindings. From your NitroUI app directory, install it from the `alpha` tag: ```sh -cd packages/nitro-sqlite -bun run pack +bun add --exact nitro-sqlite@alpha ``` -The package's preparation step includes the TypeScript API, native implementation, bundled SQLite, and generated bindings in `nitro-sqlite-11.0.0.tgz`. It does not require the shared workspace package at runtime. - -From your NitroUI app directory, install that archive. Replace the path with the location of your checkout: - -```sh -bun add /path/to/checkout/packages/nitro-sqlite/nitro-sqlite-11.0.0.tgz -``` +Save exact versions for every 11.0.0 alpha package, including companions. Without an exact version, the package manager saves `^11.0.0-alpha.0`. That range also matches the older `11.0.0-nitro-v1.x` builds, because npm sorts prerelease names alphabetically. With npm or pnpm, pass `--save-exact`; with Yarn, pass `--exact`. Prepare and rebuild the native app with the compatible NitroUI CLI: diff --git a/docs/content/docs/react-native/index.mdx b/docs/content/docs/react-native/index.mdx index 7783a71d..cc8687f9 100644 --- a/docs/content/docs/react-native/index.mdx +++ b/docs/content/docs/react-native/index.mdx @@ -5,7 +5,7 @@ description: Install Nitro SQLite in a React Native or Expo native app on iOS an This guide adds `react-native-nitro-sqlite` to a React Native app. The native module opens SQLite files inside the app's storage directory. After installation, [run your first query](/docs/react-native/first-query). -Published React Native releases remain available, including 10.x and the `nitro-v1` prereleases. The instructions below install this source checkout from local archives. Its React Native package versions remain provisional. Use the documentation for your installed release when staying on an existing version. +These instructions install the 11.0.0 alpha from the `alpha` npm tag. Stable 10.x stays on the `latest` tag. If you stay on 10.x, use the documentation for that release. ## Requirements @@ -15,18 +15,13 @@ The instructions below cover iOS and Android. For the legacy macOS example and t ## 1. Install the packages -To try the Nitro V1 source in this checkout, first build the SQLite archive from a source checkout with workspace dependencies installed: +Install the package from the `alpha` tag with the Nitro Modules version used by its generated bindings: ```sh -cd packages/react-native-nitro-sqlite -bun run pack +npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 ``` -The packing step prints the archive filename with its recorded package version. Replace `VERSION` below with that version. Install it in your app with the Nitro Modules version used by its generated bindings: - -```sh -npm install /path/to/react-native-nitro-sqlite-VERSION.tgz react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 -``` +Save exact versions for every 11.0.0 alpha package, including companions. Without `--save-exact`, npm saves `^11.0.0-alpha.0`. That range also matches the older `11.0.0-nitro-v1.x` builds, because npm sorts prerelease names alphabetically. With Yarn or Bun, pass `--exact`; with pnpm, pass `--save-exact`. Existing apps that use an earlier Nitro SQLite release can follow the [Nitro V1 migration guide](/docs/guides/migrate-to-nitro-v1). diff --git a/docs/content/docs/supported-platforms.mdx b/docs/content/docs/supported-platforms.mdx index 427c8d7e..aa18b76e 100644 --- a/docs/content/docs/supported-platforms.mdx +++ b/docs/content/docs/supported-platforms.mdx @@ -43,4 +43,4 @@ Both adapters expose `open()`, managed connections, sync and async queries, batc Each companion works with the SQLite adapter for the same runtime. React Native uses [native build settings](/docs/configuration) to enable vector search. NitroUI apps install the Vec companion and register the extension before opening a database. -The [ORM setup guide](/docs/integrations/orms) explains how to build and install these local companion archives. No public companion release is assumed. +The companions install from the `alpha` npm tag with the 11.0.0 alpha adapters. The [ORM setup guide](/docs/integrations/orms) lists the install commands for each host. diff --git a/docs/releases/v11.0.0-alpha.0.md b/docs/releases/v11.0.0-alpha.0.md index 8c9dceaa..8bbc6e7b 100644 --- a/docs/releases/v11.0.0-alpha.0.md +++ b/docs/releases/v11.0.0-alpha.0.md @@ -1,12 +1,20 @@ NitroSQLite 11.0.0-alpha.0 is the first alpha of 11.0.0. It runs on Nitro V1 and adds support for NitroUI apps. 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: +Install it from the `alpha` tag. In React Native apps: ```sh -npm install react-native-nitro-sqlite@alpha react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 +npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-modules@1.0.0-alpha.nightly.138.g43e09c161101 ``` -Install the companion packages you use from `alpha` too, such as `react-native-nitro-sqlite-vec@alpha`. The stable 10.x line stays on the `latest` tag, so installing without a tag still gives you 10.x. +In NitroUI apps: + +```sh +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.0`, 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 @@ -22,14 +30,18 @@ See [Install on NitroUI](https://sqlite.margelo.com/docs/nitro-ui) 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 yet, because they aren't compatible with Nitro V1. I'm working on adding them. Apps on those platforms should stay on NitroSQLite 10.x for now. +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 @@ -40,7 +52,7 @@ The Android bindings moved to the `com.margelo.nitro.nitrosqlite` package. Autol ## 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`. +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 get this from prebuild. 4. If your code checks `error.name === 'NitroSQLiteError'`, check for `'SQLiteError'` or use `instanceof SQLiteError`. 5. Rebuild your app. diff --git a/examples/nitro-ui/README.md b/examples/nitro-ui/README.md index fb3a200a..fd64c10b 100644 --- a/examples/nitro-ui/README.md +++ b/examples/nitro-ui/README.md @@ -1,6 +1,6 @@ # NitroUI SQLite Example -This app runs `nitro-sqlite` on iOS and Android. It uses the unpublished 11.0.0 adapter and companions from this checkout with NitroUI SDK 0.2.0, React 19.3.0, and Nitro Core `1.0.0-alpha.nightly.137.gd4793c40b8b8`. The React Native example lives in `examples/react-native`. +This app runs `nitro-sqlite` on iOS and Android. It uses the 11.0.0 adapter and companions from this checkout instead of npm with NitroUI SDK 0.2.0, React 19.3.0, and Nitro Core `1.0.0-alpha.nightly.137.gd4793c40b8b8`. The React Native example lives in `examples/react-native`. ## Run the app diff --git a/packages/integrations/nitro-ui/drizzle/README.md b/packages/integrations/nitro-ui/drizzle/README.md index b6df011d..b63e880e 100644 --- a/packages/integrations/nitro-ui/drizzle/README.md +++ b/packages/integrations/nitro-ui/drizzle/README.md @@ -4,10 +4,13 @@ ## Installation -This 11.0.0 pre-release package is not published to npm. Build and install the matching -SQLite and Drizzle archives using the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx). -Install `drizzle-orm@0.45.4` and the app's React version alongside them. Each archive -includes the driver source. Use `nitro-sqlite` with `nitro-sqlite-drizzle` in NitroUI apps. +Install the 11.0.0 alpha from the `alpha` tag with `nitro-sqlite` and `drizzle-orm`. The app's React version must also be installed. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. + +```sh +bun add --exact nitro-sqlite@alpha nitro-sqlite-drizzle@alpha drizzle-orm@0.45.4 +``` + +See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for the other integrations. ## Usage diff --git a/packages/integrations/nitro-ui/kysely/README.md b/packages/integrations/nitro-ui/kysely/README.md index 1f208900..5ac87857 100644 --- a/packages/integrations/nitro-ui/kysely/README.md +++ b/packages/integrations/nitro-ui/kysely/README.md @@ -2,7 +2,14 @@ Use Kysely's typed SQL builder with a local Nitro SQLite database on NitroUI. Install `nitro-sqlite-kysely`, `kysely@^0.29.9`, and the [Nitro SQLite native dependencies](https://sqlite.margelo.com/docs). -For this unpublished 11.0.0 pre-release, build and install local archives for the adapter and companion. See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for packing steps and peer dependencies. +Install the 11.0.0 alpha from the `alpha` tag. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. + +```sh +bun add --exact nitro-sqlite@alpha nitro-sqlite-kysely@alpha +bun add 'kysely@^0.29.9' +``` + +See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for peer dependencies. ```ts import { Kysely } from 'kysely' diff --git a/packages/integrations/nitro-ui/mikro-orm/README.md b/packages/integrations/nitro-ui/mikro-orm/README.md index 9314847a..3d8b4f92 100644 --- a/packages/integrations/nitro-ui/mikro-orm/README.md +++ b/packages/integrations/nitro-ui/mikro-orm/README.md @@ -2,7 +2,13 @@ `NitroSQLiteDriver` runs MikroORM 7.2 queries against a local Nitro SQLite database in NitroUI. -For this unpublished 11.0.0 pre-release, build and install local archives for the adapter and companion. See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for packing steps and peer dependencies. +Install the 11.0.0 alpha from the `alpha` tag with its Kysely companion. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. + +```sh +bun add --exact nitro-sqlite@alpha nitro-sqlite-mikro-orm@alpha nitro-sqlite-kysely@alpha +``` + +See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for peer dependencies. Prepare MikroORM and the driver in one browser bundle, then import both from that bundle. Follow the [MikroORM guide](../../../../docs/content/docs/integrations/orms/mikro-orm.mdx#configure-nitroui) for the preparation script, environment shim, and import paths. Use explicit entities and a `dbName`. Filesystem entity discovery is unsupported on a device. diff --git a/packages/integrations/nitro-ui/typeorm/README.md b/packages/integrations/nitro-ui/typeorm/README.md index 8d7ce182..984c3e34 100644 --- a/packages/integrations/nitro-ui/typeorm/README.md +++ b/packages/integrations/nitro-ui/typeorm/README.md @@ -2,12 +2,10 @@ TypeORM maps entities to SQLite tables. This package connects TypeORM's `react-native` DataSource to Nitro SQLite's callback adapter on NitroUI. -For this unpublished 11.0.0 pre-release, build and install local archives for the adapter and companion. See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for packing steps and peer dependencies. - -Install the adapter and its peers in your NitroUI app: +Install the 11.0.0 alpha and its peers in your NitroUI app from the `alpha` tag. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. ```sh -npm install /path/to/nitro-sqlite-typeorm-11.0.0.tgz /path/to/nitro-sqlite-11.0.0.tgz typeorm@1.1.2 +npm install --save-exact nitro-sqlite-typeorm@alpha nitro-sqlite@alpha typeorm@1.1.2 ``` The adapter requires Nitro SQLite 11.0.0 or a compatible prerelease and TypeORM 1.1.2 or a compatible 1.x version. Configure TypeORM's browser build and module resolution as described in the [TypeORM integration guide](https://sqlite.margelo.com/docs/integrations/orms/typeorm). diff --git a/packages/integrations/nitro-ui/vec/README.md b/packages/integrations/nitro-ui/vec/README.md index a82d6331..b483cacd 100644 --- a/packages/integrations/nitro-ui/vec/README.md +++ b/packages/integrations/nitro-ui/vec/README.md @@ -2,17 +2,15 @@ Opt-in [sqlite-vec](https://github.com/asg017/sqlite-vec) vector search for `nitro-sqlite` on NitroUI iOS and Android. The extension links to the adapter's single SQLite engine. It does not load native extensions at runtime or bundle another SQLite engine. -For this unpublished 11.0.0 pre-release, build and install local archives for the adapter and companion. See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for packing steps and peer dependencies. - ## Installation -Install the local archives for `nitro-sqlite` and `nitro-sqlite-vec` as direct app dependencies, then prepare and rebuild the native app with the NitroUI CLI. Both packages must be direct dependencies because the pinned CLI discovers app modules from direct dependencies. +Install `nitro-sqlite` and `nitro-sqlite-vec` from the `alpha` tag as direct app dependencies, then prepare and rebuild the native app with the NitroUI CLI. Both packages must be direct dependencies because the pinned CLI discovers app modules from direct dependencies. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. ```sh -bun add /path/to/nitro-sqlite-11.0.0.tgz /path/to/nitro-sqlite-vec-11.0.0.tgz +bun add --exact nitro-sqlite@alpha nitro-sqlite-vec@alpha ``` -This pre-release package targets NitroUI SDK 0.2.0 and its matching Nitro Core runtime. It is separate from `react-native-nitro-sqlite-vec`, which remains the React Native companion. +This 11.0.0 alpha package targets NitroUI SDK 0.2.0 and its matching Nitro Core runtime. It is separate from `react-native-nitro-sqlite-vec`, which remains the React Native companion. ## Register before opening connections diff --git a/packages/integrations/react-native/drizzle/README.md b/packages/integrations/react-native/drizzle/README.md index 5270ea85..d5f9a47f 100644 --- a/packages/integrations/react-native/drizzle/README.md +++ b/packages/integrations/react-native/drizzle/README.md @@ -2,14 +2,12 @@ [Drizzle ORM](https://orm.drizzle.team) driver for [`react-native-nitro-sqlite`](https://github.com/margelo/nitro-sqlite). -To try the source in this checkout, build and install local archives for the SQLite adapter and this companion. Use each archive name printed by the packing step. Its version comes from the package manifest and may differ from the latest published release. See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for packing steps and peer dependencies. - ## Installation -Replace `VERSION` with the version printed when packing each package. +Install the 11.0.0 alpha from the `alpha` tag. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for peer dependencies. ```bash -npm install /path/to/react-native-nitro-sqlite-VERSION.tgz /path/to/react-native-nitro-sqlite-drizzle-VERSION.tgz drizzle-orm@0.45.4 +npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-sqlite-drizzle@alpha drizzle-orm@0.45.4 ``` ## Usage diff --git a/packages/integrations/react-native/kysely/README.md b/packages/integrations/react-native/kysely/README.md index 8b3fb511..38d34089 100644 --- a/packages/integrations/react-native/kysely/README.md +++ b/packages/integrations/react-native/kysely/README.md @@ -2,7 +2,14 @@ Use Kysely's typed SQL builder with a local Nitro SQLite database on React Native. Install `react-native-nitro-sqlite-kysely`, `kysely@^0.29.9`, and the [Nitro SQLite native dependencies](https://sqlite.margelo.com/docs). -To try the source in this checkout, build and install local archives for the SQLite adapter and this companion. Use each archive name printed by the packing step. Its version comes from the package manifest and may differ from the latest published release. See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for packing steps and peer dependencies. +Install the 11.0.0 alpha from the `alpha` tag. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. + +```sh +npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-sqlite-kysely@alpha +npm install 'kysely@^0.29.9' +``` + +See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for peer dependencies. ```ts import { Kysely } from 'kysely' diff --git a/packages/integrations/react-native/mikro-orm/README.md b/packages/integrations/react-native/mikro-orm/README.md index c4b993a6..d441c8d8 100644 --- a/packages/integrations/react-native/mikro-orm/README.md +++ b/packages/integrations/react-native/mikro-orm/README.md @@ -2,7 +2,13 @@ `NitroSQLiteDriver` runs MikroORM 7.2 queries against a local Nitro SQLite database in React Native. -To try the source in this checkout, build and install local archives for the SQLite adapter and this companion. Use each archive name printed by the packing step. Its version comes from the package manifest and may differ from the latest published release. See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for packing steps and peer dependencies. +Install the 11.0.0 alpha from the `alpha` tag. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. + +```sh +npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-sqlite-mikro-orm@alpha +``` + +See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for its runtime dependencies. See the [MikroORM setup guide](https://sqlite.margelo.com/docs/integrations/orms/mikro-orm) for Metro setup, entity discovery, and transactions. diff --git a/packages/integrations/react-native/typeorm/README.md b/packages/integrations/react-native/typeorm/README.md index 0ac239e4..ff053df1 100644 --- a/packages/integrations/react-native/typeorm/README.md +++ b/packages/integrations/react-native/typeorm/README.md @@ -2,14 +2,10 @@ TypeORM maps entities to SQLite tables. This package connects TypeORM's `react-native` DataSource to Nitro SQLite's callback adapter on React Native. -To try the source in this checkout, build and install local archives for the SQLite adapter and this companion. Use each archive name printed by the packing step. Its version comes from the package manifest and may differ from the latest published release. See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for packing steps and peer dependencies. - -Install the adapter and its peers in your React Native app: - -Replace `VERSION` with the version printed when packing each package. +Install the 11.0.0 alpha and its peers in your React Native app from the `alpha` tag. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. ```sh -npm install /path/to/react-native-nitro-sqlite-typeorm-VERSION.tgz /path/to/react-native-nitro-sqlite-VERSION.tgz typeorm@1.1.2 +npm install --save-exact react-native-nitro-sqlite-typeorm@alpha react-native-nitro-sqlite@alpha typeorm@1.1.2 ``` The adapter requires Nitro SQLite 11.0.0 or later and TypeORM 1.1.2 or a compatible 1.x version. Configure TypeORM's browser build and module resolution as described in the [TypeORM integration guide](https://sqlite.margelo.com/docs/integrations/orms/typeorm). diff --git a/packages/integrations/react-native/vec/README.md b/packages/integrations/react-native/vec/README.md index 923aab37..807606a2 100644 --- a/packages/integrations/react-native/vec/README.md +++ b/packages/integrations/react-native/vec/README.md @@ -2,21 +2,19 @@ Opt-in [sqlite-vec](https://github.com/asg017/sqlite-vec) support for [`react-native-nitro-sqlite`](https://github.com/margelo/nitro-sqlite). sqlite-vec is statically linked into the core package's SQLite build, so it does not load an extension at runtime. -To try the source in this checkout, build and install local archives for the SQLite adapter and this companion. Use each archive name printed by the packing step. Its version comes from the package manifest and may differ from the latest published release. See the [companion installation guide](../../../../docs/content/docs/integrations/orms/index.mdx) for packing steps and peer dependencies. - ## Installation -Install both this package and `react-native-nitro-sqlite`, then enable it in the native build. +Install both this package and `react-native-nitro-sqlite` from the `alpha` tag, then enable it in the native build. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. ```bash -npm install react-native-nitro-sqlite react-native-nitro-sqlite-vec +npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-sqlite-vec@alpha ``` - **iOS:** refresh the Swift packages from your app directory: ```bash npx react-native spm ``` -- **macOS:** run `NITRO_SQLITE_VEC=1 pod install` from `macos/`. +- **macOS:** the 11.0.0 alpha doesn't support macOS yet. Use `react-native-nitro-sqlite-vec@10` and run `NITRO_SQLITE_VEC=1 pod install` from `macos/`. - **Android:** add this to `android/gradle.properties` and rebuild: ```properties nitroSqliteVec=true diff --git a/packages/nitro-sqlite/README.md b/packages/nitro-sqlite/README.md index 07ef1106..593dfea4 100644 --- a/packages/nitro-sqlite/README.md +++ b/packages/nitro-sqlite/README.md @@ -6,7 +6,13 @@ SQLite stores a database in a file. Closing a connection releases the native han ## Installation -Install this pre-release adapter from a source checkout or local archive. The [NitroUI installation guide](../../docs/content/docs/nitro-ui/index.mdx) covers packaging the adapter, adding it to your app, and rebuilding for iOS or Android. The [example app](../../examples/nitro-ui/README.md) uses the adapter directly from the checkout. +Install the 11.0.0 alpha from the `alpha` tag. Save exact versions: npm otherwise saves `^11.0.0-alpha.0`, which also matches the older `11.0.0-nitro-v1.x` builds. + +```sh +bun add --exact nitro-sqlite@alpha +``` + +The [NitroUI installation guide](../../docs/content/docs/nitro-ui/index.mdx) covers adding the adapter to your app and rebuilding for iOS or Android. The [example app](../../examples/nitro-ui/README.md) uses the adapter directly from the checkout. The adapter includes SQLite, its native bindings, and the TypeScript API. Install only the adapter for your host. See [Supported platforms](../../docs/content/docs/supported-platforms.mdx) for React Native installation and usage. From 4d10513244776cc17f4161875edec3c6e2412d29 Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Wed, 2 Dec 2026 03:57:45 +0000 Subject: [PATCH 3/3] docs(vec): keep macOS apps on the 10.x core and vec packages Installing only the vec package at @10 left the 11.0.0 alpha core installed on macOS, which it doesn't support. Co-Authored-By: Claude Opus 5.5 --- packages/integrations/react-native/vec/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integrations/react-native/vec/README.md b/packages/integrations/react-native/vec/README.md index 807606a2..8b1055d0 100644 --- a/packages/integrations/react-native/vec/README.md +++ b/packages/integrations/react-native/vec/README.md @@ -14,7 +14,7 @@ npm install --save-exact react-native-nitro-sqlite@alpha react-native-nitro-sqli ```bash npx react-native spm ``` -- **macOS:** the 11.0.0 alpha doesn't support macOS yet. Use `react-native-nitro-sqlite-vec@10` and run `NITRO_SQLITE_VEC=1 pod install` from `macos/`. +- **macOS:** the 11.0.0 alpha doesn't support macOS yet, so macOS apps stay on 10.x. Install `react-native-nitro-sqlite@10 react-native-nitro-sqlite-vec@10 react-native-nitro-modules@0.37.2` instead, then run `NITRO_SQLITE_VEC=1 pod install` from `macos/`. See the [macOS guide](https://sqlite.margelo.com/docs/configuration/macos). - **Android:** add this to `android/gradle.properties` and rebuild: ```properties nitroSqliteVec=true