- b478417: fix: Trapping the exit signal in
FsDriver
-
7f2a681: chore: Update dependencies
-
fa5ee22: fix: Type incompatibility with json/serializable types
Use
Jsonify<T>
if you need to transform a type to a JSON-compatible type
-
789d49a: BREAKING: The exported paths of the package have changed for both
BrowserDriver
andFsDriver
.- import { BrowserDriver, FsDriver } from 'storage-box'; + import { BrowserDriver } from 'storage-box/browser'; + import { FsDriver } from 'storage-box/node';
-
789d49a: BREAKING: the
list
method has been renamed tolgetall
-
ce4fd52: fix: Operation methods are now synchronous. The keyword
await
is no longer needed.
-
789d49a: feat:
createList
method to create an instance of a listimport { Client } from 'storage-box'; const c = new Client(); const nl = c.createList<number>(); for (let i = 0; i < 10; i++) { nl.push(i); } console.log(nl.range(0, 3));
-
789d49a: feat: Added
createHashMap
method to create an instance of a HashMap.import { Client } from 'storage-box'; const c = new Client(); interface Vertex { x: number; y: number; } const vhm = c.createHashMap<string, Vertex>(); vhm.set('a', { x: 1, y: 2 });
- 789d49a: fix: added
getall
to extract entry storage as a record/key-value object - f4ede69: feat: added
pushex
andexists
operations for list
- d9324db: fix: optimize typings and remove unnecessary dependencies (#28)
- 44643f4: chore(driver/fs): slightly improve
bouncy-write
feature (#26)