Skip to content

Releases: astoilkov/use-local-storage-state

v5.0.0

07 Oct 19:52
Compare
Choose a tag to compare
  • ✨ support for "undefined", "null" values and support for resetting d58160e

v4.0.0...v5.0.0

v4.0.0

03 Jul 07:54
Compare
Choose a tag to compare
  • πŸ› compiler target causing error in Edge, fixes #7 0ca3568
  • βœ… add test for handling invalid localStorage data 647cbb7

v3.0.1...v4.0.0

3.0.1

04 May 10:46
Compare
Choose a tag to compare
  • ✏️ update Why section ad49a0c

v3.0.0...v3.0.1

3.0.0

03 May 10:09
Compare
Choose a tag to compare
  • ✨ implement isPersistent property 04457e7
  • 🐎 don't add/remove event listener on every render, resolves #6 331641f
  • ✨ accept a callback for the default value, just like React setState() 67b347e
  • ✨ handle local storage edge cases f36cbb1
  • ✨ Support server-side rendering 0cbd857

v2.0.0...v3.0.0

v2.0.0

24 Mar 14:20
Compare
Choose a tag to compare
  • ✨ throw an error to promote createLocalStorageStateHook() 68953dd

Using useLocalStorageState() multiple times with the same key actually doesn't synchronize. createLocalStorageStateHook() should be used instead. I am introducing an error to guide users to use the correct API.

v1.1.3...v2.0.0

v1.1.3

21 Mar 16:34
Compare
Choose a tag to compare
  • ♻️ rename prettierrc file from toml to yaml 3eab7a4
  • ♻️ add function return types cfd4c24

v1.1.2...v1.1.3

v1.1.2

19 Mar 12:40
Compare
Choose a tag to compare
  • πŸ— add types field in package.json 0060654

v1.1.1...v1.1.2

v1.1.1

19 Mar 07:02
Compare
Choose a tag to compare
  • ✏️ add #WET tags to duplicate code 0df7361
  • ✏️ two sentences instead of one 9bcc0d8
  • ✏️ improve well tested point text 9b95a7d
  • ✏️ improve one of the points 96f4ddb
  • ✏️ update text for example in Usage section 8d63e9c
  • ✏️ update slogan e88c3a5
  • πŸ— add engines field in package.json a843124
  • ✏️ change "but" with "while" b7e8061

v1.1.0...v1.1.1

1.1.0

15 Mar 14:11
Compare
Choose a tag to compare
  • ✨ add code coverage support & badge
  • βœ… add 100% code coverage

v1.0.3...v1.1.0

1.0.3

15 Mar 11:16
Compare
Choose a tag to compare
  • πŸ› building doesn't work b731765
  • πŸ—exclude test.ts – we don't need to transpile it 42b4760
  • πŸ— run ./cc-test-reporter after-build in debug mode 3448ef7
  • πŸ— add --debug flag to ./cc-test-reporter before-build 735e757
  • βœ… add other properties from the example 4b9a606
  • πŸ”₯ remove environment variable from .travis.yml e577eda
  • βœ… try with a different template for Code Climate coverage using Travis 51cc7a3
  • βœ… add Code Climate test coverage to Travis f34aaad
  • βœ… add tests 29490d3
  • ✏️ add badge for Travis build 7332ba7
  • πŸ— add .travis.yml to prepare for adding tests acc51bb

v1.0.2...v1.0.3