v5.0.10
This version includes a fix to the persist middleware for an edge case.
- fix(persist): prevent race condition during concurrent rehydrate calls by @Niyaz-Mazhitov in https://github.com/pmndrs/zustand/pull/3336
- @max-programming made their first contribution in https://github.com/pmndrs/zustand/pull/3310
- @oleksandr-danylchenko made their first contribution in https://github.com/pmndrs/zustand/pull/3319
- @MateuszSobiech made their first contribution in https://github.com/pmndrs/zustand/pull/3334
- @EduardoRangelG made their first contribution in https://github.com/pmndrs/zustand/pull/3326
- @1mehdifaraji made their first contribution in https://github.com/pmndrs/zustand/pull/3339
- @kamja44 made their first contribution in https://github.com/pmndrs/zustand/pull/3349
- @Niyaz-Mazhitov made their first contribution in https://github.com/pmndrs/zustand/pull/3336
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.9...v5.0.10
v5.0.9
This includes experimental middleware unstable_ssrSafe for a new usage with Next.js. Related discussion: https://github.com/pmndrs/zustand/discussions/2740
- experimental: unstable ssrSafe middleware by @dai-shi in https://github.com/pmndrs/zustand/pull/3308
- @Dan503 made their first contribution in https://github.com/pmndrs/zustand/pull/3222
- @01-binary made their first contribution in https://github.com/pmndrs/zustand/pull/3223
- @ugouhar made their first contribution in https://github.com/pmndrs/zustand/pull/3233
- @ehsanaslani made their first contribution in https://github.com/pmndrs/zustand/pull/3241
- @totorototo made their first contribution in https://github.com/pmndrs/zustand/pull/3252
- @yuraBezh made their first contribution in https://github.com/pmndrs/zustand/pull/3246
- @davbrito made their first contribution in https://github.com/pmndrs/zustand/pull/3281
- @Triumph-light made their first contribution in https://github.com/pmndrs/zustand/pull/3209
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.8...v5.0.9
v5.0.8
A bug fix in shallow and a tiny improvement in persist.
- fix(shallow): undefined value by @dai-shi in https://github.com/pmndrs/zustand/pull/3205
- feat(middleare/persist): return storage promise from setState by @dai-shi in https://github.com/pmndrs/zustand/pull/3206
- @witch-factory made their first contribution in https://github.com/pmndrs/zustand/pull/3207
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.7...v5.0.8
v5.0.7
This enables a small optimization in some edge cases.
- fix(react): useCallback for getSnapshot by @dai-shi in https://github.com/pmndrs/zustand/pull/3192
- @noritaka1166 made their first contribution in https://github.com/pmndrs/zustand/pull/3161
- @Henry8192 made their first contribution in https://github.com/pmndrs/zustand/pull/3170
- @soyboi made their first contribution in https://github.com/pmndrs/zustand/pull/3171
- @maltesa made their first contribution in https://github.com/pmndrs/zustand/pull/3183
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.6...v5.0.7
v5.0.6
Some very minor changes.
- fix(devtools): Avoid inferring action type when explicit action name is provided by @vchirikov in https://github.com/pmndrs/zustand/pull/3147
- refactor(middleware): replace export * with explicit named and type exports by @sukvvon in https://github.com/pmndrs/zustand/pull/3151
- @csark0812 made their first contribution in https://github.com/pmndrs/zustand/pull/3135
- @clonemycode made their first contribution in https://github.com/pmndrs/zustand/pull/3139
- @vchirikov made their first contribution in https://github.com/pmndrs/zustand/pull/3147
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.5...v5.0.6
v5.0.5
It comes with some small improvements.
- feat(vanilla): update shallow compare function and tests by @dbritto-dev in https://github.com/pmndrs/zustand/pull/3108
- feat: add devtools.cleanup() method by @maxam2017 in https://github.com/pmndrs/zustand/pull/3111
- refactor: remove unnecessary type assertion in createJSONStorage by @2yunseong in https://github.com/pmndrs/zustand/pull/3113
- feat(devtool): inferred action type by @alimertcakar in https://github.com/pmndrs/zustand/pull/2987
- @Josh68 made their first contribution in https://github.com/pmndrs/zustand/pull/3106
- @wingedotter5 made their first contribution in https://github.com/pmndrs/zustand/pull/3115
- @maxam2017 made their first contribution in https://github.com/pmndrs/zustand/pull/3111
- @2yunseong made their first contribution in https://github.com/pmndrs/zustand/pull/3113
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.4...v5.0.5
v5.0.4
This fixes module resolution issue for React Native users.
- refactor(traditional): remove duplicated ExtractState type declaration by @shinhyogeun in https://github.com/pmndrs/zustand/pull/2982
- fix(package): react-native condition by @dai-shi in https://github.com/pmndrs/zustand/pull/3087
- @zbeyens made their first contribution in https://github.com/pmndrs/zustand/pull/2958
- @samirhembrom made their first contribution in https://github.com/pmndrs/zustand/pull/2963
- @alimertcakar made their first contribution in https://github.com/pmndrs/zustand/pull/2980
- @sidahmedabdelillah made their first contribution in https://github.com/pmndrs/zustand/pull/2978
- @Sunjae95 made their first contribution in https://github.com/pmndrs/zustand/pull/2994
- @chervyakovru made their first contribution in https://github.com/pmndrs/zustand/pull/3001
- @andriyor made their first contribution in https://github.com/pmndrs/zustand/pull/3002
- @theperfectpunk made their first contribution in https://github.com/pmndrs/zustand/pull/2998
- @locothedev made their first contribution in https://github.com/pmndrs/zustand/pull/3004
- @paulschoen made their first contribution in https://github.com/pmndrs/zustand/pull/3008
- @mooalot made their first contribution in https://github.com/pmndrs/zustand/pull/3011
- @rn0614 made their first contribution in https://github.com/pmndrs/zustand/pull/3037
- @dngur9801 made their first contribution in https://github.com/pmndrs/zustand/pull/3042
- @Shashikantyadavv made their first contribution in https://github.com/pmndrs/zustand/pull/3045
- @mtilda made their first contribution in https://github.com/pmndrs/zustand/pull/3053
- @jroitgrund made their first contribution in https://github.com/pmndrs/zustand/pull/2995
- @oduntane made their first contribution in https://github.com/pmndrs/zustand/pull/3080
- @B1u3B01t made their first contribution in https://github.com/pmndrs/zustand/pull/3082
- @vikpe made their first contribution in https://github.com/pmndrs/zustand/pull/3094
- @wy-luke made their first contribution in https://github.com/pmndrs/zustand/pull/3100
- @shinhyogeun made their first contribution in https://github.com/pmndrs/zustand/pull/2982
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.3...v5.0.4
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