diff --git a/CHANGELOG.md b/CHANGELOG.md index 24c2f78..241c07a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## Unrelesed + +## Changes + +- Remove sync result `noop` as isn't used anywhere anymore + +## Fixes + +- Fixed Deno panic on decoding data from cache + ## 0.15.7 ## Changes diff --git a/README.md b/README.md index f490fd7..6f9550f 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,6 @@ await kvStore.open("db/mydatabase.db"); kvStore.on("sync", (eventData) => { switch (eventData.result) { case "ready": // No new updates - case "blocked": // Synchronization temporarily blocked (e.g., during vacuum) case "success": // Synchronization successful, new transactions added case "ledgerInvalidated": // Ledger recreated, database reopened and index resynchronized case "error": // An error occurred during synchronization diff --git a/src/lib/kv.ts b/src/lib/kv.ts index b6ad12b..d4078be 100644 --- a/src/lib/kv.ts +++ b/src/lib/kv.ts @@ -18,7 +18,6 @@ import { EventEmitter } from "node:events"; * Represents the status of a synchronization operation between the in-memory index and the on-disk ledger. */ export type KVSyncResultStatus = - | "noop" /** No operation was performed (e.g., ledger not open). */ | "ready" /** The database is ready, no new data to synchronize. */ | "success" /** Synchronization completed successfully, new data was added. */ | "ledgerInvalidated" /** The ledger was invalidated and needs to be reopened. */