diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ce46dc..21f5313 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Unrelesed +## 0.15.9 + +- Fix `isOpenĀ“ to return false while closing the database + ## 0.15.8 - Remove sync result `noop` as isn't used anywhere anymore. diff --git a/deno.json b/deno.json index baa4b0d..63e7e6e 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@cross/kv", - "version": "0.15.8", + "version": "0.15.9", "exports": { ".": "./mod.ts", "./cli": "./src/cli/mod.ts" @@ -10,7 +10,7 @@ "@cross/runtime": "jsr:@cross/runtime@^1.0.0", "@cross/test": "jsr:@cross/test@^0.0.9", "@cross/utils": "jsr:@cross/utils@^0.13.0", - "@std/assert": "jsr:@std/assert@^0.225.3", + "@std/assert": "jsr:@std/assert@^0.226.0", "@std/path": "jsr:@std/path@^0.225.1", "cbor-x": "npm:cbor-x@^1.5.9" }, diff --git a/src/lib/kv.ts b/src/lib/kv.ts index 8da3bc0..17ab9c2 100644 --- a/src/lib/kv.ts +++ b/src/lib/kv.ts @@ -461,7 +461,7 @@ export class KV extends EventEmitter { * @returns True if open, false if closed. */ public isOpen(): boolean { - return !!this.ledger && this.ledger.isOpen(); + return !this.aborted && !!this.ledger && this.ledger.isOpen(); } /**