@cocreate/indexeddb 1.22.0 → 1.22.1
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 +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.22.1](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.22.0...v1.22.1) (2024-02-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update object only returns updated values ([005f9ea](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/005f9ea18d8fb2e15b74c4101c11f8f73bb49f4e))
|
|
7
|
+
|
|
1
8
|
# [1.22.0](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.21.2...v1.22.0) (2024-02-14)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -611,8 +611,9 @@ function openCursor(objectStore, range, direction, data, newData, isFilter, inde
|
|
|
611
611
|
data[type][i] = await add(objectStore, data[type][i])
|
|
612
612
|
} else if (data.method == 'object.update') {
|
|
613
613
|
let update = createUpdate((cursor && cursor.value) ? cursor.value : {}, data[type][i], globalOperators)
|
|
614
|
-
if (update)
|
|
615
|
-
|
|
614
|
+
if (update) {
|
|
615
|
+
await put(objectStore, update)
|
|
616
|
+
}
|
|
616
617
|
}
|
|
617
618
|
data[type][i] = { ...reference, ...data[type][i] }
|
|
618
619
|
|