From b2aaf9ffc4d40e1d7c82c535c7822aa5b1cae4a3 Mon Sep 17 00:00:00 2001 From: Hexagon Date: Fri, 13 Sep 2024 00:20:03 +0200 Subject: [PATCH] Bump minor version --- CHANGELOG.md | 2 +- deno.json | 2 +- src/lib/constants.ts | 3 ++- src/lib/ledger.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09e248c..805925b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Unreleased +## 0.17.0 - Add parameter `ignoreTransactionErrors` to `open()` and `sync()`. - Make cli `open` and `open:noindex` ignore errors by default. diff --git a/deno.json b/deno.json index 2f1a52c..e4f487e 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@cross/kv", - "version": "0.16.5", + "version": "0.17.0", "exports": { ".": "./mod.ts", "./cli": "./src/cli/mod.ts" diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 31ff179..b8c05bd 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -2,9 +2,10 @@ export const LOCK_DEFAULT_MAX_RETRIES = 32; export const LOCK_DEFAULT_INITIAL_RETRY_INTERVAL_MS = 30; // Increased with itself on each retry, so the actual retry interval is 20, 40, 60 etc. 32 and 20 become about 10 seconds total. export const LOCK_STALE_TIMEOUT_MS = 6 * 60 * 60 * 1000; // Automatically unlock a ledger that has been locked for more than 2*60*60*1000 = 2 hours. -export const LEDGER_CURRENT_VERSION: string = "B016"; +export const LEDGER_CURRENT_VERSION: string = "B017"; export const SUPPORTED_LEDGER_VERSIONS: string[] = [ LEDGER_CURRENT_VERSION, + "B016", ]; export const LEDGER_PREFETCH_BYTES = 50 * 1024; // Prefetch chunks of 50KB of data while reading the ledger export const LEDGER_MAX_READ_FAILURE_BYTES = 10 * 1024 * 1024; // Allow at most 10MB of read failures diff --git a/src/lib/ledger.ts b/src/lib/ledger.ts index ac7356c..d350c42 100644 --- a/src/lib/ledger.ts +++ b/src/lib/ledger.ts @@ -185,7 +185,7 @@ export class KVLedger { } if (!SUPPORTED_LEDGER_VERSIONS.includes(decoded.ledgerVersion)) { - throw new Error("Invalid database version"); + throw new Error("Unsupported database version"); } if (