@cocreate/indexeddb 1.22.2 → 1.22.4
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 +14 -0
- package/package.json +2 -2
- package/src/index.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.22.4](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.22.3...v1.22.4) (2024-04-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump cocreate dependencies ([c72d741](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/c72d74116642cad83b0a41132064d0f2c54aee97))
|
|
7
|
+
|
|
8
|
+
## [1.22.3](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.22.2...v1.22.3) (2024-02-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* $update operator containg updated objects ([8ed0c30](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/8ed0c30a6269d042d82d26b32ab6d363c830e114))
|
|
14
|
+
|
|
1
15
|
## [1.22.2](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.22.1...v1.22.2) (2024-02-18)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/indexeddb",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.4",
|
|
4
4
|
"description": "A simple indexeddb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indexeddb",
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"webpack-log": "^3.0.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cocreate/utils": "^1.
|
|
61
|
+
"@cocreate/utils": "^1.33.6"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/src/index.js
CHANGED
|
@@ -613,6 +613,7 @@ function openCursor(objectStore, range, direction, data, newData, isFilter, inde
|
|
|
613
613
|
let update = createUpdate((cursor && cursor.value) ? cursor.value : {}, data[type][i], globalOperators)
|
|
614
614
|
if (update) {
|
|
615
615
|
await put(objectStore, update)
|
|
616
|
+
data[type][i].$update = update
|
|
616
617
|
}
|
|
617
618
|
}
|
|
618
619
|
data[type][i] = { ...reference, ...data[type][i] }
|
|
@@ -638,6 +639,7 @@ function openCursor(objectStore, range, direction, data, newData, isFilter, inde
|
|
|
638
639
|
if (update)
|
|
639
640
|
await cursorUpdate(cursor, update)
|
|
640
641
|
result = data[type][i]
|
|
642
|
+
result.$update = update
|
|
641
643
|
// result = cursor.update(update)
|
|
642
644
|
hasUpdated = true
|
|
643
645
|
// set dotnotation for keys with $operators for items that end in [] to be used by socket.id
|