@cocreate/crdt 1.18.9 → 1.18.11

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,17 @@
1
+ ## [1.18.11](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.18.10...v1.18.11) (2023-05-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([61f5f3c](https://github.com/CoCreate-app/CoCreate-crdt/commit/61f5f3cc8d5d8989c07a5495da4721013844dbfc))
7
+
8
+ ## [1.18.10](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.18.9...v1.18.10) (2023-05-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update packages to latest version. This commit updates various packages in the dependencies section of the package.json file to their latest published versions, thereby fixing multiple bugs and improving overall performance. ([3502d86](https://github.com/CoCreate-app/CoCreate-crdt/commit/3502d8665bc432b780d6d76745c9b7469da28cc7))
14
+
1
15
  ## [1.18.9](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.18.8...v1.18.9) (2023-05-10)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crdt",
3
- "version": "1.18.9",
3
+ "version": "1.18.11",
4
4
  "description": "CoCreate crdt",
5
5
  "author": "CoCreate LLC",
6
6
  "license": "SEE LICENSE",
@@ -41,9 +41,9 @@
41
41
  "webpack-log": "^3.0.1"
42
42
  },
43
43
  "dependencies": {
44
- "@cocreate/crud-client": "^1.20.4",
45
- "@cocreate/local-storage": "^1.6.8",
46
- "@cocreate/message-client": "^1.3.6",
47
- "@cocreate/utils": "^1.20.6"
44
+ "@cocreate/crud-client": "^1.21.4",
45
+ "@cocreate/local-storage": "^1.7.2",
46
+ "@cocreate/message-client": "^1.3.10",
47
+ "@cocreate/utils": "^1.20.9"
48
48
  }
49
49
  }
package/src/index.js CHANGED
@@ -140,7 +140,7 @@ function insertChange(data, flag) {
140
140
  let lastChange = changeLog[changeLog.length - 1];
141
141
  if (lastChange && change.datetime && lastChange.datetime){
142
142
  if (change.datetime < lastChange.datetime){
143
- // ToDo: insert change at index position and update start and end postions for every element after insert
143
+ // TODO: insert change at index position and update start and end postions for every element after insert
144
144
  console.log('requires changeLog rebuild');
145
145
  }
146
146
  if (flag != 'replace') {
@@ -170,7 +170,7 @@ function insertChange(data, flag) {
170
170
  change.removedValue = string.substring(change.start, change.length);
171
171
 
172
172
  if (flag == 'replace') {
173
- // ToDo get current string and create new changeLog array then push new change
173
+ // TODO get current string and create new changeLog array then push new change
174
174
  changeLog = [change];
175
175
  doc.set('changeLog', changeLog)
176
176
  } else {
@@ -265,7 +265,7 @@ crud.listen('sync', function(data) {
265
265
 
266
266
  doc.set('changeLog', Data.changeLog)
267
267
  doc.set('text', Data.text)
268
- // ToDo: compare modified dates to check if arrays need to merged and orderd by date or if we just use server
268
+ // TODO: compare modified dates to check if arrays need to merged and orderd by date or if we just use server
269
269
  localChange(Data.crud, Data.text)
270
270
  console.log('crdtSync')
271
271
  }