Skip to content

Releases: astoilkov/use-local-storage-state

18.1.2

20 Dec 09:30
Compare
Choose a tag to compare
  • ✏️ improve docs
  • ✏️ fix badge
  • πŸ— simpler condition + less bundle size b3cfa46

v18.1.1...v18.1.2

18.1.1

09 Aug 10:19
Compare
Choose a tag to compare
  • ✨ Throw an error when React 17 is used with the React 18 version. The message includes a way to fix it by installing the 17 version of the hook. e6cf1ad

v18.1.0...v18.1.1

18.1.0

08 Jun 08:17
Compare
Choose a tag to compare
  • ✨ new options.serializer option
  • ✨ export LocalStorageOptions type 4f82a84
  • πŸ— move to GitHub actions for CI
  • ✏️ remove Alternatives section from readme because these aren't good alternatives 7469924

v18.0.0...v18.1.0

18.0.0

28 May 15:10
Compare
Choose a tag to compare
  • ✨ React 18 support
  • πŸ”€ For React 17 support, you should do npm install use-local-storage-state@17. See the react-17 branch.
  • πŸ”€ Removed ssr option. It's no longer needed. SSR is always enabled.

v18.0.0-0...v18.0.0

18.0.0-0

28 May 06:35
Compare
Choose a tag to compare
18.0.0-0 Pre-release
Pre-release
  • ✨ React 18 support

v17.0.1...v18.0.0-0

17.2.0

28 May 05:51
Compare
Choose a tag to compare
  • πŸ”€ rename crossSync option to storageSync 0ced3cb

v17.1.0...v17.2.0

17.1.0

28 May 05:40
Compare
Choose a tag to compare
  • ✨ implement crossSync option f06905a

v17.0.1...v17.1.0

17.0.1

07 Apr 07:06
Compare
Choose a tag to compare
  • πŸ› adding the active hook during render isn't a good idea (after all) 33189b3

v17.0.0...v17.0.1

17.0.0

27 Mar 08:09
Compare
Choose a tag to compare
  • πŸ› calling setValue() in useLayoutEffect() doesn't work 65614f3
  • πŸ› removeItem() doesn't batch updates 6b0e95b
  • πŸ”€ when calling setValue() during render and there are multiple instances of a hook with the same key it now prints a warning in the console (React prints the error). this is also the reason of the major release as it introduces a slight change in behavior that can cause issues in this very rare edge case.
  • βœ… more, better tests for more reliability
  • πŸ— lower package size

v16.0.1...v17.0.0

16.0.1

16 Mar 06:48
Compare
Choose a tag to compare
  • πŸ› setValue() during render doesn't work, resolve #43 2f54b39
  • πŸ› isFirstRender.current should always be set to false on first render d4804f3

v16.0.0...v16.0.1