v5.0.3
ExtractState
is a type util to extract state type from store type.
- feat(types): Make ExtractState public by @vorant94 in https://github.com/pmndrs/zustand/pull/2935
- fix(build): alias entries in rollup config by @dai-shi in https://github.com/pmndrs/zustand/pull/2942
- @atticoos made their first contribution in https://github.com/pmndrs/zustand/pull/2883
- @sukvvon made their first contribution in https://github.com/pmndrs/zustand/pull/2890
- @Wxh16144 made their first contribution in https://github.com/pmndrs/zustand/pull/2891
- @leweyse made their first contribution in https://github.com/pmndrs/zustand/pull/2913
- @dmaskasky made their first contribution in https://github.com/pmndrs/zustand/pull/2936
- @HoberMin made their first contribution in https://github.com/pmndrs/zustand/pull/2938
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.2...v5.0.3
v4.5.6
See: #2943
Full Changelog: https://github.com/pmndrs/zustand/compare/v4.5.5...v4.5.6
v5.0.2
This fixes some issues in middleware.
- fix(middleware): devtools type error #2700 by @AndyRightNow in https://github.com/pmndrs/zustand/pull/2875
- fix(persist): fix async migrate on persist middleware by @dbritto-dev in https://github.com/pmndrs/zustand/pull/2877
- @ennjin made their first contribution in https://github.com/pmndrs/zustand/pull/2834
- @ytraddan made their first contribution in https://github.com/pmndrs/zustand/pull/2836
- @m1nsuplee made their first contribution in https://github.com/pmndrs/zustand/pull/2847
- @gonzalezfj made their first contribution in https://github.com/pmndrs/zustand/pull/2861
- @mordv made their first contribution in https://github.com/pmndrs/zustand/pull/2869
- @marcoamt made their first contribution in https://github.com/pmndrs/zustand/pull/2874
- @AndyRightNow made their first contribution in https://github.com/pmndrs/zustand/pull/2875
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.1...v5.0.2
v5.0.1
This fixes shallow
function for some edge cases.
- fix(shallow): fallback map-like iterator comparison by @dai-shi in https://github.com/pmndrs/zustand/pull/2795
- fix(shallow): iterable-like insensitive keys order comparison (alternate implementation) by @dai-shi in https://github.com/pmndrs/zustand/pull/2821
- @legcy143 made their first contribution in https://github.com/pmndrs/zustand/pull/2799
- @kretajak made their first contribution in https://github.com/pmndrs/zustand/pull/2822
- @steaks made their first contribution in https://github.com/pmndrs/zustand/pull/2824
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.0...v5.0.1
v5.0.0
- No new features
- Migration from v4 should be smooth.
Read the migration guide carefully: https://github.com/pmndrs/zustand/blob/main/docs/migrations/migrating-to-v5.md
During the RC period, some users encountered the following infinite loop error:
Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
This case was already a non-ideal behavior in v4 but appears more explicitly as an error in v5. While there are several ways to resolve this, using useShallow
often fixes the problem.
- v5 by @dai-shi in https://github.com/pmndrs/zustand/pull/2138
- Fix Immer type inference for
setState
by @chrisvander in https://github.com/pmndrs/zustand/pull/2696
- @abernier made their first contribution in https://github.com/pmndrs/zustand/pull/2674
- @tthallos made their first contribution in https://github.com/pmndrs/zustand/pull/2501
- @sagiereder made their first contribution in https://github.com/pmndrs/zustand/pull/2673
- @melutovich made their first contribution in https://github.com/pmndrs/zustand/pull/2692
- @rgksugan made their first contribution in https://github.com/pmndrs/zustand/pull/2695
- @Anuovec made their first contribution in https://github.com/pmndrs/zustand/pull/2708
- @EthanRBrown made their first contribution in https://github.com/pmndrs/zustand/pull/2717
- @mym0404 made their first contribution in https://github.com/pmndrs/zustand/pull/2730
- @87xie made their first contribution in https://github.com/pmndrs/zustand/pull/2745
- @f312213213 made their first contribution in https://github.com/pmndrs/zustand/pull/2761
- @DanThemes made their first contribution in https://github.com/pmndrs/zustand/pull/2764
- @chaficnajjar made their first contribution in https://github.com/pmndrs/zustand/pull/2770
- @goosewobbler made their first contribution in https://github.com/pmndrs/zustand/pull/2781
- @Amyssyko made their first contribution in https://github.com/pmndrs/zustand/pull/2784
- @MartinGamesCZ made their first contribution in https://github.com/pmndrs/zustand/pull/2785
Full Changelog: https://github.com/pmndrs/zustand/compare/v4.5.5...v5.0.0
v5.0.0-rc.2
Hopefully, this will be the last RC, unless we have serious bug reports in #2741.
- chore: enable isolatedDeclarations by @dai-shi in https://github.com/pmndrs/zustand/pull/2738
- revert useShallow refactor in #2701 by @dai-shi in https://github.com/pmndrs/zustand/pull/2703
- @Anuovec made their first contribution in https://github.com/pmndrs/zustand/pull/2708
- @EthanRBrown made their first contribution in https://github.com/pmndrs/zustand/pull/2717
- @mym0404 made their first contribution in https://github.com/pmndrs/zustand/pull/2730
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.0-rc.1...v5.0.0-rc.2
v5.0.0-rc.1
This version includes some minor changes. Please report any issues if you find.
- Fix Immer type inference for
setState
by @chrisvander in https://github.com/pmndrs/zustand/pull/2696 - refactor useShallow by @dai-shi in https://github.com/pmndrs/zustand/pull/2701
- @sagiereder made their first contribution in https://github.com/pmndrs/zustand/pull/2673
- @melutovich made their first contribution in https://github.com/pmndrs/zustand/pull/2692
- @rgksugan made their first contribution in https://github.com/pmndrs/zustand/pull/2695
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.0-rc.0...v5.0.0-rc.1
v5.0.0-rc.0
Please see the migration guide and share your feedback.
- v5 by @dai-shi in https://github.com/pmndrs/zustand/pull/2138
- @abernier made their first contribution in https://github.com/pmndrs/zustand/pull/2674
- @tthallos made their first contribution in https://github.com/pmndrs/zustand/pull/2501
Full Changelog: https://github.com/pmndrs/zustand/compare/v4.5.5...v5.0.0-rc.0
v4.5.5
This improves the persist
middleware behavior for an edge case.
- fix(storage): avoid calling setItem with the state just retrieved by @double-thinker in https://github.com/pmndrs/zustand/pull/2678
- chore(deps): update dependencies by @dai-shi in https://github.com/pmndrs/zustand/pull/2680
- @alwalxed made their first contribution in https://github.com/pmndrs/zustand/pull/2634
- @YashChauhan858 made their first contribution in https://github.com/pmndrs/zustand/pull/2636
- @donutcube made their first contribution in https://github.com/pmndrs/zustand/pull/2650
- @vorant94 made their first contribution in https://github.com/pmndrs/zustand/pull/2661
- @jeppester made their first contribution in https://github.com/pmndrs/zustand/pull/2667
- @ryota-murakami made their first contribution in https://github.com/pmndrs/zustand/pull/2668
- @double-thinker made their first contribution in https://github.com/pmndrs/zustand/pull/2678
Full Changelog: https://github.com/pmndrs/zustand/compare/v4.5.4...v4.5.5
v4.5.4
There was an issue in v4.5.3 with some bundlers.
- fix: no type field in package.json by @dai-shi in https://github.com/pmndrs/zustand/pull/2622
Full Changelog: https://github.com/pmndrs/zustand/compare/v4.5.3...v4.5.4