v5.0.14
This release fixes a type issue in devtools.
- fix(devtools): improve type inference for Devtools initializer by @dbritto-dev in https://github.com/pmndrs/zustand/pull/3511
- @TheSeydiCharyyev made their first contribution in https://github.com/pmndrs/zustand/pull/3487
- @brofrong made their first contribution in https://github.com/pmndrs/zustand/pull/3496
- @hyun907 made their first contribution in https://github.com/pmndrs/zustand/pull/3506
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.13...v5.0.14
v5.0.13
This release includes an improvement in the devtools middleware.
- refactor(devtools): remove duplicate module augmentation by @mahmoodhamdi in https://github.com/pmndrs/zustand/pull/3443
- fix(devtools): support Firefox/Safari stack format in findCallerName by @SBolsec in https://github.com/pmndrs/zustand/pull/3469
- @mahmoodhamdi made their first contribution in https://github.com/pmndrs/zustand/pull/3443
- @FelixEckl-vireq made their first contribution in https://github.com/pmndrs/zustand/pull/3466
- @KimHyeongRae0 made their first contribution in https://github.com/pmndrs/zustand/pull/3471
- @lstak made their first contribution in https://github.com/pmndrs/zustand/pull/3483
- @AlexRixten made their first contribution in https://github.com/pmndrs/zustand/pull/3474
- @SBolsec made their first contribution in https://github.com/pmndrs/zustand/pull/3469
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.12...v5.0.13
v5.0.12
Two small fixes.
- fix(persist): use latest state in post-rehydration callback by @Shohjahon-n in https://github.com/pmndrs/zustand/pull/3391
- fix(devtools): correct redux devtools config type extension by @grigoriy-reshetniak in https://github.com/pmndrs/zustand/pull/3414
- @pavan-sh made their first contribution in https://github.com/pmndrs/zustand/pull/3378
- @Copilot made their first contribution in https://github.com/pmndrs/zustand/pull/3395
- @Aravindsreeni made their first contribution in https://github.com/pmndrs/zustand/pull/3400
- @wallzero made their first contribution in https://github.com/pmndrs/zustand/pull/3401
- @chaesunbak made their first contribution in https://github.com/pmndrs/zustand/pull/3405
- @Shohjahon-n made their first contribution in https://github.com/pmndrs/zustand/pull/3391
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.11...v5.0.12
v5.0.11
This release includes small improvements in middleware thanks to contributors.
- chore: improve typing in devtools middleware by @grigoriy-reshetniak in https://github.com/pmndrs/zustand/pull/3362
- fix(persist): avoid relying on global localStorage by @honuuk in https://github.com/pmndrs/zustand/pull/3367
- fix(immer): Proper typing for immer middleware in combination with slices by @wheerd in https://github.com/pmndrs/zustand/pull/3371
- @SeongYongLee made their first contribution in https://github.com/pmndrs/zustand/pull/3355
- @grigoriy-reshetniak made their first contribution in https://github.com/pmndrs/zustand/pull/3351
- @DormancyWang made their first contribution in https://github.com/pmndrs/zustand/pull/3363
- @Ea-st-ring made their first contribution in https://github.com/pmndrs/zustand/pull/3369
- @winner07 made their first contribution in https://github.com/pmndrs/zustand/pull/3373
- @honuuk made their first contribution in https://github.com/pmndrs/zustand/pull/3367
- @wheerd made their first contribution in https://github.com/pmndrs/zustand/pull/3371
Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.10...v5.0.11
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