@cocreate/crdt 1.23.2 → 1.23.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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.23.3](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.23.2...v1.23.3) (2023-10-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed @cocreate/message-client ([8cd41ca](https://github.com/CoCreate-app/CoCreate-crdt/commit/8cd41ca5059e0b2852aa9d0cf7038eb087eab996))
7
+
1
8
  ## [1.23.2](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.23.1...v1.23.2) (2023-10-17)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crdt",
3
- "version": "1.23.2",
3
+ "version": "1.23.3",
4
4
  "description": "CoCreate crdt",
5
5
  "author": "CoCreate LLC",
6
6
  "license": "AGPL-3.0",
@@ -42,7 +42,6 @@
42
42
  "dependencies": {
43
43
  "@cocreate/crud-client": "^1.28.4",
44
44
  "@cocreate/local-storage": "^1.10.5",
45
- "@cocreate/message-client": "^1.8.3",
46
45
  "@cocreate/utils": "^1.25.3"
47
46
  }
48
47
  }
package/src/index.js CHANGED
@@ -22,7 +22,6 @@
22
22
 
23
23
  /*globals config, atob, btoa, localStorage, CustomEvent*/
24
24
  import crud from '@cocreate/crud-client';
25
- import message from '@cocreate/message-client';
26
25
  import uuid from '@cocreate/uuid';
27
26
  import localStorage from '@cocreate/local-storage';
28
27
 
@@ -222,10 +221,10 @@ function insertChange(data, flag) {
222
221
  }
223
222
 
224
223
  function broadcastChange(data) {
225
- message.send({
224
+ crud.socket.send({
225
+ method: "crdt",
226
226
  broadcastSender: false,
227
227
  broadcastBrowser: true,
228
- message: "crdt",
229
228
  data
230
229
  });
231
230
  }
@@ -268,7 +267,7 @@ function persistChange(data) {
268
267
  crud.send(Data);
269
268
  }
270
269
 
271
- message.listen('crdt', function (response) {
270
+ crud.socket.listen('crdt', function (response) {
272
271
  let data = response.data
273
272
  let docName = getDocName(data);
274
273
  let doc = docs.get(docName);