Skip to content

Releases: Lightspots/StorageProvider

2.0.1: Fix "0" becomes undefined

28 Nov 19:53
195e934
Compare
Choose a tag to compare

Fixes:

  • getAsNumber(key) with a value of "0" in the store returned undefined, now it returns 0

2.0.0: Updated typings

04 Oct 15:28
925c48c
Compare
Choose a tag to compare

Updated typings

object => Record<string, unknown>
any => StorageValue | StorageValue[]
type StorageValue = string | number | boolean | Record<string, unknown>;

2.0.0-beta.1

28 Nov 11:49
fe5e5da
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release

Updated typings

object => Record<string, unknown>
any => StorageValue | StorageValue[]
type StorageValue = string | number | boolean | Record<string, unknown>;

1.4.1: Decode "+" as space

21 Dec 12:18
376501c
Compare
Choose a tag to compare
Merge pull request #7 from Grisu118/fix-encoding-of-plus-sign

:bug: [url] "+" is a space in url params, so we need to decode this a…

1.4.0: isEmtpy() and size()

12 Nov 19:08
Compare
Choose a tag to compare

Add size and isEmpty methods to Storage interface

1.3.0 Add support for transactions to url storage

12 Jun 12:13
d5f399b
Compare
Choose a tag to compare
  • Adding set method which takes an { [index:string]: any } object to set more than one key value pair in one call. An urlStorage with HistoryMode.PUSH will only create one new history entry.
  • Support del method with an array argument to delete multiple keys at once. Same behavior like above

1.2.1 Support for HistoryMode

10 Jun 13:54
Compare
Choose a tag to compare

Create a urlStorage with two different Modes.

  • REPLACE: Will replace the existing url on set and delete operations
  • PUSH: Will push a the url with the new params to the history.

Initial Release

22 Feb 21:06
Compare
Choose a tag to compare
1.0.0

+ Add gitignore and add repo url