Skip to content

Releases: andrewdku/node-sqlite-kv

v1.1.0

23 Mar 22:23

Choose a tag to compare

  • Added setnx() method
  • Fixed npm included files

v1.0.0

23 Mar 12:31

Choose a tag to compare

  • undefined is now returned if a value doesn't exist, instead of null
  • Added KVSync#size(), KVSync#keys(), and KVSync#values() methods
  • Added open option to KVSyncProps
  • Added the option to set a custom table name (overriding the default of kv)
  • Fixed issues with the database's open/closed state
  • Renamed journalModes to JournalModes
  • Renamed KVSyncOptions to KVSyncProps

v0.4.0

06 Feb 22:27

Choose a tag to compare

  • Ability to manually open/close the database
  • journalModes turned into an enum (as const object) rather than an array
  • Refined KVSync-specific errors and error messages
  • Updated default journal mode (WAL for persistent KVs, DELETE for in-memory)
  • Fixes for transactions not properly working

v0.3.1

02 Feb 19:48

Choose a tag to compare

  • Fixed transactions not working properly
  • KVSync#set() no longer accepts undefined values (use KVSync#delete())

v0.3.0

02 Feb 19:06
4ddc354

Choose a tag to compare

  • Fixed issues with KVSync#set() not accepting falsy values
  • Fixed transaction instance not fully mirroring KVSync
  • Updated error messages
  • Updated JSDoc

v0.2.2

01 Feb 16:47

Choose a tag to compare

  • Fix errors regarding nonexistent database files

v0.2.1

01 Feb 14:55

Choose a tag to compare

  • Added transactions via KVSync#transaction()
  • Updated KV options & added journal modes

v0.1.0

01 Feb 11:27

Choose a tag to compare

  • Added KVSync class

Usage example:

import { KVSync } from "node-sqlite-kv";
const kv = new KVSync(":memory:");

kv.set("key", "value");
kv.get("key"); // value
kv.all(); // [{ key: "key", value: "value" }]
kv.delete("key");
kv.clear();