@dittolive/ditto 4.3.0 → 4.3.1
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-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 -1
- package/types/ditto.d.ts +20 -5
- package/web/ditto.es6.js +1 -1
- package/web/ditto.umd.js +1 -1
- package/web/ditto.wasm +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.3.
|
|
6
|
+
Version: **4.3.1**
|
|
7
7
|
|
|
8
8
|
Please visit [ditto.live](https://ditto.live) for more info as well as the
|
|
9
|
-
[API Reference](https://software.ditto.live/js/Ditto/4.3.
|
|
9
|
+
[API Reference](https://software.ditto.live/js/Ditto/4.3.1/api-reference/) for this particular version.
|
|
10
10
|
|
|
11
11
|
--------------------------------------------------------------------------------
|
|
12
12
|
|
package/node/ditto.cjs.js
CHANGED
|
@@ -1470,7 +1470,7 @@ function awdlDestroy(awdl) {
|
|
|
1470
1470
|
|
|
1471
1471
|
// NOTE: this is patched up with the actual build version by Jake task
|
|
1472
1472
|
// build:package and has to be a valid semantic version as defined here: https://semver.org.
|
|
1473
|
-
const fullBuildVersionString = '4.3.
|
|
1473
|
+
const fullBuildVersionString = '4.3.1';
|
|
1474
1474
|
|
|
1475
1475
|
//
|
|
1476
1476
|
/**
|
|
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.3.
|
|
3
|
+
"version": "4.3.1",
|
|
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",
|
package/types/ditto.d.ts
CHANGED
|
@@ -1195,7 +1195,7 @@ type ConnectionType = 'P2PWiFi' | 'WebSocket' | 'AccessPoint' | 'Bluetooth';
|
|
|
1195
1195
|
* with each other.
|
|
1196
1196
|
*/
|
|
1197
1197
|
type Address = {
|
|
1198
|
-
siteId:
|
|
1198
|
+
siteId: number | BigInt;
|
|
1199
1199
|
pubkey: Uint8Array;
|
|
1200
1200
|
};
|
|
1201
1201
|
/**
|
|
@@ -1206,13 +1206,28 @@ type Address = {
|
|
|
1206
1206
|
declare function addressToString(address: Address): string;
|
|
1207
1207
|
/** Represents a connection between two peers on the Ditto mesh network. */
|
|
1208
1208
|
type Connection = {
|
|
1209
|
-
/** Unique identifier for the connection.
|
|
1209
|
+
/** Unique identifier for the connection.
|
|
1210
|
+
*
|
|
1211
|
+
* These IDs are stable for any two peer keys and a given connection type.
|
|
1212
|
+
*
|
|
1213
|
+
* **Example ID**
|
|
1214
|
+
*
|
|
1215
|
+
* "1<->2:Bluetooth"
|
|
1216
|
+
*/
|
|
1210
1217
|
id: string;
|
|
1211
1218
|
/** Type of transport enabling this connection. */
|
|
1212
|
-
|
|
1213
|
-
/**
|
|
1219
|
+
connectionType: ConnectionType;
|
|
1220
|
+
/**
|
|
1221
|
+
* Peer key of the peer at one end of the connection.
|
|
1222
|
+
*
|
|
1223
|
+
* This peer key is lexicographically smaller than `peer2`.
|
|
1224
|
+
*/
|
|
1214
1225
|
peer1: Uint8Array;
|
|
1215
|
-
/**
|
|
1226
|
+
/**
|
|
1227
|
+
* Peer key of the peer at the other end of the connection.
|
|
1228
|
+
*
|
|
1229
|
+
* This peer key is lexicographically larger than `peer1`.
|
|
1230
|
+
*/
|
|
1216
1231
|
peer2: Uint8Array;
|
|
1217
1232
|
approximateDistanceInMeters?: number;
|
|
1218
1233
|
};
|