@cocreate/crdt 1.27.4 → 1.27.6

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,19 @@
1
+ ## [1.27.6](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.27.5...v1.27.6) (2024-08-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * if upsert undefined set true ([a50f5eb](https://github.com/CoCreate-app/CoCreate-crdt/commit/a50f5eb8e5ac1ff6d1d086f5c2aed6e3d769324d))
7
+
8
+ ## [1.27.5](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.27.4...v1.27.5) (2024-06-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump cocreate dependencies ([678a8de](https://github.com/CoCreate-app/CoCreate-crdt/commit/678a8de38744e313b07afb8f4c54677c0e0bdc86))
14
+ * comment sync due to bug ([7bfc744](https://github.com/CoCreate-app/CoCreate-crdt/commit/7bfc744e4af53cafc2564d0d81e16860374174f3))
15
+ * svg icon class ([dade9df](https://github.com/CoCreate-app/CoCreate-crdt/commit/dade9dfc4db9f377aacf0d1ed6fee61fa49e5792))
16
+
1
17
  ## [1.27.4](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.27.3...v1.27.4) (2024-04-29)
2
18
 
3
19
 
package/docs/index.html CHANGED
@@ -62,41 +62,31 @@
62
62
  href="https://github.com/CoCreate-app/CoCreate-crdt"
63
63
  target="_blank"
64
64
  class="margin-right:15px"
65
- ><i
66
- class="height:20px fill:#505050"
67
- src="/assets/svg/github.svg"></i
65
+ ><i src="/assets/svg/github.svg"></i
68
66
  ></a>
69
67
  <a
70
68
  class="margin-right:15px share"
71
69
  share-network="twitter"
72
70
  title="Share on twitter"
73
- ><i
74
- class="height:20px fill:#505050"
75
- src="/assets/svg/twitter.svg"></i
71
+ ><i src="/assets/svg/twitter.svg"></i
76
72
  ></a>
77
73
  <a
78
74
  class="margin-right:15px share"
79
75
  share-network="facebook"
80
76
  title="Share on Facebook"
81
- ><i
82
- class="height:20px fill:#505050"
83
- src="/assets/svg/facebook.svg"></i
77
+ ><i src="/assets/svg/facebook.svg"></i
84
78
  ></a>
85
79
  <a
86
80
  class="margin-right:15px share"
87
81
  share-network="instagram"
88
82
  title="Share on instagram"
89
- ><i
90
- class="height:20px fill:#505050"
91
- src="/assets/svg/instagram.svg"></i
83
+ ><i src="/assets/svg/instagram.svg"></i
92
84
  ></a>
93
85
  <a
94
86
  class="margin-right:15px share"
95
87
  share-network="share"
96
88
  title="Share on share"
97
- ><i
98
- class="height:20px fill:#505050"
99
- src="/assets/svg/share-alt.svg"></i
89
+ ><i src="/assets/svg/share-alt.svg"></i
100
90
  ></a>
101
91
  </div>
102
92
  </div>
@@ -215,7 +205,7 @@
215
205
  toggle="code-height"
216
206
  toggle-selector="#demo-code"
217
207
  ><i
218
- class="height:18px fill:#505050"
208
+ class="height:18px"
219
209
  src="/assets/svg/eye.svg"></i
220
210
  ></a>
221
211
  <a
@@ -226,18 +216,14 @@
226
216
  hide="#eye-slash"
227
217
  toggle="code-height"
228
218
  toggle-selector="#demo-code"
229
- ><i
230
- class="height:20px fill:#505050"
231
- src="/assets/svg/eye-slash.svg"></i
219
+ ><i src="/assets/svg/eye-slash.svg"></i
232
220
  ></a>
233
221
  <a
234
222
  class="margin-right:10px"
235
223
  id="code"
236
224
  show="#code-slash"
237
225
  hide="#code, #demo-code"
238
- ><i
239
- class="height:20px fill:#505050"
240
- src="/assets/svg/code.svg"></i
226
+ ><i src="/assets/svg/code.svg"></i
241
227
  ></a>
242
228
  <a
243
229
  class="margin-right:10px"
@@ -246,7 +232,7 @@
246
232
  show="#code, #demo-code"
247
233
  hide="#code-slash"
248
234
  ><i
249
- class="display:flex height:18px fill:#505050"
235
+ class="height:18px"
250
236
  src="/assets/svg/code.svg"></i
251
237
  ></a>
252
238
  <a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crdt",
3
- "version": "1.27.4",
3
+ "version": "1.27.6",
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.33.8",
44
- "@cocreate/local-storage": "^1.14.3",
45
- "@cocreate/utils": "^1.33.6"
43
+ "@cocreate/crud-client": "^1.33.9",
44
+ "@cocreate/local-storage": "^1.15.0",
45
+ "@cocreate/utils": "^1.33.7"
46
46
  }
47
47
  }
package/src/index.js CHANGED
@@ -278,8 +278,8 @@ crud.socket.listen('crdt', function (response) {
278
278
  }
279
279
  });
280
280
 
281
- crud.listen('object.update', (data) => sync(data))
282
- crud.listen('object.delete', (data) => sync(data))
281
+ // crud.listen('object.update', (data) => sync(data))
282
+ // crud.listen('object.delete', (data) => sync(data))
283
283
 
284
284
  function sync(data) {
285
285
  if (data.clientId === clientId)
@@ -383,6 +383,8 @@ async function updateText(data, flag) {
383
383
  insertChange(data, flag);
384
384
 
385
385
  if (data.crud != 'false' && data.save != 'false') {
386
+ if (data.upsert === undefined)
387
+ data.upsert = true
386
388
  let wholestring = await getText(data);
387
389
  crud.send({
388
390
  method: 'object.update',