Skip to content

Commit d97f8ab

Browse files
committed
fix: upgrade op-sqlite version to be compatible with latest react native version
1 parent 3c05a9f commit d97f8ab

File tree

64 files changed

+1314
-1168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1314
-1168
lines changed

docusaurus/docs/reactnative/basics/migrating-from-5.x-to-6.x.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ Also, the dependency is made optional now, so if you don't want to use the image
4343

4444
The `react-native-quick-sqlite` package has been replaced with `op-sqlite`. This is a faster alternative, and can help us with our new architecture endeavors.
4545

46+
:::note
47+
For React Native version 0.64 and above, you need to install version `>=9.3.0` of the `op-sqlite`.
48+
:::
49+
4650
You can replace it by running the following commands:
4751

4852
```bash

examples/SampleApp/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { SafeAreaProvider, useSafeAreaInsets } from 'react-native-safe-area-cont
77
import {
88
Chat,
99
OverlayProvider,
10-
QuickSqliteClient,
10+
SqliteClient,
1111
ThemeProvider,
1212
useOverlayContext,
1313
} from 'stream-chat-react-native';
@@ -39,7 +39,7 @@ import type { StreamChat } from 'stream-chat';
3939

4040
if (__DEV__) {
4141
DevSettings.addMenuItem('Reset local DB (offline storage)', () => {
42-
QuickSqliteClient.resetDB();
42+
SqliteClient.resetDB();
4343
console.info('Local DB reset');
4444
});
4545
}

examples/SampleApp/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ PODS:
156156
- nanopb/encode (= 2.30910.0)
157157
- nanopb/decode (2.30910.0)
158158
- nanopb/encode (2.30910.0)
159-
- op-sqlite (6.2.11):
159+
- op-sqlite (9.3.0):
160160
- React
161161
- React-callinvoker
162162
- React-Core
@@ -2270,14 +2270,14 @@ SPEC CHECKSUMS:
22702270
FirebaseRemoteConfigInterop: 6efda51fb5e2f15b16585197e26eaa09574e8a4d
22712271
FirebaseSessions: dbd14adac65ce996228652c1fc3a3f576bdf3ecc
22722272
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
2273-
glog: fdfdfe5479092de0c4bdbebedd9056951f092c4f
2273+
glog: 69ef571f3de08433d766d614c73a9838a06bf7eb
22742274
GoogleAppMeasurement: f3abf08495ef2cba7829f15318c373b8d9226491
22752275
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
22762276
GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
22772277
hermes-engine: ea92f60f37dba025e293cbe4b4a548fd26b610a0
22782278
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
22792279
nanopb: 438bc412db1928dac798aa6fd75726007be04262
2280-
op-sqlite: b4f61f3085ea3b70f264f3a64b724c81ab117e58
2280+
op-sqlite: f522405b72bbbdf22ce4d90060ed3bcf874e5b1b
22812281
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
22822282
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
22832283
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740

examples/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj

Lines changed: 236 additions & 244 deletions
Large diffs are not rendered by default.

examples/SampleApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@notifee/react-native": "^7.7.1",
26-
"@op-engineering/op-sqlite": "^6.2.11",
26+
"@op-engineering/op-sqlite": "^9.3.0",
2727
"@react-native-async-storage/async-storage": "^1.21.0",
2828
"@react-native-camera-roll/camera-roll": "^7.8.0",
2929
"@react-native-community/netinfo": "^11.3.2",

examples/SampleApp/yarn.lock

Lines changed: 464 additions & 384 deletions
Large diffs are not rendered by default.

examples/TypeScriptMessaging/ios/Podfile.lock

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PODS:
77
- hermes-engine (0.75.4):
88
- hermes-engine/Pre-built (= 0.75.4)
99
- hermes-engine/Pre-built (0.75.4)
10-
- op-sqlite (6.2.11):
10+
- op-sqlite (9.3.0):
1111
- React
1212
- React-callinvoker
1313
- React-Core
@@ -17,11 +17,6 @@ PODS:
1717
- fmt (= 9.1.0)
1818
- glog
1919
- RCT-Folly/Default (= 2024.01.01.00)
20-
- RCT-Folly/Default (2024.01.01.00):
21-
- boost
22-
- DoubleConversion
23-
- fmt (= 9.1.0)
24-
- glog
2520
- RCT-Folly/Fabric (2024.01.01.00):
2621
- boost
2722
- DoubleConversion
@@ -2021,14 +2016,14 @@ EXTERNAL SOURCES:
20212016
:path: "../node_modules/react-native/ReactCommon/yoga"
20222017

20232018
SPEC CHECKSUMS:
2024-
boost: 4cb898d0bf20404aab1850c656dcea009429d6c1
2025-
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
2019+
boost: 1dca942403ed9342f98334bf4c3621f011aa7946
2020+
DoubleConversion: f16ae600a246532c4020132d54af21d0ddb2a385
20262021
FBLazyVector: 430e10366de01d1e3d57374500b1b150fe482e6d
2027-
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
2028-
glog: 69ef571f3de08433d766d614c73a9838a06bf7eb
2022+
fmt: 10c6e61f4be25dc963c36bd73fc7b1705fe975be
2023+
glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a
20292024
hermes-engine: ea92f60f37dba025e293cbe4b4a548fd26b610a0
2030-
op-sqlite: b4f61f3085ea3b70f264f3a64b724c81ab117e58
2031-
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740
2025+
op-sqlite: f522405b72bbbdf22ce4d90060ed3bcf874e5b1b
2026+
RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648
20322027
RCTDeprecation: 726d24248aeab6d7180dac71a936bbca6a994ed1
20332028
RCTRequired: a94e7febda6db0345d207e854323c37e3a31d93b
20342029
RCTTypeSafety: 28e24a6e44f5cbf912c66dde6ab7e07d1059a205

examples/TypeScriptMessaging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"clean-all": "yarn clean && rm -rf node_modules && rm -rf ios/Pods && rm -rf vendor && bundle install && yarn install && cd ios && bundle exec pod install && cd -"
1313
},
1414
"dependencies": {
15-
"@op-engineering/op-sqlite": "^6.2.11",
15+
"@op-engineering/op-sqlite": "^9.3.0",
1616
"@react-native-clipboard/clipboard": "^1.14.3",
1717
"@react-native-community/netinfo": "^11.3.2",
1818
"@react-navigation/native": "^6.1.17",

examples/TypeScriptMessaging/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,10 +1483,10 @@
14831483
"@nodelib/fs.scandir" "2.1.5"
14841484
fastq "^1.6.0"
14851485

1486-
"@op-engineering/op-sqlite@^6.2.11":
1487-
version "6.2.11"
1488-
resolved "https://registry.yarnpkg.com/@op-engineering/op-sqlite/-/op-sqlite-6.2.11.tgz#0e5b127561c80cdb8748809d17f25ff1fd629219"
1489-
integrity sha512-gYIMJh55ZDHQ6w6qgTSFOQGQaHvA/EKk8uiCqq+jJTduE5DzrJYOfxeHrye+/BffdWE2T5Wm6voDeLSMbFvr2g==
1486+
"@op-engineering/op-sqlite@^9.3.0":
1487+
version "9.3.0"
1488+
resolved "https://registry.yarnpkg.com/@op-engineering/op-sqlite/-/op-sqlite-9.3.0.tgz#cf61d0782ec8117e339f0f7843ce54be63384a5e"
1489+
integrity sha512-PDT3H1sIO8PrseskJS+ibMVzyluDGvswsyKGMUucx0LSyKFRcFtCySpPpnCswSIJIO4z2hAlvdoBi3r+4zb4Bw==
14901490

14911491
"@pkgjs/parseargs@^0.11.0":
14921492
version "0.11.0"

package/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"stream-chat": "8.40.8"
8181
},
8282
"peerDependencies": {
83-
"@op-engineering/op-sqlite": ">=6.0.4",
83+
"@op-engineering/op-sqlite": ">=9.3.0",
8484
"@react-native-community/netinfo": ">=11.3.1",
8585
"react-native": ">=0.67.0",
8686
"react-native-gesture-handler": ">=2.14.0",
@@ -103,7 +103,7 @@
103103
"@babel/preset-env": "7.13.12",
104104
"@babel/preset-typescript": "7.13.0",
105105
"@babel/runtime": "^7.20.0",
106-
"@op-engineering/op-sqlite": "^6.0.4",
106+
"@op-engineering/op-sqlite": "^9.3.0",
107107
"@react-native-community/eslint-config": "2.0.0",
108108
"@react-native-community/eslint-plugin": "1.1.0",
109109
"@react-native-community/netinfo": "^11.3.2",

0 commit comments

Comments
 (0)