hyperbee2 1.1.0 → 1.1.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/README.md CHANGED
@@ -4,6 +4,9 @@
4
4
  npm install hyperbee2
5
5
  ```
6
6
 
7
+ Next major version for [hyperbee](https://github.com/holepunchto/hyperbee).
8
+ Will be merged in there and released a new major when fully done.
9
+
7
10
  ## Usage
8
11
 
9
12
  ```js
package/index.js CHANGED
@@ -148,7 +148,7 @@ class Hyperbee {
148
148
  for (let i = 0; i < keys.length; i++) {
149
149
  const k = tree.keys[i]
150
150
  const blk =
151
- k.seq === ptr.seq && k.core === ptr.core
151
+ k.seq === ptr.seq && k.core === 0 && ptr.core === 0
152
152
  ? block
153
153
  : await context.getBlock(k.seq, k.core, activeRequests)
154
154
  const d = blk.data[k.offset]
package/lib/write.js CHANGED
@@ -350,7 +350,7 @@ module.exports = class WriteBatch {
350
350
  const b = await this.tree.bootstrap()
351
351
  const n = update.node[0]
352
352
  if (b && b.context === n.context && b.core === n.core && b.seq === n.seq) return
353
- if (!b && n.isEmpty()) return
353
+ if (!b && n.value.isEmpty()) return
354
354
  }
355
355
 
356
356
  const length = context.core.length
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperbee2",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "btree",
5
5
  "main": "index.js",
6
6
  "files": [