@live-change/db-store-lmdb 0.1.20 → 0.5.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/lib/Store.js +2 -0
- package/package.json +4 -3
package/lib/Store.js
CHANGED
|
@@ -491,6 +491,8 @@ class Store {
|
|
|
491
491
|
try {
|
|
492
492
|
const obj = JSON.parse(json)
|
|
493
493
|
txn.del(this.lmdb, key)
|
|
494
|
+
const objectObservable = this.objectObservables.get(key)
|
|
495
|
+
if(objectObservable) objectObservable.set(null)
|
|
494
496
|
const rangeObservables = this.rangeObservablesTree.search([key, key])
|
|
495
497
|
for (const rangeObservable of rangeObservables) {
|
|
496
498
|
rangeObservable.deleteObject(obj)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db-store-lmdb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Database with observable data for live queries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@live-change/dao": "^0.2.22",
|
|
29
29
|
"@live-change/interval-tree": "^1.0.12",
|
|
30
30
|
"napi-macros": "^2.0.0",
|
|
31
|
-
"node-lmdb": "^0.
|
|
32
|
-
}
|
|
31
|
+
"node-lmdb": "^0.9.6"
|
|
32
|
+
},
|
|
33
|
+
"gitHead": "af756efb8db9ba90d79774786201cffe9c2162cf"
|
|
33
34
|
}
|