Skip to content

feat: Bump op-sqlite peer dependency to 13.x.x || 14.x.x for @powersync/op-sqlite #618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/rotten-pugs-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@powersync/op-sqlite': minor
---

Updated op-sqlite upstream peer dependency from 11.x.x to support ^13.x.x and ^14.x.x,

Noteworthy changes from version 11 to version 14 include:

1. SQLite updated to 3.49.1
2. SQLCipher updated to 4.8.0
3. Monorepo config resolution, you may need to move your `op-sqlite` config from your application's `package.json` to the monorepo root `package.json` depending on where your package manager tool hoists modules (see [1](https://op-engineering.github.io/op-sqlite/docs/installation) and [2](https://github.com/OP-Engineering/op-sqlite/issues/264)).
102 changes: 51 additions & 51 deletions demos/react-native-barebones-opsqlite/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PODS:
- hermes-engine (0.77.0):
- hermes-engine/Pre-built (= 0.77.0)
- hermes-engine/Pre-built (0.77.0)
- op-sqlite (11.4.8):
- op-sqlite (14.0.2):
- DoubleConversion
- glog
- hermes-engine
Expand All @@ -31,7 +31,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- powersync-op-sqlite (0.5.3):
- powersync-op-sqlite (0.6.1):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1774,70 +1774,70 @@ SPEC CHECKSUMS:
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
glog: eb93e2f488219332457c3c4eafd2738ddc7e80b8
hermes-engine: 1f783c3d53940aed0d2c84586f0b7a85ab7827ef
op-sqlite: 53273a28dcdcfcf07e0ffe76880c78b89356235f
powersync-op-sqlite: 92861f75136ef563fd93de8609bcedaffebe6c31
op-sqlite: 27db77bc067129a35dccf00dad447e683318825d
powersync-op-sqlite: 21cb1b750d310d4d270fd633bdf982554039d6d4
powersync-sqlite-core: ef06642c8110680fcddce8a8c0dd2696daaf672d
RCT-Folly: e78785aa9ba2ed998ea4151e314036f6c49e6d82
RCT-Folly: 36fe2295e44b10d831836cc0d1daec5f8abcf809
RCTDeprecation: f5c19ebdb8804b53ed029123eb69914356192fc8
RCTRequired: 6ae6cebe470486e0e0ce89c1c0eabb998e7c51f4
RCTTypeSafety: 50d6ec72a3d13cf77e041ff43a0617050fb98e3f
React: e46fdbd82d2de942970c106677056f3bdd438d82
React-callinvoker: b027ad895934b5f27ce166d095ed0d272d7df619
React-Core: 92733c8280b1642afed7ebfb3c523feaec946ece
React-CoreModules: e2dfd87b6fdb9d969b16871655885a4d89a2a9f4
React-cxxreact: d1a70e78543bb5b159fdaf6c52cadd33c1ae3244
React-Core: 36b7f20f655d47a35046e2b02c9aa5a8f1bcb61e
React-CoreModules: 7fac6030d37165c251a7bd4bde3333212544da3c
React-cxxreact: 0ead442ecaa248e7f71719e286510676495ae26d
React-debug: 78d7544d2750737ac3acc88cca2f457d081ec43d
React-defaultsnativemodule: b24e61fe2d5bb84501898683f9d13ff7fc02a9df
React-domnativemodule: 210ca3670f16ae92fbcff8da204750af8a7295af
React-Fabric: 4b3d03ea38646dcc80888253c2befca80526abed
React-FabricComponents: 38fcb6f5c08f8de9e693f2644d2da54ae4fbf6c8
React-FabricImage: 1d37769002c13dfffa9f53557a173d56c9ade5e3
React-defaultsnativemodule: 833b618f562a7798e7a814ce1ddc001464d7a3d0
React-domnativemodule: c1ca50f25913f73d5e95d55ff5352e7f1d7ebcc8
React-Fabric: 131631b99737169826d16290d5b90c53a150fc15
React-FabricComponents: 1f6ce42418da316663f53b534bdebd23ec4be41f
React-FabricImage: b6ba029f882f1676cb1b59688fa39e1ef0814381
React-featureflags: 92dd7d0169ab0bf8ad404a5fe757c1ca7ccd74e8
React-featureflagsnativemodule: 8a6373d7b4ef3c08d82b60376f75bd189bfc8cb2
React-graphics: 2b316fcf5b6c29ded7d53ae0007d1d129dc89510
React-hermes: bf50c8272cb562300a54a621aa69dc12a0b4fcf2
React-idlecallbacksnativemodule: 47df5b6649ca5e0046aa3e43e680452007b16871
React-ImageManager: 83b8dc67e97cd5fe10cb715bd878aded16adb40f
React-jserrorhandler: ac08c5673dea69b08e11faf074fd602fbf9492cc
React-jsi: 19e77567e235d06b7e8f425d2a6c1e948ab286e9
React-jsiexecutor: fe6ad8b9a2bf97e435fc1c969c80ed7f447ed68e
React-jsinspector: f321d958a5534b65b56f7806c674e159c28f7d69
React-jsitracing: d358876acde46009f391228b932a5efe13c8895b
React-logger: 02e5802824aa9b15cb7df42e10a91abead83cd8d
React-Mapbuffer: 99bd566147aaa78e872568be53ebca8a4449ddae
React-microtasksnativemodule: 51e7813abf875408a0f367e473a65bbab6aa8481
React-featureflagsnativemodule: 69bc086433eff3077b90f4ea17ab2083ad281868
React-graphics: f09d013df7aef5551fdce4c99f2fe704c6c5b35a
React-hermes: 13e1c1c9222503bcd7ad450370c5a26dc9b46ebe
React-idlecallbacksnativemodule: f349708531f44d3db8ac79129d8e2b4d8cc3d1ff
React-ImageManager: e20f7c0291e5c9298b643c88b40db62c46a30ae4
React-jserrorhandler: 79aa6ef93470ab9e8f4c6c6258dc662880b0bfb4
React-jsi: 931610846e52e5d157f4bc3f71a14f9a53573abd
React-jsiexecutor: 3f5fb21d47c5c72c13a1710b288d78c8209a38f9
React-jsinspector: d2653e42aae27f01f71f10ab87866cf092288e30
React-jsitracing: fe93bab4193ec5528bcbdaf2f1b62475652490ad
React-logger: 9a0c4e1e41cd640ac49d69aacadab783f7e0096b
React-Mapbuffer: 6993c785c22a170c02489bc78ed207814cbd700f
React-microtasksnativemodule: 19230cd0933df6f6dc1336c9a9edc382d62638ae
React-nativeconfig: cd0fbb40987a9658c24dab5812c14e5522a64929
React-NativeModulesApple: 4a9c304aa4fb086af32e8758ba892386d895b4d3
React-perflogger: 721172bda31a65ce7b7a0c3bf3de96f12ef6f45d
React-performancetimeline: 46dbe9fd618ff882f59600dcd9fa923a9713cc3b
React-NativeModulesApple: 45187d13c68d47250a7416b18ff082c7cc07bff7
React-perflogger: 15a7bcb6c46eae8a981f7add8c9f4172e2372324
React-performancetimeline: 631ef8ac4246bca49c07b88cd1ad85ce460b97bf
React-RCTActionSheet: 25eb72eabade4095bfaf6cd9c5c965c76865daa8
React-RCTAnimation: 8efbd0a4a71fd3dbe84e6d08b92bec5728b7524b
React-RCTAppDelegate: 8ff6da817adefd15d4e25ade53a477c344f9b213
React-RCTBlob: 6056bd62a56a6d2dad55cdf195949db1de623e14
React-RCTFabric: 949589de63c19b8b197555567fbc51eebd265bbc
React-RCTFBReactNativeSpec: 4214925b1c4829fb1e73bfbacb301244b522dc11
React-RCTImage: 7b3f38c77e183bdcb43dbcd7b5842b96c814889a
React-RCTLinking: 6cca74db71b23f670b72e45603e615c2b72b2235
React-RCTNetwork: 5791b0718eff20c12f6f3d62e2ad50cff4b5c8a0
React-RCTSettings: 84154e31a232b5b03b6b7a89924a267c431ccf16
React-RCTText: cd49cb4442ee7f64b0415b27745d2495cb40cfaa
React-RCTVibration: 2a7432e61d42f802716bd67edc793b5e5f58971a
React-RCTAnimation: 04c987fa858fa16169f543d29edb4140bd35afa9
React-RCTAppDelegate: b2707904e4f8ad92fd052e62684bf0c3b88381cc
React-RCTBlob: 1f214a7211632515805dd1f1b81fac70d12f812d
React-RCTFabric: 10f8b1ceac3c2feb3ddbede8a70c3410c68d79fe
React-RCTFBReactNativeSpec: 60d72b45a150ca35748b9a77028674b1e56a2e43
React-RCTImage: e516d72739797fb7c1dac5c691f02a0f5445c290
React-RCTLinking: 1e5554afe4f959696ad3285738c1510f2592f220
React-RCTNetwork: 65e1e52c8614dcab342fa1eaec750ca818160e74
React-RCTSettings: e86c204b481ef9264929fe00d1fdd04ce561748a
React-RCTText: 15f14d6f9b75e64ffe749c75e30ff047cf0fa1be
React-RCTVibration: 8d9078d5432972fe12d9f1526b38f504ad3d45cb
React-rendererconsistency: 7a81b08f01655b458d1de48ddd5b3f5988fd753f
React-rendererdebug: a6547cf2f3f7bcdd8d36ff5e103145d83f5001d4
React-rendererdebug: 28f591de2009cb053e21cbf87edb357e6b214147
React-rncore: dd08c91cea25486f79012e32975c0ea26bd92760
React-RuntimeApple: ea09b4c38df2695e0cb3fa60a83db81d653a39fd
React-RuntimeCore: 3dc763d365a1f738d92cd942066dd347953733f3
React-RuntimeApple: fc7a3fe49564bd6a5b8aef081341960212ab58d0
React-RuntimeCore: 2f967e25ca18a85cff22d103fbe782828442eeb4
React-runtimeexecutor: f9ae11481be048438640085c1e8266d6afebae44
React-RuntimeHermes: 3bc16b5a5a756a292ad6f56968dfb8de643ae20b
React-runtimescheduler: 2e90401c400b62bb720d6ac028dcef803e30d888
React-RuntimeHermes: e2160a175c7a34dad30b0e10d79e8d70da471beb
React-runtimescheduler: 07601cb38739f60ddb2f9efb854a13cfb48310dd
React-timing: 0d0263a5d8ab6fc8c325efb54cee1d6a6f01d657
React-utils: 8905cd01f46755ea42268875d04c614a0d46431e
ReactAppDependencyProvider: 6e8d68583f39dc31ee65235110287277eb8556ef
ReactCodegen: c08a5113d9c9c895fe10f3c296f74c6b705a60a9
ReactCommon: 1bd2dc684d7992acbf0dfee887b89a57a1ead86d
React-utils: 015e250e7898047068792d4b532fed21f2eb1661
ReactAppDependencyProvider: 3d947e9d62f351c06c71497e1be897e6006dc303
ReactCodegen: 1baa534318b19e95fb0f02db0a1ae1e3c271944d
ReactCommon: 6014af4276bb2debc350e2620ef1bd856b4d981c
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Yoga: 78d74e245ed67bb94275a1316cdc170b9b7fe884
Yoga: c0d8564af14a858f962607cd7306539cb2ace926

PODFILE CHECKSUM: bb12a365adcc932a9920d41a90a756c0c4846dd8

COCOAPODS: 1.16.2
COCOAPODS: 1.15.2
2 changes: 1 addition & 1 deletion demos/react-native-barebones-opsqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@azure/core-asynciterator-polyfill": "^1.0.2",
"@op-engineering/op-sqlite": "^11.4.4",
"@op-engineering/op-sqlite": "^14.0.2",
"@powersync/op-sqlite": "workspace:*",
"@powersync/common": "workspace:*",
"@powersync/react-native": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion packages/drizzle-driver/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const config: UserConfigExport = {
optimizeDeps: {
// Don't optimise these packages as they contain web workers and WASM files.
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
exclude: ['@journeyapps/wa-sqlite', '@powersync/web']
exclude: ['@journeyapps/wa-sqlite', '@powersync/web'],
include: ['async-mutex', 'comlink', 'bson']
},
plugins: [wasm(), topLevelAwait()],
test: {
Expand Down
3 changes: 2 additions & 1 deletion packages/kysely-driver/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const config: UserConfigExport = {
optimizeDeps: {
// Don't optimise these packages as they contain web workers and WASM files.
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
exclude: ['@journeyapps/wa-sqlite', '@powersync/web']
exclude: ['@journeyapps/wa-sqlite', '@powersync/web'],
include: ['async-mutex', 'comlink', 'bson']
},
plugins: [wasm(), topLevelAwait()],
test: {
Expand Down
6 changes: 1 addition & 5 deletions packages/powersync-op-sqlite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ This package (`packages/powersync-op-sqlite`) enables using [OP-SQLite](https://

If you are not yet familiar with PowerSync, please see the [PowerSync React Native SDK README](https://github.com/powersync-ja/powersync-js/tree/main/packages/react-native) for more information.

## Beta Release

This package is currently in a beta release.

## Installation

Follow the installation instructions for the [React Native SDK](https://github.com/powersync-ja/powersync-js/tree/main/packages/react-native) if you haven't yet set up PowerSync in your project. However, note that this package cannot be installed alongside `@journeyapps/react-native-quick-sqlite`. Skip the step about installing it as a peer dependency, or uninstall it if it is already installed.
Expand Down Expand Up @@ -45,7 +41,7 @@ this.powersync = new PowerSyncDatabase({ database: factory, schema: AppSchema })

### Encryption with SQLCipher

To enable SQLCipher you need to add the following configuration option to your application's `package.json`
To enable SQLCipher you need to add the following configuration option to your application's `package.json`. Note that for [monorepos](https://op-engineering.github.io/op-sqlite/docs/installation) you may have to add this configuration to the monorepo root `package.json` instead, this depends on where your package manager tool hoists modules.

```json
{
Expand Down
4 changes: 2 additions & 2 deletions packages/powersync-op-sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"access": "public"
},
"peerDependencies": {
"@op-engineering/op-sqlite": "^11.2.13",
"@op-engineering/op-sqlite": "^13.0.0 || ^14.0.0",
"@powersync/common": "workspace:^1.31.1",
"react": "*",
"react-native": "*"
Expand All @@ -75,7 +75,7 @@
"async-lock": "^1.4.0"
},
"devDependencies": {
"@op-engineering/op-sqlite": "^11.2.13",
"@op-engineering/op-sqlite": "^14.0.2",
"@react-native/eslint-config": "^0.73.1",
"@types/async-lock": "^1.4.0",
"@types/react": "^18.2.44",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const config: UserConfigExport = {
// Don't optimise these packages as they contain web workers and WASM files.
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
exclude: ['@journeyapps/wa-sqlite', '@powersync/web'],
include: ['bson']
include: ['bson', 'comlink']
},
plugins: [wasm(), topLevelAwait()],
test: {
Expand Down
Loading