technologiestiftung / jahresbericht-2021

MIT License
1 stars 2 forks source link

fix(deps): update dependency zustand to v4 #75

Open renovate[bot] opened 2 years ago

renovate[bot] commented 2 years ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
zustand 3.7.2 -> 4.5.4 age adoption passing confidence

Release Notes

pmndrs/zustand (zustand) ### [`v4.5.4`](https://togithub.com/pmndrs/zustand/releases/tag/v4.5.4) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.5.3...v4.5.4) There was an issue in v4.5.3 with some bundlers. #### What's Changed - fix: no type field in package.json by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/2622](https://togithub.com/pmndrs/zustand/pull/2622) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.5.3...v4.5.4 ### [`v4.5.3`](https://togithub.com/pmndrs/zustand/compare/v4.5.2...b3684b31d3516175c462f6d8427f4bcf712bb785) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.5.2...v4.5.3) ### [`v4.5.2`](https://togithub.com/pmndrs/zustand/releases/tag/v4.5.2) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.5.1...v4.5.2) It should improve the compatibility with old browsers. #### What's Changed - refactor(shallow): Use for..of instead of C-style for by [@​onlined](https://togithub.com/onlined) in [https://github.com/pmndrs/zustand/pull/2374](https://togithub.com/pmndrs/zustand/pull/2374) - fix: return type of persist migrate function changed to PersistedState by [@​bobdepreziz](https://togithub.com/bobdepreziz) in [https://github.com/pmndrs/zustand/pull/2360](https://togithub.com/pmndrs/zustand/pull/2360) - build: target es2018 by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/2361](https://togithub.com/pmndrs/zustand/pull/2361) #### New Contributors - [@​medyahyejoud](https://togithub.com/medyahyejoud) made their first contribution in [https://github.com/pmndrs/zustand/pull/2353](https://togithub.com/pmndrs/zustand/pull/2353) - [@​yankycranky](https://togithub.com/yankycranky) made their first contribution in [https://github.com/pmndrs/zustand/pull/2348](https://togithub.com/pmndrs/zustand/pull/2348) - [@​cheeZery](https://togithub.com/cheeZery) made their first contribution in [https://github.com/pmndrs/zustand/pull/2364](https://togithub.com/pmndrs/zustand/pull/2364) - [@​Cadienvan](https://togithub.com/Cadienvan) made their first contribution in [https://github.com/pmndrs/zustand/pull/2378](https://togithub.com/pmndrs/zustand/pull/2378) - [@​bobdepreziz](https://togithub.com/bobdepreziz) made their first contribution in [https://github.com/pmndrs/zustand/pull/2360](https://togithub.com/pmndrs/zustand/pull/2360) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.5.1...v4.5.2 ### [`v4.5.1`](https://togithub.com/pmndrs/zustand/releases/tag/v4.5.1) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.5.0...v4.5.1) People might have misunderstood with `useStore` deprecation message. Hope this mitigates it. #### What's Changed - Relax types for `persist` middleware by [@​rafaeelaudibert](https://togithub.com/rafaeelaudibert) in [https://github.com/pmndrs/zustand/pull/2332](https://togithub.com/pmndrs/zustand/pull/2332) - chore: clarify deprecation message by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/2337](https://togithub.com/pmndrs/zustand/pull/2337) #### New Contributors - [@​alexander-densley](https://togithub.com/alexander-densley) made their first contribution in [https://github.com/pmndrs/zustand/pull/2321](https://togithub.com/pmndrs/zustand/pull/2321) - [@​rafaeelaudibert](https://togithub.com/rafaeelaudibert) made their first contribution in [https://github.com/pmndrs/zustand/pull/2332](https://togithub.com/pmndrs/zustand/pull/2332) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.5.0...v4.5.1 ### [`v4.5.0`](https://togithub.com/pmndrs/zustand/releases/tag/v4.5.0) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.4.7...v4.5.0) This version adds a new capability for SSR/Hydration. #### What's Changed - feat: getInitialState by [@​TkDodo](https://togithub.com/TkDodo) in [https://github.com/pmndrs/zustand/pull/2277](https://togithub.com/pmndrs/zustand/pull/2277) - fix: Add deprecation notice for getServerState() in WithReact type by [@​charkour](https://togithub.com/charkour) in [https://github.com/pmndrs/zustand/pull/2266](https://togithub.com/pmndrs/zustand/pull/2266) #### New Contributors - [@​Jontii](https://togithub.com/Jontii) made their first contribution in [https://github.com/pmndrs/zustand/pull/2228](https://togithub.com/pmndrs/zustand/pull/2228) - [@​wherehows](https://togithub.com/wherehows) made their first contribution in [https://github.com/pmndrs/zustand/pull/2239](https://togithub.com/pmndrs/zustand/pull/2239) - [@​ahulterstrom](https://togithub.com/ahulterstrom) made their first contribution in [https://github.com/pmndrs/zustand/pull/2252](https://togithub.com/pmndrs/zustand/pull/2252) - [@​JaeBrian](https://togithub.com/JaeBrian) made their first contribution in [https://github.com/pmndrs/zustand/pull/2267](https://togithub.com/pmndrs/zustand/pull/2267) - [@​CodyCodes95](https://togithub.com/CodyCodes95) made their first contribution in [https://github.com/pmndrs/zustand/pull/2218](https://togithub.com/pmndrs/zustand/pull/2218) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.4.7...v4.5.0 ### [`v4.4.7`](https://togithub.com/pmndrs/zustand/releases/tag/v4.4.7) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.4.6...v4.4.7) There's a small fix for a use case with an non-object value in store. #### What's Changed - fix(vanilla): unexpected null state update behavior by [@​wulimao49](https://togithub.com/wulimao49) in [https://github.com/pmndrs/zustand/pull/2213](https://togithub.com/pmndrs/zustand/pull/2213) #### New Contributors - [@​isiagi](https://togithub.com/isiagi) made their first contribution in [https://github.com/pmndrs/zustand/pull/2208](https://togithub.com/pmndrs/zustand/pull/2208) - [@​ADTC](https://togithub.com/ADTC) made their first contribution in [https://github.com/pmndrs/zustand/pull/2202](https://togithub.com/pmndrs/zustand/pull/2202) - [@​wulimao49](https://togithub.com/wulimao49) made their first contribution in [https://github.com/pmndrs/zustand/pull/2213](https://togithub.com/pmndrs/zustand/pull/2213) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.4.6...v4.4.7 ### [`v4.4.6`](https://togithub.com/pmndrs/zustand/releases/tag/v4.4.6) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.4.5...v4.4.6) v4.4.5 has an issue with some TypeScript configs about module resolution. It should be fixed now. Thanks for the patience. #### What's Changed - Update export types by [@​dbritto-dev](https://togithub.com/dbritto-dev) in [https://github.com/pmndrs/zustand/pull/2170](https://togithub.com/pmndrs/zustand/pull/2170) #### New Contributors - [@​cheatkey](https://togithub.com/cheatkey) made their first contribution in [https://github.com/pmndrs/zustand/pull/2147](https://togithub.com/pmndrs/zustand/pull/2147) - [@​frixaco](https://togithub.com/frixaco) made their first contribution in [https://github.com/pmndrs/zustand/pull/2166](https://togithub.com/pmndrs/zustand/pull/2166) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.4.5...v4.4.6 ### [`v4.4.5`](https://togithub.com/pmndrs/zustand/releases/tag/v4.4.5) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.4.4...v4.4.5) Hopefully, it should fix some issues with Node.js environment including Next.js. #### What's Changed - fix: importing CJS React in ESM by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/2154](https://togithub.com/pmndrs/zustand/pull/2154) - Apply publint recommendations by [@​dbritto-dev](https://togithub.com/dbritto-dev) in [https://github.com/pmndrs/zustand/pull/2157](https://togithub.com/pmndrs/zustand/pull/2157) #### New Contributors - [@​plrs9816](https://togithub.com/plrs9816) made their first contribution in [https://github.com/pmndrs/zustand/pull/2137](https://togithub.com/pmndrs/zustand/pull/2137) - [@​Brammm](https://togithub.com/Brammm) made their first contribution in [https://github.com/pmndrs/zustand/pull/2139](https://togithub.com/pmndrs/zustand/pull/2139) - [@​sobies93](https://togithub.com/sobies93) made their first contribution in [https://github.com/pmndrs/zustand/pull/2142](https://togithub.com/pmndrs/zustand/pull/2142) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.4.4...v4.4.5 ### [`v4.4.4`](https://togithub.com/pmndrs/zustand/releases/tag/v4.4.4) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.4.3...v4.4.4) There was a tiny issue in v4.4.3, which broke with some bundlers, which this version fixes. #### What's Changed - fix(build): patch entry points zustand/shallow for CJS by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/2128](https://togithub.com/pmndrs/zustand/pull/2128) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.4.3...v4.4.4 ### [`v4.4.3`](https://togithub.com/pmndrs/zustand/releases/tag/v4.4.3) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.4.2...v4.4.3) The changes in v4.4.2 were troublesome for some users. This version should fix/mitigate such cases. #### What's Changed - fix(shallow): Extract shallow vanilla and react by [@​dbritto-dev](https://togithub.com/dbritto-dev) in [https://github.com/pmndrs/zustand/pull/2097](https://togithub.com/pmndrs/zustand/pull/2097) - fix(types): mitigate devtools typing by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/2099](https://togithub.com/pmndrs/zustand/pull/2099) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.4.2...v4.4.3 ### [`v4.4.2`](https://togithub.com/pmndrs/zustand/releases/tag/v4.4.2) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.4.1...v4.4.2) This adds `useShallow` hook to cover some use cases that are deprecated with v4.4.0 change. Check out [the guide](https://togithub.com/pmndrs/zustand/blob/ec538e9d4c0b9b5759e6dfd0fd3c9a21f8236949/docs/guides/prevent-rerenders-with-use-shallow.md). ##### Migration Guide [#​1991](https://togithub.com/pmndrs/zustand/issues/1991) requires something like below if you are using the `devtools` middleware *and* TypeScript. ```diff import { devtools } from 'zustand/middleware' + import type {} from '@​redux-devtools/extension' ``` ##### What's Changed - fix(types)(middleware/devtools): avoid copying types by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1991](https://togithub.com/pmndrs/zustand/pull/1991) - fix(traditional): make defaultEqualityFn optional in TS Types by [@​charkour](https://togithub.com/charkour) in [https://github.com/pmndrs/zustand/pull/2060](https://togithub.com/pmndrs/zustand/pull/2060) - feat: add useShallow by [@​FaberVitale](https://togithub.com/FaberVitale) in [https://github.com/pmndrs/zustand/pull/2090](https://togithub.com/pmndrs/zustand/pull/2090) ##### New Contributors - [@​aykutkardas](https://togithub.com/aykutkardas) made their first contribution in [https://github.com/pmndrs/zustand/pull/1993](https://togithub.com/pmndrs/zustand/pull/1993) - [@​michelts](https://togithub.com/michelts) made their first contribution in [https://github.com/pmndrs/zustand/pull/1997](https://togithub.com/pmndrs/zustand/pull/1997) - [@​elusive](https://togithub.com/elusive) made their first contribution in [https://github.com/pmndrs/zustand/pull/2001](https://togithub.com/pmndrs/zustand/pull/2001) - [@​mayank1513](https://togithub.com/mayank1513) made their first contribution in [https://github.com/pmndrs/zustand/pull/2015](https://togithub.com/pmndrs/zustand/pull/2015) - [@​fdb](https://togithub.com/fdb) made their first contribution in [https://github.com/pmndrs/zustand/pull/2029](https://togithub.com/pmndrs/zustand/pull/2029) - [@​tmkx](https://togithub.com/tmkx) made their first contribution in [https://github.com/pmndrs/zustand/pull/2032](https://togithub.com/pmndrs/zustand/pull/2032) - [@​OshriAsulin](https://togithub.com/OshriAsulin) made their first contribution in [https://github.com/pmndrs/zustand/pull/2028](https://togithub.com/pmndrs/zustand/pull/2028) - [@​ivanquirino](https://togithub.com/ivanquirino) made their first contribution in [https://github.com/pmndrs/zustand/pull/2047](https://togithub.com/pmndrs/zustand/pull/2047) - [@​stavkamil](https://togithub.com/stavkamil) made their first contribution in [https://github.com/pmndrs/zustand/pull/2071](https://togithub.com/pmndrs/zustand/pull/2071) - [@​NaamuKim](https://togithub.com/NaamuKim) made their first contribution in [https://github.com/pmndrs/zustand/pull/2088](https://togithub.com/pmndrs/zustand/pull/2088) - [@​FaberVitale](https://togithub.com/FaberVitale) made their first contribution in [https://github.com/pmndrs/zustand/pull/2090](https://togithub.com/pmndrs/zustand/pull/2090) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.4.1...v4.4.2 ### [`v4.4.1`](https://togithub.com/pmndrs/zustand/releases/tag/v4.4.1) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.4.0...v4.4.1) Fixes some issues reported with the deprecated feature in v4.4.0. #### What's Changed - fix(types): accept undefined equalityFn for the deprecated useStore by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1972](https://togithub.com/pmndrs/zustand/pull/1972) - fix: improve warning for deprecated equalityFn by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1976](https://togithub.com/pmndrs/zustand/pull/1976) #### New Contributors - [@​kangju2000](https://togithub.com/kangju2000) made their first contribution in [https://github.com/pmndrs/zustand/pull/1969](https://togithub.com/pmndrs/zustand/pull/1969) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.4.0...v4.4.1 ### [`v4.4.0`](https://togithub.com/pmndrs/zustand/releases/tag/v4.4.0) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.3.9...v4.4.0) This adds new `zustand/traditional` entry point and deprecates equalityFn from `zustand`. #### Migration Guide If you don't use custom `equalityFn`, nothing is required. For those who use custom equalityFn such as `shallow`: ```js // previously import { create } from 'zustand' const useFooStore = create((set) => ...) // now import { createWithEqualityFn } from 'zustand/traditional' const useFooStore = createWithEqualityFn((set) => ..., Object.is) // Object.is the default equalityFn which can be changed to shallow or anything else ``` #### What's Changed - feat: deprecate equalityFn and add createWithEqualityFn by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1945](https://togithub.com/pmndrs/zustand/pull/1945) - fix: declare [@​types/react](https://togithub.com/types/react) as peerDep to avoid phantom dep by [@​leviosa-e](https://togithub.com/leviosa-e) in [https://github.com/pmndrs/zustand/pull/1963](https://togithub.com/pmndrs/zustand/pull/1963) #### New Contributors - [@​luizeboli](https://togithub.com/luizeboli) made their first contribution in [https://github.com/pmndrs/zustand/pull/1915](https://togithub.com/pmndrs/zustand/pull/1915) - [@​mohammedmulazada](https://togithub.com/mohammedmulazada) made their first contribution in [https://github.com/pmndrs/zustand/pull/1931](https://togithub.com/pmndrs/zustand/pull/1931) - [@​coder054](https://togithub.com/coder054) made their first contribution in [https://github.com/pmndrs/zustand/pull/1932](https://togithub.com/pmndrs/zustand/pull/1932) - [@​itayperry](https://togithub.com/itayperry) made their first contribution in [https://github.com/pmndrs/zustand/pull/1957](https://togithub.com/pmndrs/zustand/pull/1957) - [@​cwtuan](https://togithub.com/cwtuan) made their first contribution in [https://github.com/pmndrs/zustand/pull/1953](https://togithub.com/pmndrs/zustand/pull/1953) - [@​tiagobento](https://togithub.com/tiagobento) made their first contribution in [https://github.com/pmndrs/zustand/pull/1962](https://togithub.com/pmndrs/zustand/pull/1962) - [@​leviosa-e](https://togithub.com/leviosa-e) made their first contribution in [https://github.com/pmndrs/zustand/pull/1963](https://togithub.com/pmndrs/zustand/pull/1963) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.3.9...v4.4.0 ### [`v4.3.9`](https://togithub.com/pmndrs/zustand/releases/tag/v4.3.9) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.3.8...v4.3.9) This includes a small improvement for production build mostly for Vite users. Docs have been improved too! #### What's Changed - fix(build): mode env for "import" condition" by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1845](https://togithub.com/pmndrs/zustand/pull/1845) #### New Contributors - [@​Debbl](https://togithub.com/Debbl) made their first contribution in [https://github.com/pmndrs/zustand/pull/1792](https://togithub.com/pmndrs/zustand/pull/1792) - [@​Nipodemos](https://togithub.com/Nipodemos) made their first contribution in [https://github.com/pmndrs/zustand/pull/1782](https://togithub.com/pmndrs/zustand/pull/1782) - [@​vadimshvetsov](https://togithub.com/vadimshvetsov) made their first contribution in [https://github.com/pmndrs/zustand/pull/1800](https://togithub.com/pmndrs/zustand/pull/1800) - [@​bobylito](https://togithub.com/bobylito) made their first contribution in [https://github.com/pmndrs/zustand/pull/1810](https://togithub.com/pmndrs/zustand/pull/1810) - [@​celineling](https://togithub.com/celineling) made their first contribution in [https://github.com/pmndrs/zustand/pull/1804](https://togithub.com/pmndrs/zustand/pull/1804) - [@​valerii15298](https://togithub.com/valerii15298) made their first contribution in [https://github.com/pmndrs/zustand/pull/1819](https://togithub.com/pmndrs/zustand/pull/1819) - [@​Hecmatyar](https://togithub.com/Hecmatyar) made their first contribution in [https://github.com/pmndrs/zustand/pull/1816](https://togithub.com/pmndrs/zustand/pull/1816) - [@​203x](https://togithub.com/203x) made their first contribution in [https://github.com/pmndrs/zustand/pull/1826](https://togithub.com/pmndrs/zustand/pull/1826) - [@​Ciensprog](https://togithub.com/Ciensprog) made their first contribution in [https://github.com/pmndrs/zustand/pull/1844](https://togithub.com/pmndrs/zustand/pull/1844) - [@​Romainlg29](https://togithub.com/Romainlg29) made their first contribution in [https://github.com/pmndrs/zustand/pull/1843](https://togithub.com/pmndrs/zustand/pull/1843) - [@​dcorb](https://togithub.com/dcorb) made their first contribution in [https://github.com/pmndrs/zustand/pull/1847](https://togithub.com/pmndrs/zustand/pull/1847) - [@​ivoilic](https://togithub.com/ivoilic) made their first contribution in [https://github.com/pmndrs/zustand/pull/1856](https://togithub.com/pmndrs/zustand/pull/1856) - [@​Kiku-CN](https://togithub.com/Kiku-CN) made their first contribution in [https://github.com/pmndrs/zustand/pull/1889](https://togithub.com/pmndrs/zustand/pull/1889) - [@​LartyHD](https://togithub.com/LartyHD) made their first contribution in [https://github.com/pmndrs/zustand/pull/1893](https://togithub.com/pmndrs/zustand/pull/1893) - [@​ChoiHyunjin](https://togithub.com/ChoiHyunjin) made their first contribution in [https://github.com/pmndrs/zustand/pull/1903](https://togithub.com/pmndrs/zustand/pull/1903) - [@​thesuryavivek](https://togithub.com/thesuryavivek) made their first contribution in [https://github.com/pmndrs/zustand/pull/1906](https://togithub.com/pmndrs/zustand/pull/1906) - [@​thedipankarroy](https://togithub.com/thedipankarroy) made their first contribution in [https://github.com/pmndrs/zustand/pull/1913](https://togithub.com/pmndrs/zustand/pull/1913) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.3.8...v4.3.9 ### [`v4.3.8`](https://togithub.com/pmndrs/zustand/releases/tag/v4.3.8) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.3.7...v4.3.8) For persist middleware, a new option for createJSONStorage in introduced to support more cases. Note that createJSONStorage isn't a required function (and it's not very recommended as it's not type safe), and one should create a custom storage for more use cases. #### What's Changed - chore: add extension in imports by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1678](https://togithub.com/pmndrs/zustand/pull/1678) - feat(middleware/persist): improve createJSONStorage for Maps by [@​lauhon](https://togithub.com/lauhon) in [https://github.com/pmndrs/zustand/pull/1763](https://togithub.com/pmndrs/zustand/pull/1763) - chore(tests): migrate to vitest by [@​arjunvegda](https://togithub.com/arjunvegda) in [https://github.com/pmndrs/zustand/pull/1753](https://togithub.com/pmndrs/zustand/pull/1753) #### New Contributors - [@​JacobWeisenburger](https://togithub.com/JacobWeisenburger) made their first contribution in [https://github.com/pmndrs/zustand/pull/1737](https://togithub.com/pmndrs/zustand/pull/1737) - [@​spacemeowx2](https://togithub.com/spacemeowx2) made their first contribution in [https://github.com/pmndrs/zustand/pull/1742](https://togithub.com/pmndrs/zustand/pull/1742) - [@​arjunvegda](https://togithub.com/arjunvegda) made their first contribution in [https://github.com/pmndrs/zustand/pull/1754](https://togithub.com/pmndrs/zustand/pull/1754) - [@​zc627788](https://togithub.com/zc627788) made their first contribution in [https://github.com/pmndrs/zustand/pull/1752](https://togithub.com/pmndrs/zustand/pull/1752) - [@​arvinxx](https://togithub.com/arvinxx) made their first contribution in [https://github.com/pmndrs/zustand/pull/1758](https://togithub.com/pmndrs/zustand/pull/1758) - [@​SilentFlute](https://togithub.com/SilentFlute) made their first contribution in [https://github.com/pmndrs/zustand/pull/1762](https://togithub.com/pmndrs/zustand/pull/1762) - [@​dannobytes](https://togithub.com/dannobytes) made their first contribution in [https://github.com/pmndrs/zustand/pull/1779](https://togithub.com/pmndrs/zustand/pull/1779) - [@​BLooDBRothER](https://togithub.com/BLooDBRothER) made their first contribution in [https://github.com/pmndrs/zustand/pull/1777](https://togithub.com/pmndrs/zustand/pull/1777) - [@​lauhon](https://togithub.com/lauhon) made their first contribution in [https://github.com/pmndrs/zustand/pull/1763](https://togithub.com/pmndrs/zustand/pull/1763) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.3.7...v4.3.8 ### [`v4.3.7`](https://togithub.com/pmndrs/zustand/releases/tag/v4.3.7) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.3.6...v4.3.7) This includes a couple of improvements in `persist` middleware. #### What's Changed - feat(middleware/persist): add skip hydration option [#​405](https://togithub.com/pmndrs/zustand/issues/405) by [@​gmanninglive](https://togithub.com/gmanninglive) in [https://github.com/pmndrs/zustand/pull/1647](https://togithub.com/pmndrs/zustand/pull/1647) - fix(middleware/persist): ensure `persist` does not drop updates in `onRehydrateStorage` when using a synchronous storage API by [@​coffeebeats](https://togithub.com/coffeebeats) in [https://github.com/pmndrs/zustand/pull/1689](https://togithub.com/pmndrs/zustand/pull/1689) - fix(middleware/persist): ensure argument for `onRehydrateStorage` and `onHydrate` is defined on first hydration by [@​coffeebeats](https://togithub.com/coffeebeats) in [https://github.com/pmndrs/zustand/pull/1692](https://togithub.com/pmndrs/zustand/pull/1692) #### New Contributors - [@​hi-otto](https://togithub.com/hi-otto) made their first contribution in [https://github.com/pmndrs/zustand/pull/1687](https://togithub.com/pmndrs/zustand/pull/1687) - [@​pastelmind](https://togithub.com/pastelmind) made their first contribution in [https://github.com/pmndrs/zustand/pull/1707](https://togithub.com/pmndrs/zustand/pull/1707) - [@​gmanninglive](https://togithub.com/gmanninglive) made their first contribution in [https://github.com/pmndrs/zustand/pull/1647](https://togithub.com/pmndrs/zustand/pull/1647) - [@​coffeebeats](https://togithub.com/coffeebeats) made their first contribution in [https://github.com/pmndrs/zustand/pull/1689](https://togithub.com/pmndrs/zustand/pull/1689) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.3.6...v4.3.7 ### [`v4.3.6`](https://togithub.com/pmndrs/zustand/releases/tag/v4.3.6) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.3.5...v4.3.6) This has a little improvement for library authors. #### What's Changed - fix(react, types): relax react types by [@​lukesmurray](https://togithub.com/lukesmurray) in [https://github.com/pmndrs/zustand/pull/1589](https://togithub.com/pmndrs/zustand/pull/1589) - fix: typo in shallow.ts by [@​ysulyma](https://togithub.com/ysulyma) in [https://github.com/pmndrs/zustand/pull/1667](https://togithub.com/pmndrs/zustand/pull/1667) #### New Contributors - [@​ctolmsted](https://togithub.com/ctolmsted) made their first contribution in [https://github.com/pmndrs/zustand/pull/1670](https://togithub.com/pmndrs/zustand/pull/1670) - [@​kevin51jiang](https://togithub.com/kevin51jiang) made their first contribution in [https://github.com/pmndrs/zustand/pull/1674](https://togithub.com/pmndrs/zustand/pull/1674) - [@​lukesmurray](https://togithub.com/lukesmurray) made their first contribution in [https://github.com/pmndrs/zustand/pull/1589](https://togithub.com/pmndrs/zustand/pull/1589) - [@​ysulyma](https://togithub.com/ysulyma) made their first contribution in [https://github.com/pmndrs/zustand/pull/1667](https://togithub.com/pmndrs/zustand/pull/1667) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.3.5...v4.3.6 ### [`v4.3.5`](https://togithub.com/pmndrs/zustand/releases/tag/v4.3.5) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.3.4...v4.3.5) v4.3.4 has a regression in CJS build. Please use this version instead. #### What's Changed - fix(build): re-export createStore from index by [@​hiendv](https://togithub.com/hiendv) in [https://github.com/pmndrs/zustand/pull/1661](https://togithub.com/pmndrs/zustand/pull/1661) #### New Contributors - [@​jmantonellini](https://togithub.com/jmantonellini) made their first contribution in [https://github.com/pmndrs/zustand/pull/1485](https://togithub.com/pmndrs/zustand/pull/1485) - [@​hiendv](https://togithub.com/hiendv) made their first contribution in [https://github.com/pmndrs/zustand/pull/1661](https://togithub.com/pmndrs/zustand/pull/1661) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.3.4...v4.3.5 ### [`v4.3.4`](https://togithub.com/pmndrs/zustand/releases/tag/v4.3.4) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.3.3...v4.3.4) This version fixes some build configs for some edge cases. ⚠️ this version has an issue in CJS build. Please use v4.3.5. #### What's Changed - fix(build): UMD names by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1632](https://togithub.com/pmndrs/zustand/pull/1632) - fix(build): possibly improve ESM for production build by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1645](https://togithub.com/pmndrs/zustand/pull/1645) - fix(build): add explicit export paths for cjs by [@​barelyhuman](https://togithub.com/barelyhuman) in [https://github.com/pmndrs/zustand/pull/1659](https://togithub.com/pmndrs/zustand/pull/1659) #### New Contributors - [@​AwesomeDevin](https://togithub.com/AwesomeDevin) made their first contribution in [https://github.com/pmndrs/zustand/pull/1633](https://togithub.com/pmndrs/zustand/pull/1633) - [@​adimit](https://togithub.com/adimit) made their first contribution in [https://github.com/pmndrs/zustand/pull/1641](https://togithub.com/pmndrs/zustand/pull/1641) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.3.3...v4.3.4 ### [`v4.3.3`](https://togithub.com/pmndrs/zustand/releases/tag/v4.3.3) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.3.2...v4.3.3) This version includes some small fixes and internal improvements. #### What's Changed - fix(build): improve patch scripts by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1593](https://togithub.com/pmndrs/zustand/pull/1593) - fix(log): deprecated messages copyedit for consistency by [@​jareha](https://togithub.com/jareha) in [https://github.com/pmndrs/zustand/pull/1588](https://togithub.com/pmndrs/zustand/pull/1588) - chore: remove `__DEV__` with ts-jest by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1598](https://togithub.com/pmndrs/zustand/pull/1598) - fix(build): reorder the types field in package.json by [@​HiChen404](https://togithub.com/HiChen404) in [https://github.com/pmndrs/zustand/pull/1600](https://togithub.com/pmndrs/zustand/pull/1600) #### New Contributors - [@​nitedani](https://togithub.com/nitedani) made their first contribution in [https://github.com/pmndrs/zustand/pull/1544](https://togithub.com/pmndrs/zustand/pull/1544) - [@​nus3](https://togithub.com/nus3) made their first contribution in [https://github.com/pmndrs/zustand/pull/1550](https://togithub.com/pmndrs/zustand/pull/1550) - [@​holgergp](https://togithub.com/holgergp) made their first contribution in [https://github.com/pmndrs/zustand/pull/1565](https://togithub.com/pmndrs/zustand/pull/1565) - [@​JoaoPauloLousada](https://togithub.com/JoaoPauloLousada) made their first contribution in [https://github.com/pmndrs/zustand/pull/1605](https://togithub.com/pmndrs/zustand/pull/1605) - [@​sajadtorkamani](https://togithub.com/sajadtorkamani) made their first contribution in [https://github.com/pmndrs/zustand/pull/1606](https://togithub.com/pmndrs/zustand/pull/1606) - [@​zhangrenyang](https://togithub.com/zhangrenyang) made their first contribution in [https://github.com/pmndrs/zustand/pull/1608](https://togithub.com/pmndrs/zustand/pull/1608) - [@​jareha](https://togithub.com/jareha) made their first contribution in [https://github.com/pmndrs/zustand/pull/1588](https://togithub.com/pmndrs/zustand/pull/1588) - [@​HiChen404](https://togithub.com/HiChen404) made their first contribution in [https://github.com/pmndrs/zustand/pull/1600](https://togithub.com/pmndrs/zustand/pull/1600) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.3.2...v4.3.3 ### [`v4.3.2`](https://togithub.com/pmndrs/zustand/releases/tag/v4.3.2) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.3.1...v4.3.2) There was a regression with default export (which is deprecated) in v4.3.0 and v4.3.1. This should fix it. #### What's Changed - fix(vanilla,shallow): default export regression in CJS by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1531](https://togithub.com/pmndrs/zustand/pull/1531) - fix(middleware/persist): Fix the storage type by [@​MOZGIII](https://togithub.com/MOZGIII) in [https://github.com/pmndrs/zustand/pull/1540](https://togithub.com/pmndrs/zustand/pull/1540) #### New Contributors - [@​CatMonster](https://togithub.com/CatMonster) made their first contribution in [https://github.com/pmndrs/zustand/pull/1539](https://togithub.com/pmndrs/zustand/pull/1539) - [@​MOZGIII](https://togithub.com/MOZGIII) made their first contribution in [https://github.com/pmndrs/zustand/pull/1540](https://togithub.com/pmndrs/zustand/pull/1540) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.3.1...v4.3.2 ### [`v4.3.1`](https://togithub.com/pmndrs/zustand/releases/tag/v4.3.1) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.3.0...v4.3.1) This version supersedes v4.3.0. #### What's Changed - chore: show deprecated message only in DEV by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1523](https://togithub.com/pmndrs/zustand/pull/1523) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.3.0...v4.3.1 ### [`v4.3.0`](https://togithub.com/pmndrs/zustand/releases/tag/v4.3.0) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.2.0...v4.3.0) Throughout past years of development, we've learned the (mis)usage of the library. One of our goal is to provide smallest possible APIs. To go further, this version deprecates some features. They are still usable (with warnings), but will be removed in the future. #### What's Changed - feat: deprecate some APIs toward v5 by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1403](https://togithub.com/pmndrs/zustand/pull/1403) - feat: deprecate default export by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1514](https://togithub.com/pmndrs/zustand/pull/1514) - fix(middleware/persist): hydrate in sync (new impl with storage option) by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1518](https://togithub.com/pmndrs/zustand/pull/1518) #### New Contributors - [@​adil62](https://togithub.com/adil62) made their first contribution in [https://github.com/pmndrs/zustand/pull/1502](https://togithub.com/pmndrs/zustand/pull/1502) - [@​wcastand](https://togithub.com/wcastand) made their first contribution in [https://github.com/pmndrs/zustand/pull/1512](https://togithub.com/pmndrs/zustand/pull/1512) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.2.0...v4.3.0 ### [`v4.2.0`](https://togithub.com/pmndrs/zustand/releases/tag/v4.2.0) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.1.5...v4.2.0) This version adds some new features in middleware. #### What's Changed - feat(middleware/devtools): Better redux devtools. One connection for all zustand stores by [@​pavlobu](https://togithub.com/pavlobu) in [https://github.com/pmndrs/zustand/pull/1435](https://togithub.com/pmndrs/zustand/pull/1435) - feat(middleware/persist): new storage option by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1463](https://togithub.com/pmndrs/zustand/pull/1463) - fix(build): disable esModule and re-export for nodejs by [@​barelyhuman](https://togithub.com/barelyhuman) in [https://github.com/pmndrs/zustand/pull/1486](https://togithub.com/pmndrs/zustand/pull/1486) #### New Contributors - [@​Guchii](https://togithub.com/Guchii) made their first contribution in [https://github.com/pmndrs/zustand/pull/1476](https://togithub.com/pmndrs/zustand/pull/1476) - [@​sewera](https://togithub.com/sewera) made their first contribution in [https://github.com/pmndrs/zustand/pull/1478](https://togithub.com/pmndrs/zustand/pull/1478) - [@​pavlobu](https://togithub.com/pavlobu) made their first contribution in [https://github.com/pmndrs/zustand/pull/1435](https://togithub.com/pmndrs/zustand/pull/1435) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.1.5...v4.2.0 ### [`v4.1.5`](https://togithub.com/pmndrs/zustand/releases/tag/v4.1.5) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.1.4...v4.1.5) This version has several small improvements. #### What's Changed - fix(middleware/devtools): do not use optional catch binding syntax by [@​mskrzypek](https://togithub.com/mskrzypek) in [https://github.com/pmndrs/zustand/pull/1431](https://togithub.com/pmndrs/zustand/pull/1431) - feat(shallow): Add support of Maps and Sets to shallow comparator by [@​anton-lunev](https://togithub.com/anton-lunev) in [https://github.com/pmndrs/zustand/pull/1451](https://togithub.com/pmndrs/zustand/pull/1451) - refactor(vanilla/types): replace hardcoded types with StoreApi type by [@​Arsikod](https://togithub.com/Arsikod) in [https://github.com/pmndrs/zustand/pull/1459](https://togithub.com/pmndrs/zustand/pull/1459) - Fix: Programmatic `module.exports` addition for named and default exports in CJS by [@​barelyhuman](https://togithub.com/barelyhuman) in [https://github.com/pmndrs/zustand/pull/1460](https://togithub.com/pmndrs/zustand/pull/1460) #### New Contributors - [@​wmcb91](https://togithub.com/wmcb91) made their first contribution in [https://github.com/pmndrs/zustand/pull/1398](https://togithub.com/pmndrs/zustand/pull/1398) - [@​chrisvander](https://togithub.com/chrisvander) made their first contribution in [https://github.com/pmndrs/zustand/pull/1426](https://togithub.com/pmndrs/zustand/pull/1426) - [@​boatilus](https://togithub.com/boatilus) made their first contribution in [https://github.com/pmndrs/zustand/pull/1428](https://togithub.com/pmndrs/zustand/pull/1428) - [@​chybisov](https://togithub.com/chybisov) made their first contribution in [https://github.com/pmndrs/zustand/pull/1453](https://togithub.com/pmndrs/zustand/pull/1453) - [@​hicucu](https://togithub.com/hicucu) made their first contribution in [https://github.com/pmndrs/zustand/pull/1438](https://togithub.com/pmndrs/zustand/pull/1438) - [@​mskrzypek](https://togithub.com/mskrzypek) made their first contribution in [https://github.com/pmndrs/zustand/pull/1431](https://togithub.com/pmndrs/zustand/pull/1431) - [@​anton-lunev](https://togithub.com/anton-lunev) made their first contribution in [https://github.com/pmndrs/zustand/pull/1451](https://togithub.com/pmndrs/zustand/pull/1451) - [@​Arsikod](https://togithub.com/Arsikod) made their first contribution in [https://github.com/pmndrs/zustand/pull/1459](https://togithub.com/pmndrs/zustand/pull/1459) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.1.4...v4.1.5 ### [`v4.1.4`](https://togithub.com/pmndrs/zustand/releases/tag/v4.1.4) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.1.3...v4.1.4) This should improve some importing problems. Uncertain if it fixes everything. #### What's Changed - fix(build): use \*.d.mts for esm ('import' condition only) by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1387](https://togithub.com/pmndrs/zustand/pull/1387) - fix(build): no import.meta for "module" condition by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1393](https://togithub.com/pmndrs/zustand/pull/1393) #### New Contributors - [@​guenyoo](https://togithub.com/guenyoo) made their first contribution in [https://github.com/pmndrs/zustand/pull/1388](https://togithub.com/pmndrs/zustand/pull/1388) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.1.3...v4.1.4 ### [`v4.1.3`](https://togithub.com/pmndrs/zustand/releases/tag/v4.1.3) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.1.2...v4.1.3) This improves store types for TS users. We also upgrade rollup. Please report issues if anyone finds any. #### What's Changed - fix(types): assume `getState` and `setState` will always exist on the store by [@​devanshj](https://togithub.com/devanshj) in [https://github.com/pmndrs/zustand/pull/1371](https://togithub.com/pmndrs/zustand/pull/1371) - fix(types): fix `StateCreator` subtyping by [@​devanshj](https://togithub.com/devanshj) in [https://github.com/pmndrs/zustand/pull/1373](https://togithub.com/pmndrs/zustand/pull/1373) #### New Contributors - [@​dongkun](https://togithub.com/dongkun) made their first contribution in [https://github.com/pmndrs/zustand/pull/1352](https://togithub.com/pmndrs/zustand/pull/1352) - [@​srini-leanfolks](https://togithub.com/srini-leanfolks) made their first contribution in [https://github.com/pmndrs/zustand/pull/1357](https://togithub.com/pmndrs/zustand/pull/1357) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.1.2...v4.1.3 ### [`v4.1.2`](https://togithub.com/pmndrs/zustand/releases/tag/v4.1.2) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.1.1...v4.1.2) This includes some fixes for edge cases. Most notably, supporting old TypeScript versions. #### What's Changed - fix(context): store property missing from `useStoreApi` by [@​exuanbo](https://togithub.com/exuanbo) in [https://github.com/pmndrs/zustand/pull/1258](https://togithub.com/pmndrs/zustand/pull/1258) - fix: should use Object.is to compare two value by [@​hchlq](https://togithub.com/hchlq) in [https://github.com/pmndrs/zustand/pull/1314](https://togithub.com/pmndrs/zustand/pull/1314) - Rewrite `TakeTwo`, `SkipTwo` and `Mutate` to make them work for older ts versions too by [@​devanshj](https://togithub.com/devanshj) in [https://github.com/pmndrs/zustand/pull/1348](https://togithub.com/pmndrs/zustand/pull/1348) #### New Contributors - [@​chrisk-7777](https://togithub.com/chrisk-7777) made their first contribution in [https://github.com/pmndrs/zustand/pull/1222](https://togithub.com/pmndrs/zustand/pull/1222) - [@​timarney](https://togithub.com/timarney) made their first contribution in [https://github.com/pmndrs/zustand/pull/1223](https://togithub.com/pmndrs/zustand/pull/1223) - [@​radaelilucca](https://togithub.com/radaelilucca) made their first contribution in [https://github.com/pmndrs/zustand/pull/1230](https://togithub.com/pmndrs/zustand/pull/1230) - [@​Exalted100](https://togithub.com/Exalted100) made their first contribution in [https://github.com/pmndrs/zustand/pull/1231](https://togithub.com/pmndrs/zustand/pull/1231) - [@​dbritto-dev](https://togithub.com/dbritto-dev) made their first contribution in [https://github.com/pmndrs/zustand/pull/1236](https://togithub.com/pmndrs/zustand/pull/1236) - [@​guymoon](https://togithub.com/guymoon) made their first contribution in [https://github.com/pmndrs/zustand/pull/1267](https://togithub.com/pmndrs/zustand/pull/1267) - [@​Cuppachino](https://togithub.com/Cuppachino) made their first contribution in [https://github.com/pmndrs/zustand/pull/1291](https://togithub.com/pmndrs/zustand/pull/1291) - [@​mugi-uno](https://togithub.com/mugi-uno) made their first contribution in [https://github.com/pmndrs/zustand/pull/1303](https://togithub.com/pmndrs/zustand/pull/1303) - [@​hchlq](https://togithub.com/hchlq) made their first contribution in [https://github.com/pmndrs/zustand/pull/1315](https://togithub.com/pmndrs/zustand/pull/1315) - [@​DiemasMichiels](https://togithub.com/DiemasMichiels) made their first contribution in [https://github.com/pmndrs/zustand/pull/1325](https://togithub.com/pmndrs/zustand/pull/1325) - [@​FKSI](https://togithub.com/FKSI) made their first contribution in [https://github.com/pmndrs/zustand/pull/1326](https://togithub.com/pmndrs/zustand/pull/1326) - [@​Rec0iL99](https://togithub.com/Rec0iL99) made their first contribution in [https://github.com/pmndrs/zustand/pull/1344](https://togithub.com/pmndrs/zustand/pull/1344) - [@​kpue](https://togithub.com/kpue) made their first contribution in [https://github.com/pmndrs/zustand/pull/1346](https://togithub.com/pmndrs/zustand/pull/1346) - [@​exuanbo](https://togithub.com/exuanbo) made their first contribution in [https://github.com/pmndrs/zustand/pull/1258](https://togithub.com/pmndrs/zustand/pull/1258) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.1.1...v4.1.2 ### [`v4.1.1`](https://togithub.com/pmndrs/zustand/releases/tag/v4.1.1) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.1.0...v4.1.1) In v4.1.0, there are some TypeScript type issues in `redux` and `devtools` middleware, which should be fixed. #### What's Changed - fix(middleware): revert types of redux middleware by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1206](https://togithub.com/pmndrs/zustand/pull/1206) - fix(types)(middleware/devtools): copy devtools option types instead of importing by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1207](https://togithub.com/pmndrs/zustand/pull/1207) - refactor(types): prefer using import type by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1208](https://togithub.com/pmndrs/zustand/pull/1208) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.1.0...v4.1.1 ### [`v4.1.0`](https://togithub.com/pmndrs/zustand/releases/tag/v4.1.0) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v4.0.0...v4.1.0) This supports non-object state. It's probably one of the biggest changes in API design throughout the zustand development history. But, probably 99.9% of users won't use it 😝 . #### What's Changed - fix(types)(middleware/devtools): fix action type in devtools's setState by [@​lucasrabiec](https://togithub.com/lucasrabiec) in [https://github.com/pmndrs/zustand/pull/1183](https://togithub.com/pmndrs/zustand/pull/1183) - feat(vanilla): non-object state by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1144](https://togithub.com/pmndrs/zustand/pull/1144) - fix(types)(middleware): use official Config type for options by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1200](https://togithub.com/pmndrs/zustand/pull/1200) - fix(types): typo in jsdoc and follow-up [#​1144](https://togithub.com/pmndrs/zustand/issues/1144) by [@​devanshj](https://togithub.com/devanshj) in [https://github.com/pmndrs/zustand/pull/1199](https://togithub.com/pmndrs/zustand/pull/1199) #### New Contributors - [@​garrett-hopper](https://togithub.com/garrett-hopper) made their first contribution in [https://github.com/pmndrs/zustand/pull/1152](https://togithub.com/pmndrs/zustand/pull/1152) - [@​satvikpendem](https://togithub.com/satvikpendem) made their first contribution in [https://github.com/pmndrs/zustand/pull/1163](https://togithub.com/pmndrs/zustand/pull/1163) - [@​markroze](https://togithub.com/markroze) made their first contribution in [https://github.com/pmndrs/zustand/pull/1188](https://togithub.com/pmndrs/zustand/pull/1188) - [@​lucasrabiec](https://togithub.com/lucasrabiec) made their first contribution in [https://github.com/pmndrs/zustand/pull/1184](https://togithub.com/pmndrs/zustand/pull/1184) - [@​spenceradolph](https://togithub.com/spenceradolph) made their first contribution in [https://github.com/pmndrs/zustand/pull/1193](https://togithub.com/pmndrs/zustand/pull/1193) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.0.0...v4.1.0 ### [`v4.0.0`](https://togithub.com/pmndrs/zustand/releases/tag/v4.0.0) [Compare Source](https://togithub.com/pmndrs/zustand/compare/v3.7.2...v4.0.0) ### 🎉 🎉 🎉 Zustand v4 is here 🎉 🎉 🎉 #### Backward compatible with v3 in JS v4 API is completely backward compatible, so it's just nothing to update if you are JS users. One note is v4 depends on [use-sync-external-store](https://npmjs.com/package/use-sync-external-store). There might be some bundling issues. Please report them if you encounter such cases. #### TypeScript types are rewritten To better support types with middleware, v4 TypeScript code is rewritten. Please find [docs/typescript.md](https://togithub.com/pmndrs/zustand/blob/main/docs/typescript.md) for more information. #### New API for context usage In v3, `zustand/context` is provided as a workaround. v4 API exposes `createStore` and `useStore`, which are more flexible. Please read [this](https://togithub.com/pmndrs/zustand#react-context) for usage. If you are unsure about the usage, open [a new discussion](https://togithub.com/pmndrs/zustand/discussions/new). Counter example: https://codesandbox.io/s/polished-pond-4jn1e2 #### Deprecated APIs are removed Some APIs are already deprecated in v3, and they are removed in v4. Please make sure to update to the latest version of v3 before migrating to v4. #### What's Changed - breaking(vanilla): drop deprecated store.subscribe with selector by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/604](https://togithub.com/pmndrs/zustand/pull/604) - breaking(middleware): drop deprecated persist options and make removeItem required by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/598](https://togithub.com/pmndrs/zustand/pull/598) - breaking(core): drop v2 hook compatibility by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/597](https://togithub.com/pmndrs/zustand/pull/597) - breaking(types): drop deprecated UseStore type by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/596](https://togithub.com/pmndrs/zustand/pull/596) - feat: use-sync-external-store by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/550](https://togithub.com/pmndrs/zustand/pull/550) - breaking(middleware/devtools): use official devtools extension types by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/819](https://togithub.com/pmndrs/zustand/pull/819) - breaking(middleware/devtools): remove deprecations and warnings by [@​devanshj](https://togithub.com/devanshj) in [https://github.com/pmndrs/zustand/pull/892](https://togithub.com/pmndrs/zustand/pull/892) - fix(build): separate vanilla build by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/904](https://togithub.com/pmndrs/zustand/pull/904) - breaking(types): Add higher kinded mutator types by [@​devanshj](https://togithub.com/devanshj) in [https://github.com/pmndrs/zustand/pull/725](https://togithub.com/pmndrs/zustand/pull/725) - fix(index): export createStore from vanilla by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/914](https://togithub.com/pmndrs/zustand/pull/914) - fix(middleware): separate immer middleware by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/915](https://togithub.com/pmndrs/zustand/pull/915) - fix(middleware/devtools): add `enabled` option and show devtools warning only if enabled by [@​Aslemammad](https://togithub.com/Aslemammad) in [https://github.com/pmndrs/zustand/pull/880](https://togithub.com/pmndrs/zustand/pull/880) - breaking(middleware/devtools): remove checking old string option by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/933](https://togithub.com/pmndrs/zustand/pull/933) - Fix TS4023 and other minor changes by [@​devanshj](https://togithub.com/devanshj) in [https://github.com/pmndrs/zustand/pull/940](https://togithub.com/pmndrs/zustand/pull/940) - fix(types): avoid any in react.ts by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/941](https://togithub.com/pmndrs/zustand/pull/941) - fix(build): add downlevel-dts by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1005](https://togithub.com/pmndrs/zustand/pull/1005) - refactor: prefer interfaces by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1012](https://togithub.com/pmndrs/zustand/pull/1012) - fix(types): Mark more methods bivariant by [@​RyanCavanaugh](https://togithub.com/RyanCavanaugh) in [https://github.com/pmndrs/zustand/pull/1029](https://togithub.com/pmndrs/zustand/pull/1029) - fix(types): remove `Partial` typo from `persist` by [@​devanshj](https://togithub.com/devanshj) in [https://github.com/pmndrs/zustand/pull/1051](https://togithub.com/pmndrs/zustand/pull/1051) - fix(shallow): restrict types by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1070](https://togithub.com/pmndrs/zustand/pull/1070) - feature(persist): add method getOptions on persist api and update documentation by [@​tbor00](https://togithub.com/tbor00) in [https://github.com/pmndrs/zustand/pull/1075](https://togithub.com/pmndrs/zustand/pull/1075) - feat(types): minimize types by deprecating them by [@​devanshj](https://togithub.com/devanshj) in [https://github.com/pmndrs/zustand/pull/1089](https://togithub.com/pmndrs/zustand/pull/1089) - fix(build): a workaround for ESM for use-sync-external-store by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/953](https://togithub.com/pmndrs/zustand/pull/953) - fix(types): use TS interfaces only for public api by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1106](https://togithub.com/pmndrs/zustand/pull/1106) - fix(shallow): types with useStore by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1108](https://togithub.com/pmndrs/zustand/pull/1108) - fix(shallow): types with useStore again by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1117](https://togithub.com/pmndrs/zustand/pull/1117) - refactor(types): avoid using deprecated types by [@​dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/1122](https://togithub.com/pmndrs/zustand/pull/1122) #### New Contributors - [@​piotr-cz](https://togithub.com/piotr-cz) made their first contribution in [https://github.com/pmndrs/zustand/pull/927](https://togithub.com/pmndrs/zustand/pull/927) - [@​mahendradambe](https://togithub.com/mahendradambe) made their first contribution in [https://github.com/pmndrs/zustand/pull/956](https://togithub.com/pmndrs/zustand/pull/956) - [@​Himself65](https://togithub.com/Himself65) made their first contribution in [https://github.com/pmndrs/zustand/pull/978](https://togithub.com/pmndrs/zustand/pull/978) - [@​jenglamlow](https://togithub.com/jenglamlow) made their first contribution in [https://github.com/pmndrs/zustand/pull/988](https://togithub.com/pmndrs/zustand/pull/988) - [@​InfiniteXyy](https://togithub.com/InfiniteXyy) made their first contribution in [https://github.com/pmndrs/zustand/pull/1006](https://togithub.com/pmndrs/zustand/pull/1006) - [@​guilleon-velasco](https://togithub.com/guilleon-velasco) made their first contribution in [https://github.com/pmndrs/zustand/pull/1009](https://togithub.com/pmndrs/zustand/pull/1009) - [@​sepehr-safari](https://togithub.com/sepehr-safari) made their first contribution in [https://github.com/pmndrs/zustand/pull/1049](https://togithub.com/pmndrs/zustand/pull/1049) - [@​rnike](https://togithub.com/rnike) made their first contribution in [https://github.com/pmndrs/zustand/pull/1056](https://togithub.com/pmndrs/zustand/pull/1056) - [@​tbor00](https://togithub.com/tbor00) made their first contribution in [https://github.com/pmndrs/zustand/pull/1071](https://togithub.com/pmndrs/zustand/pull/1071) - [@​Carnageous](https://togithub.com/Carnageous) made their first contribution in [https://github.com/pmndrs/zustand/pull/1057](https://togithub.com/pmndrs/zustand/pull/1057) - [@​xlboy](https://togithub.com/xlboy) made their first contribution in [https://github.com/pmndrs/zustand/pull/1082](https://togithub.com/pmndrs/zustand/pull/1082) - [@​RyanCavanaugh](https://togithub.com/RyanCavanaugh) made their first contribution in [https://github.com/pmndrs/zustand/pull/1029](https://togithub.com/pmndrs/zustand/pull/1029) - [@​Gabriel-Alves-Cunha](https://togithub.com/Gabriel-Alves-Cunha) made their first contribution in [https://github.com/pmndrs/zustand/pull/997](https://togithub.com/pmndrs/zustand/pull/997) - [@​chann44](https://togithub.com/chann44) made their first contribution in [https://github.com/pmndrs/zustand/pull/1016](https://togithub.com/pmndrs/zustand/pull/1016) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v3.7.2...v4.0.0

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

netlify[bot] commented 2 years ago

Deploy Preview for jahresbericht-2021 failed.

Name Link
Latest commit 34a532091ba5ed76bfaa64e0f89829e471cbfcff
Latest deploy log https://app.netlify.com/sites/jahresbericht-2021/deploys/667c17bdc653f40008c7eb9d
socket-security[bot] commented 1 year ago

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

socket-security[bot] commented 1 year ago

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
zustand 3.7.2...4.4.7 environment +2/-0 1.23 MB