@dittolive/ditto 4.7.2-rc.1 → 4.7.2-rc.3
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/README.md +2 -2
- package/node/ditto.cjs.js +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-arm64.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 +1 -9
- package/react-native/android/build.gradle +1 -1
- package/react-native/cpp/src/Attachment.cpp +1 -1
- package/react-native/dittoffi/dittoffi.h +2 -2
- package/react-native/src/sources/ditto.ts +0 -3
- package/web/ditto.es6.js +1 -1
- package/web/ditto.umd.js +1 -1
- package/web/ditto.wasm +0 -0
- package/react-native/android/.gradle/8.7/checksums/checksums.lock +0 -0
- package/react-native/android/.gradle/8.7/dependencies-accessors/gc.properties +0 -0
- package/react-native/android/.gradle/8.7/fileChanges/last-build.bin +0 -0
- package/react-native/android/.gradle/8.7/fileHashes/fileHashes.lock +0 -0
- package/react-native/android/.gradle/8.7/gc.properties +0 -0
- package/react-native/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/react-native/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/react-native/android/.gradle/vcs-1/gc.properties +0 -0
package/README.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
_Ditto is a cross-platform SDK that allows mobile, web, and IoT apps to sync
|
|
4
4
|
with and even without connectivity._
|
|
5
5
|
|
|
6
|
-
Version: **4.7.2-rc.
|
|
6
|
+
Version: **4.7.2-rc.3**
|
|
7
7
|
|
|
8
8
|
For more information please visit [ditto.live](https://ditto.live), as well as the
|
|
9
|
-
[API Reference](https://software.ditto.live/js/Ditto/4.7.2-rc.
|
|
9
|
+
[API Reference](https://software.ditto.live/js/Ditto/4.7.2-rc.3/api-reference/) for this particular version.
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
package/node/ditto.cjs.js
CHANGED
|
@@ -2222,7 +2222,7 @@ class AttachmentToken {
|
|
|
2222
2222
|
|
|
2223
2223
|
// NOTE: this is patched up with the actual build version by Jake task
|
|
2224
2224
|
// build:package and has to be a valid semantic version as defined here: https://semver.org.
|
|
2225
|
-
const fullBuildVersionString = '4.7.2-rc.
|
|
2225
|
+
const fullBuildVersionString = '4.7.2-rc.3';
|
|
2226
2226
|
|
|
2227
2227
|
//
|
|
2228
2228
|
// Copyright © 2021 DittoLive Incorporated. All rights reserved.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dittolive/ditto",
|
|
3
|
-
"version": "4.7.2-rc.
|
|
3
|
+
"version": "4.7.2-rc.3",
|
|
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",
|
|
7
|
-
|
|
8
7
|
"author": {
|
|
9
8
|
"name": "DittoLive Incorporated.",
|
|
10
9
|
"email": "contact@ditto.live",
|
|
11
10
|
"url": "https://ditto.live"
|
|
12
11
|
},
|
|
13
|
-
|
|
14
12
|
"keywords": [
|
|
15
13
|
"ditto",
|
|
16
14
|
"dittolive",
|
|
@@ -21,32 +19,26 @@
|
|
|
21
19
|
"sync",
|
|
22
20
|
"p2p"
|
|
23
21
|
],
|
|
24
|
-
|
|
25
22
|
"engines": {
|
|
26
23
|
"node": ">=14"
|
|
27
24
|
},
|
|
28
|
-
|
|
29
25
|
"browserslist": [
|
|
30
26
|
"defaults"
|
|
31
27
|
],
|
|
32
|
-
|
|
33
28
|
"main": "node/ditto.cjs.js",
|
|
34
29
|
"browser": "web/ditto.es6.js",
|
|
35
30
|
"browser/umd": "web/ditto.umd.js",
|
|
36
31
|
"react-native": "react-native/src/index.ts",
|
|
37
32
|
"types": "types/ditto.d.ts",
|
|
38
|
-
|
|
39
33
|
"scripts": {
|
|
40
34
|
"play:web": "npx serve --listen 5285",
|
|
41
35
|
"play:node": "node --experimental-repl-await --unhandled-rejections=strict playground.cjs"
|
|
42
36
|
},
|
|
43
|
-
|
|
44
37
|
"dependencies": {
|
|
45
38
|
"cbor-redux": "^1.0.0",
|
|
46
39
|
"@ungap/weakrefs": "^0.2.0",
|
|
47
40
|
"fastestsmallesttextencoderdecoder": "^1.0.22"
|
|
48
41
|
},
|
|
49
|
-
|
|
50
42
|
"devDependencies": {
|
|
51
43
|
"serve": "^14.2.1"
|
|
52
44
|
}
|
|
@@ -150,7 +150,7 @@ repositories {
|
|
|
150
150
|
|
|
151
151
|
// This can be moved to gradle.properties (minus the quotes) with no code changes
|
|
152
152
|
// here since `version` is a default project property.
|
|
153
|
-
version = "4.7.2"
|
|
153
|
+
version = "4.7.2-rc.3"
|
|
154
154
|
|
|
155
155
|
dependencies {
|
|
156
156
|
// For < 0.71, this will be from the local maven repo
|
|
@@ -171,7 +171,7 @@ Function ditto_new_attachment_from_bytes(Runtime &runtime)
|
|
|
171
171
|
return static_cast<double>(res);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
Object
|
|
174
|
+
Object attachment = arguments[2].getObject(runtime);
|
|
175
175
|
|
|
176
176
|
attachment.setProperty(runtime, "len", uint64ToBigIntOrNumber(runtime , c_attachment.len));
|
|
177
177
|
// Factor this out as: cSliceToUInt8Array()
|
|
@@ -1451,7 +1451,7 @@ void
|
|
|
1451
1451
|
* * `0` -- no error
|
|
1452
1452
|
* * `1` -- an error
|
|
1453
1453
|
* * `2` -- invalid id
|
|
1454
|
-
* * `3` -- token
|
|
1454
|
+
* * `3` -- token never issued
|
|
1455
1455
|
*
|
|
1456
1456
|
* In case of a non-zero return value, error message can be retrieved using
|
|
1457
1457
|
* `ditto_error_message` function.
|
|
@@ -3274,7 +3274,7 @@ void
|
|
|
3274
3274
|
uint32_t retry_interval_millis);
|
|
3275
3275
|
|
|
3276
3276
|
/** <No documentation available> */
|
|
3277
|
-
|
|
3277
|
+
char *
|
|
3278
3278
|
/* fn */ ditto_set_device_name (
|
|
3279
3279
|
CDitto_t const * ditto,
|
|
3280
3280
|
char const * device_name);
|
|
@@ -259,9 +259,6 @@ export class Ditto {
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
if (validIdentity.type === 'sharedKey') {
|
|
262
|
-
if (Environment.isReactNativeBuild) {
|
|
263
|
-
throw new Error('Shared Key Identity is currently not implemented for React Native.')
|
|
264
|
-
}
|
|
265
262
|
return FFI.dittoIdentityConfigMakeSharedKey(validIdentity.appID, validIdentity.sharedKey, validIdentity.siteID)
|
|
266
263
|
}
|
|
267
264
|
|