v3.7.0
版本发布时间: 2022-02-11 07:53:04
pmndrs/zustand最新发布版本:v5.0.0-rc.2(2024-09-15 11:17:18)
This release is to prepare for v4 release, which will include some breaking changes. Especially typing store with middleware will be changed. This release gives partial migration path (see tests/middlewareTypes.test.tsx
for examples), so it's highly recommended to try this version before v4 comes and report issues.
It also fixes some small typing issues and improves UMD/SystemJS bundling. Oh, and last but not least, vite users don't need to set NODE_ENV
anymore.
What's Changed
- fix(devtools): don't show jsdoc deprecation warning when no options are passed by @devanshj in https://github.com/pmndrs/zustand/pull/781
- fix(middleware): match vanilla StateCreator type in subscribeWithSelector by @toddw in https://github.com/pmndrs/zustand/pull/787
- feat(build): use
__DEV__
to control development mode by @dai-shi in https://github.com/pmndrs/zustand/pull/789 - feat: Migrations regarding higher kinded mutators for v4 by @devanshj in https://github.com/pmndrs/zustand/pull/772
New Contributors
- @DanielPower made their first contribution in https://github.com/pmndrs/zustand/pull/751
- @toddw made their first contribution in https://github.com/pmndrs/zustand/pull/787
Full Changelog: https://github.com/pmndrs/zustand/compare/v3.6.9...v3.7.0