@cocreate/crdt 1.21.1 → 1.21.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 +7 -0
- package/package.json +1 -1
- package/src/index.js +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.21.2](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.21.1...v1.21.2) (2023-09-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* renamed filter to $filter and use as object.$filter ([ee6eba4](https://github.com/CoCreate-app/CoCreate-crdt/commit/ee6eba4444cfe48dae6aae1b8d1d0adf4e26e047))
|
|
7
|
+
|
|
1
8
|
## [1.21.1](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.21.0...v1.21.1) (2023-08-21)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -62,12 +62,14 @@ async function getDoc(data) {
|
|
|
62
62
|
let response = await crud.send({
|
|
63
63
|
method: "read.object",
|
|
64
64
|
array: "crdt-transactions",
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
object: {
|
|
66
|
+
$filter: {
|
|
67
|
+
query: [{
|
|
68
|
+
key: 'docName',
|
|
69
|
+
operator: "$eq",
|
|
70
|
+
value: docName
|
|
71
|
+
}]
|
|
72
|
+
}
|
|
71
73
|
}
|
|
72
74
|
});
|
|
73
75
|
if (response.object && response.object[0] && response.object[0].changeLog) {
|