Releases: shahradelahi/storage-box
Releases · shahradelahi/storage-box
v1.0.2
v1.0.1
v1.0.0
Major Changes
-
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.
Minor Changes
-
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 });