@dittolive/ditto 4.5.2-rc.2 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DittoReactNative.podspec +1 -1
- package/README.md +2 -2
- package/node/ditto.cjs.js +9657 -2
- package/node/ditto.cjs.js.map +1 -1
- package/node/ditto.cjs.pretty.js +6 -4
- package/node/ditto.cjs.pretty.js.map +1 -1
- package/node/ditto.darwin-arm64.node +0 -0
- package/node/ditto.darwin-x64.node +0 -0
- package/node/ditto.linux-arm.node +0 -0
- package/node/ditto.linux-x64.node +0 -0
- package/node/ditto.win32-x64.node +0 -0
- package/node/transports.darwin-arm64.node +0 -0
- package/node/transports.darwin-x64.node +0 -0
- package/package.json +5 -2
- package/react-native/android/build.gradle +2 -2
- package/react-native/src/sources/ditto.ts +3 -3
- package/types/ditto.d.ts +1 -1
- package/web/ditto.es6.js +1 -1
- package/web/ditto.es6.js.map +1 -1
- package/web/ditto.es6.pretty.js +5 -5
- package/web/ditto.es6.pretty.js.map +1 -1
- package/web/ditto.umd.js +1 -1
- package/web/ditto.umd.js.map +1 -1
- package/web/ditto.umd.pretty.js +5 -5
- package/web/ditto.umd.pretty.js.map +1 -1
- package/web/ditto.wasm +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dittolive/ditto",
|
|
3
|
-
"version": "4.5.2
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"description": "Ditto is a cross-platform embeddable NoSQL database that can sync with or without an internet connection.",
|
|
5
5
|
"homepage": "https://ditto.live",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -42,7 +42,10 @@
|
|
|
42
42
|
},
|
|
43
43
|
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"cbor-redux": "^1.0.0"
|
|
45
|
+
"cbor-redux": "^1.0.0",
|
|
46
|
+
"@ungap/weakrefs": "^0.2.0",
|
|
47
|
+
"cbor-js": "^0.1.0",
|
|
48
|
+
"fastestsmallesttextencoderdecoder": "^1.0.22"
|
|
46
49
|
},
|
|
47
50
|
|
|
48
51
|
"devDependencies": {
|
|
@@ -153,7 +153,7 @@ dependencies {
|
|
|
153
153
|
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
154
154
|
//noinspection GradleDynamicVersion
|
|
155
155
|
implementation "com.facebook.react:react-native:+"
|
|
156
|
-
implementation "live.ditto:ditto:4.5.2-rc.
|
|
156
|
+
implementation "live.ditto:ditto:4.5.2-rc.3"
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
if (isNewArchitectureEnabled()) {
|
|
@@ -169,7 +169,7 @@ task downloadBinaries {
|
|
|
169
169
|
def defaultArchitectures = ['arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64']
|
|
170
170
|
|
|
171
171
|
defaultArchitectures.each { arch ->
|
|
172
|
-
def fileUrl = "https://software.ditto.live/react-native/ditto/4.5.2
|
|
172
|
+
def fileUrl = "https://software.ditto.live/react-native/ditto/4.5.2/android/${arch}/libdittoffi.a"
|
|
173
173
|
|
|
174
174
|
new File("${project.projectDir}/../dittoffi/android/${arch}").mkdirs()
|
|
175
175
|
def localFilePath = "${project.projectDir}/../dittoffi/android/${arch}/libdittoffi.a"
|
|
@@ -665,13 +665,13 @@ export class Ditto {
|
|
|
665
665
|
*
|
|
666
666
|
* @throws {Error} if called in a React Native environment.
|
|
667
667
|
*/
|
|
668
|
-
disableSyncWithV3() {
|
|
668
|
+
async disableSyncWithV3(): Promise<void> {
|
|
669
669
|
if (Environment.isReactNativeBuild) {
|
|
670
670
|
throw new Error('Disabling sync with V3 is not supported in a React Native environment.')
|
|
671
671
|
}
|
|
672
672
|
const dittoHandle = Bridge.ditto.handleFor(this)
|
|
673
|
-
return this.
|
|
674
|
-
FFI.dittoDisableSyncWithV3(dittoHandle.deref())
|
|
673
|
+
return this.deferCloseAsync(async () => {
|
|
674
|
+
await FFI.dittoDisableSyncWithV3(dittoHandle.deref())
|
|
675
675
|
})
|
|
676
676
|
}
|
|
677
677
|
|
package/types/ditto.d.ts
CHANGED