Releases: pmndrs/zustand
v5.0.11
This release includes small improvements in middleware thanks to contributors.
What's Changed
- chore: improve typing in devtools middleware by @grigoriy-reshetniak in #3362
- fix(persist): avoid relying on global localStorage by @honuuk in #3367
- fix(immer): Proper typing for immer middleware in combination with slices by @wheerd in #3371
New Contributors
- @SeongYongLee made their first contribution in #3355
- @grigoriy-reshetniak made their first contribution in #3351
- @DormancyWang made their first contribution in #3363
- @Ea-st-ring made their first contribution in #3369
- @winner07 made their first contribution in #3373
- @honuuk made their first contribution in #3367
- @wheerd made their first contribution in #3371
Full Changelog: v5.0.10...v5.0.11
v5.0.10
This version includes a fix to the persist middleware for an edge case.
What's Changed
- fix(persist): prevent race condition during concurrent rehydrate calls by @Niyaz-Mazhitov in #3336
New Contributors
- @max-programming made their first contribution in #3310
- @oleksandr-danylchenko made their first contribution in #3319
- @MateuszSobiech made their first contribution in #3334
- @EduardoRangelG made their first contribution in #3326
- @1mehdifaraji made their first contribution in #3339
- @kamja44 made their first contribution in #3349
- @Niyaz-Mazhitov made their first contribution in #3336
Full Changelog: v5.0.9...v5.0.10
v5.0.9
This includes experimental middleware unstable_ssrSafe for a new usage with Next.js.
Related discussion: #2740
What's Changed
New Contributors
- @Dan503 made their first contribution in #3222
- @01-binary made their first contribution in #3223
- @ugouhar made their first contribution in #3233
- @ehsanaslani made their first contribution in #3241
- @totorototo made their first contribution in #3252
- @yuraBezh made their first contribution in #3246
- @davbrito made their first contribution in #3281
- @Triumph-light made their first contribution in #3209
Full Changelog: v5.0.8...v5.0.9
v5.0.8
A bug fix in shallow and a tiny improvement in persist.
What's Changed
- fix(shallow): undefined value by @dai-shi in #3205
- feat(middleare/persist): return storage promise from setState by @dai-shi in #3206
New Contributors
- @witch-factory made their first contribution in #3207
Full Changelog: v5.0.7...v5.0.8
v5.0.7
This enables a small optimization in some edge cases.
What's Changed
New Contributors
- @noritaka1166 made their first contribution in #3161
- @Henry8192 made their first contribution in #3170
- @soyboi made their first contribution in #3171
- @maltesa made their first contribution in #3183
Full Changelog: v5.0.6...v5.0.7
v5.0.6
Some very minor changes.
What's Changed
- fix(devtools): Avoid inferring action type when explicit action name is provided by @vchirikov in #3147
- refactor(middleware): replace export * with explicit named and type exports by @sukvvon in #3151
New Contributors
- @csark0812 made their first contribution in #3135
- @clonemycode made their first contribution in #3139
- @vchirikov made their first contribution in #3147
Full Changelog: v5.0.5...v5.0.6
v5.0.5
It comes with some small improvements.
What's Changed
- feat(vanilla): update shallow compare function and tests by @dbritto-dev in #3108
- feat: add devtools.cleanup() method by @maxam2017 in #3111
- refactor: remove unnecessary type assertion in createJSONStorage by @2yunseong in #3113
- feat(devtool): inferred action type by @alimertcakar in #2987
New Contributors
- @Josh68 made their first contribution in #3106
- @wingedotter5 made their first contribution in #3115
- @maxam2017 made their first contribution in #3111
- @2yunseong made their first contribution in #3113
Full Changelog: v5.0.4...v5.0.5
4.5.7
See: #3087 (comment)
Full Changelog: v4.5.6...4.5.7
v5.0.4
This fixes module resolution issue for React Native users.
What's Changed
- refactor(traditional): remove duplicated ExtractState type declaration by @shinhyogeun in #2982
- fix(package): react-native condition by @dai-shi in #3087
New Contributors
- @zbeyens made their first contribution in #2958
- @samirhembrom made their first contribution in #2963
- @alimertcakar made their first contribution in #2980
- @sidahmedabdelillah made their first contribution in #2978
- @Sunjae95 made their first contribution in #2994
- @chervyakovru made their first contribution in #3001
- @andriyor made their first contribution in #3002
- @theperfectpunk made their first contribution in #2998
- @locothedev made their first contribution in #3004
- @paulschoen made their first contribution in #3008
- @mooalot made their first contribution in #3011
- @rn0614 made their first contribution in #3037
- @dngur9801 made their first contribution in #3042
- @Shashikantyadavv made their first contribution in #3045
- @mtilda made their first contribution in #3053
- @jroitgrund made their first contribution in #2995
- @oduntane made their first contribution in #3080
- @B1u3B01t made their first contribution in #3082
- @vikpe made their first contribution in #3094
- @wy-luke made their first contribution in #3100
- @shinhyogeun made their first contribution in #2982
Full Changelog: v5.0.3...v5.0.4
v5.0.3
ExtractState is a type util to extract state type from store type.
What's Changed
- feat(types): Make ExtractState public by @vorant94 in #2935
- fix(build): alias entries in rollup config by @dai-shi in #2942
New Contributors
- @atticoos made their first contribution in #2883
- @sukvvon made their first contribution in #2890
- @Wxh16144 made their first contribution in #2891
- @leweyse made their first contribution in #2913
- @dmaskasky made their first contribution in #2936
- @HoberMin made their first contribution in #2938
Full Changelog: v5.0.2...v5.0.3