@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.
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-rc.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.2"
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-rc.2/android/${arch}/libdittoffi.a"
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.deferClose(() => {
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
@@ -2462,7 +2462,7 @@ declare class Ditto {
2462
2462
  *
2463
2463
  * @throws {Error} if called in a React Native environment.
2464
2464
  */
2465
- disableSyncWithV3(): void;
2465
+ disableSyncWithV3(): Promise<void>;
2466
2466
  /**
2467
2467
  * Shut down Ditto and release all resources.
2468
2468
  *