@cocreate/crdt 1.27.1 → 1.27.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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.27.2](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.27.1...v1.27.2) (2024-01-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update to support new query system ([2eeba4e](https://github.com/CoCreate-app/CoCreate-crdt/commit/2eeba4e722c4ffdfef1a1ba6e59153d0d77eb6a5))
7
+
1
8
  ## [1.27.1](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.27.0...v1.27.1) (2023-12-09)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crdt",
3
- "version": "1.27.1",
3
+ "version": "1.27.2",
4
4
  "description": "CoCreate crdt",
5
5
  "author": "CoCreate LLC",
6
6
  "license": "AGPL-3.0",
package/src/index.js CHANGED
@@ -63,11 +63,7 @@ async function getObject(data) {
63
63
  array: "crdt",
64
64
  object: {
65
65
  $filter: {
66
- query: [{
67
- key: 'name',
68
- operator: "$eq",
69
- value: name
70
- }],
66
+ query: { name },
71
67
  limit: 1
72
68
  }
73
69
  }
@@ -254,9 +250,7 @@ function persistChange(data, change) {
254
250
  }
255
251
  },
256
252
  $filter: {
257
- query: [
258
- { key: 'name', value: name, operator: '$eq', index: true }
259
- ],
253
+ query: { name },
260
254
  limit: 1
261
255
  },
262
256
  upsert: true,