Skip to content

Releases: nas5w/use-local-storage

Release v3.0.0

24 Apr 01:18
d4adf58
Compare
Choose a tag to compare

Potentially-breaking change

  • A StorageEvent is now dispatched whenever state changes to allow other instances of the hook within the same browser to get updated.

Non-breaking changes

  • Update repo structure
  • Update dev dependencies

Release v2.3.6

19 Feb 14:36
Compare
Choose a tag to compare
  • Fixes bug where the hook would attempt to serialize undefined. Now, undefined removes the item from local storage.

Version 2.2.6

08 Jan 02:45
Compare
Choose a tag to compare

Instead of logging to the console that window is undefined, we just do a check for window first and fail silently if it's not available. This makes SSR builds a bit cleaner.

Bump jest major version and some dev deps security warnings

22 Oct 12:22
Compare
Choose a tag to compare

Bump parse path dependency

20 Aug 02:50
Compare
Choose a tag to compare
v2.2.4

Bump trivial version

Dependency update

06 Aug 00:24
Compare
Choose a tag to compare

Bump dependency version

Release v2.2.1

08 May 18:08
a9a6a2a
Compare
Choose a tag to compare
  • Adds storage event listener to allow syncing across tabs

Release v2.1.1

19 Mar 01:16
a3f0947
Compare
Choose a tag to compare
  • Move react dependency to peerDependency
  • Only require React v16.8.1 or later as a peer dependency since that's when hooks were released

Release v2.0.0

13 Jan 01:29
da4ce75
Compare
Choose a tag to compare
  • Simplify hook interface to disallow changing of key.
  • Bumped major version number to 2 since this changes the interface.

Release v1.1.0

12 Jan 15:06
Compare
Choose a tag to compare
  • Allows for callback function in value setter