@cocreate/crdt 1.24.0 → 1.24.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/CHANGELOG.md +15 -0
- package/package.json +4 -4
- package/src/index.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [1.24.2](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.24.1...v1.24.2) (2023-11-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update dependencies to the lates versions ([3a160fe](https://github.com/CoCreate-app/CoCreate-crdt/commit/3a160fe299c52b8ab5d52920ceb68a6eb04115e7))
|
|
7
|
+
* update method to use object.update etc ([66b1157](https://github.com/CoCreate-app/CoCreate-crdt/commit/66b1157298c5b2ac09404064db95a562af4a9bb6))
|
|
8
|
+
|
|
9
|
+
## [1.24.1](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.24.0...v1.24.1) (2023-10-25)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* bump dependencies ([1063984](https://github.com/CoCreate-app/CoCreate-crdt/commit/1063984a1c5a63c186f73579bc416205d80598af))
|
|
15
|
+
|
|
1
16
|
# [1.24.0](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.23.3...v1.24.0) (2023-10-24)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/crdt",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.2",
|
|
4
4
|
"description": "CoCreate crdt",
|
|
5
5
|
"author": "CoCreate LLC",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"webpack-log": "^3.0.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@cocreate/crud-client": "^1.28.
|
|
44
|
-
"@cocreate/local-storage": "^1.10.
|
|
45
|
-
"@cocreate/utils": "^1.
|
|
43
|
+
"@cocreate/crud-client": "^1.28.12",
|
|
44
|
+
"@cocreate/local-storage": "^1.10.8",
|
|
45
|
+
"@cocreate/utils": "^1.26.2"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/src/index.js
CHANGED
|
@@ -59,7 +59,7 @@ async function getObject(data) {
|
|
|
59
59
|
if (data.read != 'false') {
|
|
60
60
|
if (!data.newObject) {
|
|
61
61
|
let response = await crud.send({
|
|
62
|
-
method: "read
|
|
62
|
+
method: "object.read",
|
|
63
63
|
array: "crdt",
|
|
64
64
|
object: {
|
|
65
65
|
$filter: {
|
|
@@ -126,7 +126,7 @@ async function checkDb(data, flag) {
|
|
|
126
126
|
if (data.newObject)
|
|
127
127
|
string = data.newObject
|
|
128
128
|
else {
|
|
129
|
-
let response = await crud.send({ method: 'read
|
|
129
|
+
let response = await crud.send({ method: 'object.read', array, object: { _id: object, key } });
|
|
130
130
|
string = crud.getValueFromObject(response.object[0], key);
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -242,7 +242,7 @@ function localChange(data, string) {
|
|
|
242
242
|
function persistChange(data, change) {
|
|
243
243
|
let name = getName(data);
|
|
244
244
|
let Data = {
|
|
245
|
-
method: 'update
|
|
245
|
+
method: 'object.update',
|
|
246
246
|
array: 'crdt',
|
|
247
247
|
object: {
|
|
248
248
|
name,
|
|
@@ -391,7 +391,7 @@ async function updateText(data, flag) {
|
|
|
391
391
|
if (data.crud != 'false' && data.save != 'false') {
|
|
392
392
|
let wholestring = await getText(data);
|
|
393
393
|
crud.send({
|
|
394
|
-
method: 'update
|
|
394
|
+
method: 'object.update',
|
|
395
395
|
array: data.array,
|
|
396
396
|
object: {
|
|
397
397
|
_id: data.object,
|