Skip to content

Releases: cross-org/kv

0.15.11

09 Jun 22:16
Compare
Choose a tag to compare

Changes

  • Remove option doLock from .sync()
  • Remove unused code from key.ts
  • Add benchmark for getting data that does not exist
  • Rename internal function toAbsolutePath to toNormalizedAbsolutePath and
    clarify code with additional comments
  • Adds various missing test to reduce the risk for regression bugs

Full Changelog: 0.15.10...0.15.11

0.15.10

07 Jun 20:30
Compare
Choose a tag to compare

Fixes

  • Do not assume that the ledger is open for the full duration of each method call, handle errors more gracefully.

0.15.9

07 Jun 19:37
Compare
Choose a tag to compare

Fixes

  • Fix isOpen to return false while closing the database

Full Changelog: 0.15.8...0.15.9

0.15.8

04 Jun 19:45
Compare
Choose a tag to compare

Changes

  • Remove sync result noop as isn't used anywhere anymore.
  • Adds fetchData option to scan. Setting this to false enables faster
    retrieval of transaction metadata.
  • Change the stats cli command to use the new fast scan.
  • Fix ledgerPath not being reset on close.
  • Adds missing commands to the cli help output.
  • Remove a.bridge() // this is bridge-comments

Full Changelog: 0.15.7...0.15.8

0.15.7

03 Jun 18:57
Compare
Choose a tag to compare

Changes

  • Do not freeze the database during vacuum
  • Reduce time in locked state during vacuum
  • Only unlock old ledger after successful vacuum
  • Only re-open ledger after successful vacuum

Fixes

  • Fixed Deno panic on decoding data from cache

0.15.6

31 May 20:25
Compare
Choose a tag to compare
  • Fixed order of transactions returned by iterate and listAll

0.15.5

31 May 18:47
Compare
Choose a tag to compare

Additions

  • Add argument reverse to iterate and listAll to allow almost instant
    queries for "last x transactions matching query y".
  • Reduce lock time on writing new transactions.
  • Optimize the logic of writing new transactions.

Fixes

  • Make sure the results of iterate and listAll are returned in insertion
    order, or reverse insertion order if reverse is set.

Full Changelog: 0.15.4...0.15.5

0.15.4

30 May 19:53
Compare
Choose a tag to compare

Changes

  • Fix for prompt totally blocking the event loop in the cli tool, preventing
    synchronization.
  • Make the watchdog slightly more invincible.

0.15.3

29 May 21:09
Compare
Choose a tag to compare

Changes

  • Internal fix; Always unblock sync even if a vacuum fails
  • Added sync cli command, to force a synchronization of the cli instance.

0.15.2

29 May 18:22
Compare
Choose a tag to compare

Additions

  • Added a constant factor LEDGER_CACHE_MEMORY_FACTOR to approximate the actual memory used by the ledger cache, based on raw data size.
  • Added a recursive option to .scan() to allow recursively counting transactions in the ledger.
  • Added unlock-command to the cli interface, to allow manually unlocking a database from a crashed process.

Changes

  • Renamed the CLI command sysinfo to stats and added ledger statistics.
  • Increase LOCK_STALE_TIMEOUT_MS from 60 seconds to 3 hours, to allow longer running queries.

Fixes

  • Fixed a problem where records were overwritten during large atomic transaction writes.
  • Improved error handling in cli commands.
  • Fixed error where ledger was unlocked instantly after a failed locking operation.