@cocreate/indexeddb 1.22.1 → 1.22.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 +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.22.2](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.22.1...v1.22.2) (2024-02-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update responds with update request not whole document ([1a0f2f0](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/1a0f2f0907aa62e3588621cc7d53260c81eb1c51))
|
|
7
|
+
|
|
1
8
|
## [1.22.1](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.22.0...v1.22.1) (2024-02-17)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -636,7 +636,8 @@ function openCursor(objectStore, range, direction, data, newData, isFilter, inde
|
|
|
636
636
|
if (data.method == 'object.update') {
|
|
637
637
|
let update = createUpdate(cursor.value, data[type][i], globalOperators)
|
|
638
638
|
if (update)
|
|
639
|
-
|
|
639
|
+
await cursorUpdate(cursor, update)
|
|
640
|
+
result = data[type][i]
|
|
640
641
|
// result = cursor.update(update)
|
|
641
642
|
hasUpdated = true
|
|
642
643
|
// set dotnotation for keys with $operators for items that end in [] to be used by socket.id
|