Releases: cross-org/kv
Releases · cross-org/kv
0.17.3
0.17.2
0.17.1
0.17.1
- Fix missig awaits when closing file descriptor
- Ensure file is locked by the current process before writing anything
Full Changelog: 0.17.0...0.17.1
0.17.0
0.17.0
- Add parameter
ignoreTransactionErrors
toopen()
andsync()
. - Make cli
open
andopen:noindex
ignore errors by default. - Add cli command
repair
- Add optional parameter
ignoreReadErrors
to commandsopen
,sync
,scan
andvacuum
- Fix problem with murmurHash implementation
- Allow using different hashing algorithms per database version
Full Changelog: 0.16.5...0.17.0
0.16.5
Changes
- Makes cli commands
open
andclose
more resilient to unexpected behavior. - Dependency update.
Full Changelog: 0.16.4...0.16.5
0.16.4
0.16.3
0.16.3
- Added
KV.defer(promiseToHandle, [errorHandler], [timeoutMs])
method to allow
non-awaited promises to be tracked and settled duringKV.close()
.errorHandler
(optional): A function to handle errors that occur during
promise resolution/rejection. If not provided, errors will silently ignored.timeoutMs
(optional): A timeout (in milliseconds) for promise resolution.
If the promise doesn't settle within this time duringKV.close()
, a
warning will be logged. Defaults to 5000ms.
- Fix cli tool not being able to open any database after a failed open
- Code refactors
Full Changelog: 0.16.2...0.16.3
0.16.2
0.16.1
0.16.0
Breaking change, databases created using earlier versions is not compatible with 0.16.0 and up.
Changes
- Use 32 bit MurmurHash3 (from new dependency npm:ohash) instead of SHA-1 for transaction integrity check, saving time and storage
- Precalculate the Uint32Array of the transaction signature, improving performance
- Use CBOR-encoding of key instead of custom implementation, improving performance
- Avoid copying arraybuffers in certain situations
- Prefetch data on transaction read, severely reducing the number of disk reads