Skip to content

Releases: shahradelahi/storage-box

v1.0.2

02 Sep 02:54
c34023a
Compare
Choose a tag to compare

Patch Changes

  • b478417: fix: Trapping the exit signal in FsDriver

v1.0.1

02 Sep 00:44
c422838
Compare
Choose a tag to compare

Patch Changes

  • 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

v1.0.0

31 May 16:16
1d407c6
Compare
Choose a tag to compare

Major Changes

  • 789d49a: BREAKING: The exported paths of the package have changed for both BrowserDriver and FsDriver.

    - 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 to lgetall

  • 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 list

    import { 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 });

Patch Changes

  • 789d49a: fix: added getall to extract entry storage as a record/key-value object
  • f4ede69: feat: added pushex and exists operations for list