@cocreate/crdt 1.13.0 → 1.13.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/CHANGELOG.md +21 -0
- package/package.json +4 -4
- package/src/index.js +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [1.13.3](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.13.2...v1.13.3) (2022-09-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump all of [@cocreate](https://github.com/cocreate) dependencies ([4128039](https://github.com/CoCreate-app/CoCreate-crdt/commit/412803904c239902e8cdcd24f94b7eb7e02f8676))
|
|
7
|
+
|
|
8
|
+
## [1.13.2](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.13.1...v1.13.2) (2022-08-31)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* rename variables isBroadcast and isBroadcastSender to broadcast and broadcastSender ([2560074](https://github.com/CoCreate-app/CoCreate-crdt/commit/2560074c2200c5d7475b347ea8dacc4d86e5107d))
|
|
14
|
+
|
|
15
|
+
## [1.13.1](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.13.0...v1.13.1) (2022-08-18)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* checkDb function requires for clientId to be added ([b5a1545](https://github.com/CoCreate-app/CoCreate-crdt/commit/b5a1545bb83a26b7eb9427a030081ec170688a6b))
|
|
21
|
+
|
|
1
22
|
# [1.13.0](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.12.0...v1.13.0) (2022-07-25)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/crdt",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.3",
|
|
4
4
|
"description": "CoCreate crdt",
|
|
5
5
|
"author": "CoCreate LLC",
|
|
6
6
|
"license": "SEE LICENSE",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"webpack-log": "^3.0.1"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@cocreate/crud-client": "^1.
|
|
47
|
-
"@cocreate/message-client": "^1.1.
|
|
48
|
-
"@cocreate/utils": "^1.
|
|
46
|
+
"@cocreate/crud-client": "^1.10.0",
|
|
47
|
+
"@cocreate/message-client": "^1.1.73",
|
|
48
|
+
"@cocreate/utils": "^1.10.0"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/src/index.js
CHANGED
|
@@ -110,6 +110,7 @@ async function checkDb(info, flag) {
|
|
|
110
110
|
if (string && flag != false) {
|
|
111
111
|
info.value = string;
|
|
112
112
|
info.start = 0;
|
|
113
|
+
info.clientId = clientId;
|
|
113
114
|
insertChange(info);
|
|
114
115
|
}
|
|
115
116
|
return string || '';
|
|
@@ -190,7 +191,7 @@ function insertChange(info, flag) {
|
|
|
190
191
|
function broadcastChange(info){
|
|
191
192
|
message.send({
|
|
192
193
|
room: "",
|
|
193
|
-
|
|
194
|
+
broadcastSender: 'false',
|
|
194
195
|
message: "crdt",
|
|
195
196
|
data: info
|
|
196
197
|
});
|
|
@@ -219,7 +220,7 @@ function persistChange(info) {
|
|
|
219
220
|
namespace: info.namespace,
|
|
220
221
|
room: info.room,
|
|
221
222
|
broadcast: info.broadcast,
|
|
222
|
-
|
|
223
|
+
broadcastSender: info.broadcastSender,
|
|
223
224
|
metadata: 'crdt-change'
|
|
224
225
|
});
|
|
225
226
|
}
|
|
@@ -321,7 +322,7 @@ async function updateText(info, flag) {
|
|
|
321
322
|
namespace: info.namespace,
|
|
322
323
|
room: info.room,
|
|
323
324
|
broadcast: info.broadcast,
|
|
324
|
-
|
|
325
|
+
broadcastSender: info.broadcastSender,
|
|
325
326
|
metadata: 'crdt-change'
|
|
326
327
|
});
|
|
327
328
|
}
|