Skip to content

Commit ddc0bd1

Browse files
authored
feat: Bump op-sqlite peer dependency to 13.x.x || 14.x.x for @powersync/op-sqlite (#618)
1 parent 96ddd5d commit ddc0bd1

File tree

11 files changed

+10647
-10271
lines changed

11 files changed

+10647
-10271
lines changed

.changeset/rotten-pugs-beam.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@powersync/op-sqlite': minor
3+
---
4+
5+
Updated op-sqlite upstream peer dependency from 11.x.x to support ^13.x.x and ^14.x.x,
6+
7+
Noteworthy changes from version 11 to version 14 include:
8+
9+
1. SQLite updated to 3.49.1
10+
2. SQLCipher updated to 4.8.0
11+
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)).

demos/react-native-barebones-opsqlite/ios/Podfile.lock

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PODS:
88
- hermes-engine (0.77.0):
99
- hermes-engine/Pre-built (= 0.77.0)
1010
- hermes-engine/Pre-built (0.77.0)
11-
- op-sqlite (11.4.8):
11+
- op-sqlite (14.0.2):
1212
- DoubleConversion
1313
- glog
1414
- hermes-engine
@@ -31,7 +31,7 @@ PODS:
3131
- ReactCommon/turbomodule/bridging
3232
- ReactCommon/turbomodule/core
3333
- Yoga
34-
- powersync-op-sqlite (0.5.3):
34+
- powersync-op-sqlite (0.6.1):
3535
- DoubleConversion
3636
- glog
3737
- hermes-engine
@@ -1774,70 +1774,70 @@ SPEC CHECKSUMS:
17741774
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
17751775
glog: eb93e2f488219332457c3c4eafd2738ddc7e80b8
17761776
hermes-engine: 1f783c3d53940aed0d2c84586f0b7a85ab7827ef
1777-
op-sqlite: 53273a28dcdcfcf07e0ffe76880c78b89356235f
1778-
powersync-op-sqlite: 92861f75136ef563fd93de8609bcedaffebe6c31
1777+
op-sqlite: 27db77bc067129a35dccf00dad447e683318825d
1778+
powersync-op-sqlite: 21cb1b750d310d4d270fd633bdf982554039d6d4
17791779
powersync-sqlite-core: ef06642c8110680fcddce8a8c0dd2696daaf672d
1780-
RCT-Folly: e78785aa9ba2ed998ea4151e314036f6c49e6d82
1780+
RCT-Folly: 36fe2295e44b10d831836cc0d1daec5f8abcf809
17811781
RCTDeprecation: f5c19ebdb8804b53ed029123eb69914356192fc8
17821782
RCTRequired: 6ae6cebe470486e0e0ce89c1c0eabb998e7c51f4
17831783
RCTTypeSafety: 50d6ec72a3d13cf77e041ff43a0617050fb98e3f
17841784
React: e46fdbd82d2de942970c106677056f3bdd438d82
17851785
React-callinvoker: b027ad895934b5f27ce166d095ed0d272d7df619
1786-
React-Core: 92733c8280b1642afed7ebfb3c523feaec946ece
1787-
React-CoreModules: e2dfd87b6fdb9d969b16871655885a4d89a2a9f4
1788-
React-cxxreact: d1a70e78543bb5b159fdaf6c52cadd33c1ae3244
1786+
React-Core: 36b7f20f655d47a35046e2b02c9aa5a8f1bcb61e
1787+
React-CoreModules: 7fac6030d37165c251a7bd4bde3333212544da3c
1788+
React-cxxreact: 0ead442ecaa248e7f71719e286510676495ae26d
17891789
React-debug: 78d7544d2750737ac3acc88cca2f457d081ec43d
1790-
React-defaultsnativemodule: b24e61fe2d5bb84501898683f9d13ff7fc02a9df
1791-
React-domnativemodule: 210ca3670f16ae92fbcff8da204750af8a7295af
1792-
React-Fabric: 4b3d03ea38646dcc80888253c2befca80526abed
1793-
React-FabricComponents: 38fcb6f5c08f8de9e693f2644d2da54ae4fbf6c8
1794-
React-FabricImage: 1d37769002c13dfffa9f53557a173d56c9ade5e3
1790+
React-defaultsnativemodule: 833b618f562a7798e7a814ce1ddc001464d7a3d0
1791+
React-domnativemodule: c1ca50f25913f73d5e95d55ff5352e7f1d7ebcc8
1792+
React-Fabric: 131631b99737169826d16290d5b90c53a150fc15
1793+
React-FabricComponents: 1f6ce42418da316663f53b534bdebd23ec4be41f
1794+
React-FabricImage: b6ba029f882f1676cb1b59688fa39e1ef0814381
17951795
React-featureflags: 92dd7d0169ab0bf8ad404a5fe757c1ca7ccd74e8
1796-
React-featureflagsnativemodule: 8a6373d7b4ef3c08d82b60376f75bd189bfc8cb2
1797-
React-graphics: 2b316fcf5b6c29ded7d53ae0007d1d129dc89510
1798-
React-hermes: bf50c8272cb562300a54a621aa69dc12a0b4fcf2
1799-
React-idlecallbacksnativemodule: 47df5b6649ca5e0046aa3e43e680452007b16871
1800-
React-ImageManager: 83b8dc67e97cd5fe10cb715bd878aded16adb40f
1801-
React-jserrorhandler: ac08c5673dea69b08e11faf074fd602fbf9492cc
1802-
React-jsi: 19e77567e235d06b7e8f425d2a6c1e948ab286e9
1803-
React-jsiexecutor: fe6ad8b9a2bf97e435fc1c969c80ed7f447ed68e
1804-
React-jsinspector: f321d958a5534b65b56f7806c674e159c28f7d69
1805-
React-jsitracing: d358876acde46009f391228b932a5efe13c8895b
1806-
React-logger: 02e5802824aa9b15cb7df42e10a91abead83cd8d
1807-
React-Mapbuffer: 99bd566147aaa78e872568be53ebca8a4449ddae
1808-
React-microtasksnativemodule: 51e7813abf875408a0f367e473a65bbab6aa8481
1796+
React-featureflagsnativemodule: 69bc086433eff3077b90f4ea17ab2083ad281868
1797+
React-graphics: f09d013df7aef5551fdce4c99f2fe704c6c5b35a
1798+
React-hermes: 13e1c1c9222503bcd7ad450370c5a26dc9b46ebe
1799+
React-idlecallbacksnativemodule: f349708531f44d3db8ac79129d8e2b4d8cc3d1ff
1800+
React-ImageManager: e20f7c0291e5c9298b643c88b40db62c46a30ae4
1801+
React-jserrorhandler: 79aa6ef93470ab9e8f4c6c6258dc662880b0bfb4
1802+
React-jsi: 931610846e52e5d157f4bc3f71a14f9a53573abd
1803+
React-jsiexecutor: 3f5fb21d47c5c72c13a1710b288d78c8209a38f9
1804+
React-jsinspector: d2653e42aae27f01f71f10ab87866cf092288e30
1805+
React-jsitracing: fe93bab4193ec5528bcbdaf2f1b62475652490ad
1806+
React-logger: 9a0c4e1e41cd640ac49d69aacadab783f7e0096b
1807+
React-Mapbuffer: 6993c785c22a170c02489bc78ed207814cbd700f
1808+
React-microtasksnativemodule: 19230cd0933df6f6dc1336c9a9edc382d62638ae
18091809
React-nativeconfig: cd0fbb40987a9658c24dab5812c14e5522a64929
1810-
React-NativeModulesApple: 4a9c304aa4fb086af32e8758ba892386d895b4d3
1811-
React-perflogger: 721172bda31a65ce7b7a0c3bf3de96f12ef6f45d
1812-
React-performancetimeline: 46dbe9fd618ff882f59600dcd9fa923a9713cc3b
1810+
React-NativeModulesApple: 45187d13c68d47250a7416b18ff082c7cc07bff7
1811+
React-perflogger: 15a7bcb6c46eae8a981f7add8c9f4172e2372324
1812+
React-performancetimeline: 631ef8ac4246bca49c07b88cd1ad85ce460b97bf
18131813
React-RCTActionSheet: 25eb72eabade4095bfaf6cd9c5c965c76865daa8
1814-
React-RCTAnimation: 8efbd0a4a71fd3dbe84e6d08b92bec5728b7524b
1815-
React-RCTAppDelegate: 8ff6da817adefd15d4e25ade53a477c344f9b213
1816-
React-RCTBlob: 6056bd62a56a6d2dad55cdf195949db1de623e14
1817-
React-RCTFabric: 949589de63c19b8b197555567fbc51eebd265bbc
1818-
React-RCTFBReactNativeSpec: 4214925b1c4829fb1e73bfbacb301244b522dc11
1819-
React-RCTImage: 7b3f38c77e183bdcb43dbcd7b5842b96c814889a
1820-
React-RCTLinking: 6cca74db71b23f670b72e45603e615c2b72b2235
1821-
React-RCTNetwork: 5791b0718eff20c12f6f3d62e2ad50cff4b5c8a0
1822-
React-RCTSettings: 84154e31a232b5b03b6b7a89924a267c431ccf16
1823-
React-RCTText: cd49cb4442ee7f64b0415b27745d2495cb40cfaa
1824-
React-RCTVibration: 2a7432e61d42f802716bd67edc793b5e5f58971a
1814+
React-RCTAnimation: 04c987fa858fa16169f543d29edb4140bd35afa9
1815+
React-RCTAppDelegate: b2707904e4f8ad92fd052e62684bf0c3b88381cc
1816+
React-RCTBlob: 1f214a7211632515805dd1f1b81fac70d12f812d
1817+
React-RCTFabric: 10f8b1ceac3c2feb3ddbede8a70c3410c68d79fe
1818+
React-RCTFBReactNativeSpec: 60d72b45a150ca35748b9a77028674b1e56a2e43
1819+
React-RCTImage: e516d72739797fb7c1dac5c691f02a0f5445c290
1820+
React-RCTLinking: 1e5554afe4f959696ad3285738c1510f2592f220
1821+
React-RCTNetwork: 65e1e52c8614dcab342fa1eaec750ca818160e74
1822+
React-RCTSettings: e86c204b481ef9264929fe00d1fdd04ce561748a
1823+
React-RCTText: 15f14d6f9b75e64ffe749c75e30ff047cf0fa1be
1824+
React-RCTVibration: 8d9078d5432972fe12d9f1526b38f504ad3d45cb
18251825
React-rendererconsistency: 7a81b08f01655b458d1de48ddd5b3f5988fd753f
1826-
React-rendererdebug: a6547cf2f3f7bcdd8d36ff5e103145d83f5001d4
1826+
React-rendererdebug: 28f591de2009cb053e21cbf87edb357e6b214147
18271827
React-rncore: dd08c91cea25486f79012e32975c0ea26bd92760
1828-
React-RuntimeApple: ea09b4c38df2695e0cb3fa60a83db81d653a39fd
1829-
React-RuntimeCore: 3dc763d365a1f738d92cd942066dd347953733f3
1828+
React-RuntimeApple: fc7a3fe49564bd6a5b8aef081341960212ab58d0
1829+
React-RuntimeCore: 2f967e25ca18a85cff22d103fbe782828442eeb4
18301830
React-runtimeexecutor: f9ae11481be048438640085c1e8266d6afebae44
1831-
React-RuntimeHermes: 3bc16b5a5a756a292ad6f56968dfb8de643ae20b
1832-
React-runtimescheduler: 2e90401c400b62bb720d6ac028dcef803e30d888
1831+
React-RuntimeHermes: e2160a175c7a34dad30b0e10d79e8d70da471beb
1832+
React-runtimescheduler: 07601cb38739f60ddb2f9efb854a13cfb48310dd
18331833
React-timing: 0d0263a5d8ab6fc8c325efb54cee1d6a6f01d657
1834-
React-utils: 8905cd01f46755ea42268875d04c614a0d46431e
1835-
ReactAppDependencyProvider: 6e8d68583f39dc31ee65235110287277eb8556ef
1836-
ReactCodegen: c08a5113d9c9c895fe10f3c296f74c6b705a60a9
1837-
ReactCommon: 1bd2dc684d7992acbf0dfee887b89a57a1ead86d
1834+
React-utils: 015e250e7898047068792d4b532fed21f2eb1661
1835+
ReactAppDependencyProvider: 3d947e9d62f351c06c71497e1be897e6006dc303
1836+
ReactCodegen: 1baa534318b19e95fb0f02db0a1ae1e3c271944d
1837+
ReactCommon: 6014af4276bb2debc350e2620ef1bd856b4d981c
18381838
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
1839-
Yoga: 78d74e245ed67bb94275a1316cdc170b9b7fe884
1839+
Yoga: c0d8564af14a858f962607cd7306539cb2ace926
18401840

18411841
PODFILE CHECKSUM: bb12a365adcc932a9920d41a90a756c0c4846dd8
18421842

1843-
COCOAPODS: 1.16.2
1843+
COCOAPODS: 1.15.2

demos/react-native-barebones-opsqlite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@azure/core-asynciterator-polyfill": "^1.0.2",
13-
"@op-engineering/op-sqlite": "^11.4.4",
13+
"@op-engineering/op-sqlite": "^14.0.2",
1414
"@powersync/op-sqlite": "workspace:*",
1515
"@powersync/common": "workspace:*",
1616
"@powersync/react-native": "workspace:*",

packages/drizzle-driver/vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const config: UserConfigExport = {
1010
optimizeDeps: {
1111
// Don't optimise these packages as they contain web workers and WASM files.
1212
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
13-
exclude: ['@journeyapps/wa-sqlite', '@powersync/web']
13+
exclude: ['@journeyapps/wa-sqlite', '@powersync/web'],
14+
include: ['async-mutex', 'comlink', 'bson']
1415
},
1516
plugins: [wasm(), topLevelAwait()],
1617
test: {

packages/kysely-driver/vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const config: UserConfigExport = {
1010
optimizeDeps: {
1111
// Don't optimise these packages as they contain web workers and WASM files.
1212
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
13-
exclude: ['@journeyapps/wa-sqlite', '@powersync/web']
13+
exclude: ['@journeyapps/wa-sqlite', '@powersync/web'],
14+
include: ['async-mutex', 'comlink', 'bson']
1415
},
1516
plugins: [wasm(), topLevelAwait()],
1617
test: {

packages/powersync-op-sqlite/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ This package (`packages/powersync-op-sqlite`) enables using [OP-SQLite](https://
66

77
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.
88

9-
## Beta Release
10-
11-
This package is currently in a beta release.
12-
139
## Installation
1410

1511
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.
@@ -45,7 +41,7 @@ this.powersync = new PowerSyncDatabase({ database: factory, schema: AppSchema })
4541

4642
### Encryption with SQLCipher
4743

48-
To enable SQLCipher you need to add the following configuration option to your application's `package.json`
44+
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.
4945

5046
```json
5147
{

packages/powersync-op-sqlite/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"access": "public"
6666
},
6767
"peerDependencies": {
68-
"@op-engineering/op-sqlite": "^11.2.13",
68+
"@op-engineering/op-sqlite": "^13.0.0 || ^14.0.0",
6969
"@powersync/common": "workspace:^1.31.1",
7070
"react": "*",
7171
"react-native": "*"
@@ -75,7 +75,7 @@
7575
"async-lock": "^1.4.0"
7676
},
7777
"devDependencies": {
78-
"@op-engineering/op-sqlite": "^11.2.13",
78+
"@op-engineering/op-sqlite": "^14.0.2",
7979
"@react-native/eslint-config": "^0.73.1",
8080
"@types/async-lock": "^1.4.0",
8181
"@types/react": "^18.2.44",

packages/web/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const config: UserConfigExport = {
3131
// Don't optimise these packages as they contain web workers and WASM files.
3232
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
3333
exclude: ['@journeyapps/wa-sqlite', '@powersync/web'],
34-
include: ['bson']
34+
include: ['bson', 'comlink']
3535
},
3636
plugins: [wasm(), topLevelAwait()],
3737
test: {

0 commit comments

Comments
 (0)