@dittolive/ditto 3.0.3-alpha2 → 3.0.4
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 +3 -3
- 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/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: **3.0.
|
|
6
|
+
Version: **3.0.4**
|
|
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/3.0.
|
|
9
|
+
[API Reference](https://software.ditto.live/js/Ditto/3.0.4/api-reference/) for this particular version.
|
|
10
10
|
|
|
11
11
|
--------------------------------------------------------------------------------
|
|
12
12
|
|
package/node/ditto.cjs.js
CHANGED
|
@@ -601,7 +601,7 @@ async function collectionInsertValue(ditto, collectionName, doc_cbor, doc_id, wr
|
|
|
601
601
|
default:
|
|
602
602
|
throw new Error('Invalid write strategy provided');
|
|
603
603
|
}
|
|
604
|
-
const { status_code: errorCode, id } = await ditto_collection_insert_value(ditto, collectionNameX, doc_cbor, doc_id, strategy, null);
|
|
604
|
+
const { status_code: errorCode, id } = await ditto_collection_insert_value(ditto, collectionNameX, doc_cbor, doc_id, strategy, null, null);
|
|
605
605
|
if (errorCode !== 0)
|
|
606
606
|
throw new Error(errorMessage() || `ditto_collection_insert_value() failed with error code: ${errorCode}`);
|
|
607
607
|
return boxCBytesIntoBuffer(id);
|
|
@@ -744,7 +744,7 @@ function readTransactionFree(self) {
|
|
|
744
744
|
async function writeTransaction(ditto) {
|
|
745
745
|
ensureInitialized();
|
|
746
746
|
// REFACTOR: add proper error handling.
|
|
747
|
-
const { status_code: errorCode, txn: writeTransaction } = await ditto_write_transaction(ditto);
|
|
747
|
+
const { status_code: errorCode, txn: writeTransaction } = await ditto_write_transaction(ditto, null);
|
|
748
748
|
if (errorCode !== 0)
|
|
749
749
|
throw new Error(errorMessage() || `ditto_write_transaction() failed with error code: ${errorCode}`);
|
|
750
750
|
return writeTransaction;
|
|
@@ -1434,7 +1434,7 @@ function awdlDestroy(awdl) {
|
|
|
1434
1434
|
|
|
1435
1435
|
// NOTE: this is patched up with the actual build version by Jake task
|
|
1436
1436
|
// build:package and has to be a valid semantic version as defined here: https://semver.org.
|
|
1437
|
-
const fullBuildVersionString = '3.0.
|
|
1437
|
+
const fullBuildVersionString = '3.0.4';
|
|
1438
1438
|
|
|
1439
1439
|
//
|
|
1440
1440
|
/**
|
|
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": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
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",
|