v20.0.0
- 🐛
isPersistentremains true when localStorage is disabled in Firefox, resolve #80 b1b1dae - ✨ reduce bundle size f324d84
| v19.5.0 | v20.0.0 | Δ | |
|---|---|---|---|
| minified | 1.65 kB | 1.53 kB | −120 B (−7.3%) |
| minified + brotli | 704 B | 677 B | −27 B (−3.8%) |
Note: This is a new major release because the isPersistent prop is changing behavior — previously when the defaultValue was equal to the returning value isPersistent was always true. Now isPersistent is true only when localStorage is saving the value.
https://github.com/astoilkov/use-local-storage-state/compare/v19.5.0...v20.0.0
v19.5.0
- ✨ new
defaultServerValueoption — setting this will provide a different value while server-rendering and hydrating bfc68fa- thanks to @BatuhanTopcu for the PR!
https://github.com/astoilkov/use-local-storage-state/compare/v19.4.1...v19.5.0
v19.4.1
- 🐜 small improvements to the project structure
https://github.com/astoilkov/use-local-storage-state/compare/v19.4.0...v19.4.1
v17.4.0
- 🔀 loosen up peer dependencies version range, resolve #70 a53b54e
https://github.com/astoilkov/use-local-storage-state/compare/v17.3.0...v17.4.0
v19.4.0
- 🐛
removeItem()reference isn't stable — #69 thanks @iamkd 2c604b2
https://github.com/astoilkov/use-local-storage-state/compare/v19.3.1...v19.4.0
v19.3.1
- 🐜 minor improvements that don't affect end users
https://github.com/astoilkov/use-local-storage-state/compare/v19.3.0...v19.3.1
v19.3.0
- ✨ 🐎 better performance — don't re-render when
localStorageis holding thedefaultValue010a16e - ✨ 🐎 smaller bundle size 81d2603 5b2cf891e890168935e10b559486a6973a0abd49 b2d9e0caba1f9bea619b149fea64f01bd54ff04d
- ✅ new tests 96369f8952ad43df0bcf880e2897100fefa88c7a 010a16e3e0adef0ea07d02365c3d82bbaa3780e9 81d26038964611c90e5622b7329019c94887cafc
Here's a visual of how bundle size for use-local-storage-state has changed over time:
https://github.com/astoilkov/use-local-storage-state/compare/v19.2.0...v19.3.0
v19.2.0
- ✨
9%smaller bundle size 366bb10
https://github.com/astoilkov/use-local-storage-state/compare/v19.1.0...v19.2.0
19.1.0
- 🐛
defaultValueoption is not provided in IntelliSense 5e83634 - ♻️ transition from Jest → Vitest b5e0c56
https://github.com/astoilkov/use-local-storage-state/compare/v19.0.4...v19.1.0
19.0.4
- 🔥 remove main field a51ee3a
https://github.com/astoilkov/use-local-storage-state/compare/v19.0.3...v19.0.4