Skip to content

Commit

Permalink
Bump minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Sep 12, 2024
1 parent 114ddfc commit b2aaf9f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cross/kv",
"version": "0.16.5",
"version": "0.17.0",
"exports": {
".": "./mod.ts",
"./cli": "./src/cli/mod.ts"
Expand Down
3 changes: 2 additions & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit b2aaf9f

Please sign in to comment.