This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
Releases: deniskabana/react-persistent-state-hook
Releases · deniskabana/react-persistent-state-hook
v0.7.2
v0.7.0
- 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
- 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
- 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
- Major production bundle optimization (19kb -> 8kb)
v0.12.1
- 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
- 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
- Improve window checking, refactor storage, fix JSDoc, improve setValue perf
- Support for npm 9 engine
v0.9.10
Fix uneven hooks amount in declaration, bump to 0.9.10
v0.9.9
Fix problem with GitHub workflow publishing to NPM (local publishing works wonderfully).