Skip to content

Releases: ciriousjoker/ts-localstorage

v3.1.0

20 Dec 22:53
199ba35
Compare
Choose a tag to compare
  • getItem() now returns non-nullable type if used with a LocalKey that has useDefaultValue: true #5

v3.0.0

01 Jun 00:05
6015b4d
Compare
Choose a tag to compare

BREAKING:

  • This package is now a pure ESM package. You can no longer use require() to import it.

v2.0.0

15 Mar 06:15
64e2904
Compare
Choose a tag to compare
  • Feature: custom converters
  • Feature: default values
  • Bugfixes: cleaned up lots of edge cases
  • Add tests
  • Deploy via CI
  • Add coverage & license badges

BREAKING:

  • Use new LocalKey("smth", 1337) instead of "smth" as LocalKey<number>
  • LocalStorage.key() now requires a sample value as its second parameter
  • Trying to store functions will now throw an error, although you shouldn't have done that to begin with