Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Releases: deniskabana/react-persistent-state-hook

v0.7.2

09 Dec 09:45
f00f56e
Compare
Choose a tag to compare
  • Hotfixed 2 bugs related to synchronization

v0.7.0

28 Nov 15:36
f00f56e
Compare
Choose a tag to compare
  • BREAKING: storageKey was moved away from options, back to 2nd argument
  • Added playground for library contributors
  • Implemented on-page synchronization - multiple components with the same key will now use custom events to communicate changes
  • Removed plans for StorageEvent implementation - it's limited to local storage and cross-window/tab functionality

In future releases automatically generated hashes for keys will no longer work. Using the hook without the 2nd argument is now considered user error and is deprecated.

v0.14.0 - stable release

11 Sep 18:21
Compare
Choose a tag to compare
  • BREAKING: Implement storageKey as a config key instead of argument; Implement pseudo-ID hashing for simple use without an argument
  • BREAKING: Move storageType to config options

This release has been flagged as stable release

No more breaking changes are expected until v1.0.0

v0.13.0

11 Sep 16:45
Compare
Choose a tag to compare
  • Major improvements in README and JSDoc comments
  • Minor fixes, revamp verbose usage
  • Remove comments in Parcel dist files except .d.ts (another 0,5kb saved)

v0.12.2

11 Sep 09:04
Compare
Choose a tag to compare
  • Major production bundle optimization (19kb -> 8kb)

v0.12.1

11 Sep 08:33
Compare
Choose a tag to compare
  • Make key optional (for 0 adoption curve), implement silent and verbose config keys
  • Remove StorageType enum and replace with 2 strict string values as types
  • Move from tsc to parcel for production builds

v0.12.0

11 Sep 07:19
Compare
Choose a tag to compare
  • BREAKING: change default storage type to sessionStorage
  • Minor refactor (created utils.ts), proper execution flow, skip first render, fallbacks
  • Remove sourcemaps from lib export

🎉 Finally a stable, tested and usable release 🎉

v0.10.1

09 Sep 13:02
Compare
Choose a tag to compare
  • Improve window checking, refactor storage, fix JSDoc, improve setValue perf
  • Support for npm 9 engine

v0.9.10

09 Sep 11:57
Compare
Choose a tag to compare

Fix uneven hooks amount in declaration, bump to 0.9.10

v0.9.9

09 Sep 11:51
Compare
Choose a tag to compare

Fix problem with GitHub workflow publishing to NPM (local publishing works wonderfully).