@live-change/db 0.9.85 → 0.9.86

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.
@@ -125,6 +125,7 @@ class ChangeStream {
125
125
  if(typeof range === 'string') {
126
126
  range = { gte: range, lte: range + '\xFF\xFF\xFF\xFF' }
127
127
  }
128
+ range.limit = 1
128
129
  const count = await this.count(range)
129
130
  if(count) {
130
131
  await pipe.change(existingObj, null, id, timestamp)
package/lib/Index.js CHANGED
@@ -530,12 +530,12 @@ class Index extends Table {
530
530
  return this.startPromise
531
531
  }
532
532
  async startIndexInternal() {
533
- console.error("STARTING INDEX", this.name, "IN DATABASE", this.database.name)
533
+ debug("STARTING INDEX", this.name, "IN DATABASE", this.database.name)
534
534
  debug("EXECUTING INDEX CODE", this.name)
535
535
  this.scriptContext = this.database.createScriptContext({
536
536
  /// TODO: script available routines
537
537
  })
538
- console.log("COMPILE INDEX CODE", this.code)
538
+ debug("COMPILE INDEX CODE", this.code)
539
539
  const queryFunction = this.scriptContext.getOrCreateFunction(this.code,
540
540
  `userCode:${this.database.name}/indexes/${this.name}`)
541
541
  if(typeof queryFunction != 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/db",
3
- "version": "0.9.85",
3
+ "version": "0.9.86",
4
4
  "description": "Database with observable data for live queries",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,8 +22,8 @@
22
22
  "type": "module",
23
23
  "homepage": "https://github.com/live-change/live-change-stack",
24
24
  "devDependencies": {
25
- "@live-change/db-store-level": "^0.9.85",
26
- "@live-change/db-store-lmdb": "^0.9.85",
25
+ "@live-change/db-store-level": "^0.9.86",
26
+ "@live-change/db-store-lmdb": "^0.9.86",
27
27
  "minimist": ">=1.2.3",
28
28
  "next-tick": "^1.1.0",
29
29
  "rimraf": "^5.0.5",
@@ -32,9 +32,9 @@
32
32
  "websocket-extensions": ">=0.1.4"
33
33
  },
34
34
  "dependencies": {
35
- "@live-change/dao": "^0.9.85",
35
+ "@live-change/dao": "^0.9.86",
36
36
  "get-random-values": "^1.2.2",
37
37
  "node-interval-tree": "^1.3.3"
38
38
  },
39
- "gitHead": "126afb0aad3ab6e03aa5742726f429c95c46783a"
39
+ "gitHead": "7b0013ef101d9033402eeec45fd1be60e151aada"
40
40
  }