lobehub / lobe-midjourney-webui

⛵️ Midjourney WebUI - This plugin can integrate with Midjourney in LobeChat.
https://midjourney-webui.lobehub.com
MIT License
142 stars 41 forks source link

Update dependency zustand to v5 #43

Open renovate[bot] opened 1 month ago

renovate[bot] commented 1 month ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
zustand ^4.5.2 -> ^5.0.0 age adoption passing confidence

Release Notes

pmndrs/zustand (zustand) ### [`v5.0.1`](https://redirect.github.com/pmndrs/zustand/releases/tag/v5.0.1) [Compare Source](https://redirect.github.com/pmndrs/zustand/compare/v5.0.0...v5.0.1) This fixes `shallow` function for some edge cases. #### What's Changed - fix(shallow): fallback map-like iterator comparison by [@​dai-shi](https://redirect.github.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/2795](https://redirect.github.com/pmndrs/zustand/pull/2795) - fix(shallow): iterable-like insensitive keys order comparison (alternate implementation) by [@​dai-shi](https://redirect.github.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/2821](https://redirect.github.com/pmndrs/zustand/pull/2821) #### New Contributors - [@​legcy143](https://redirect.github.com/legcy143) made their first contribution in [https://github.com/pmndrs/zustand/pull/2799](https://redirect.github.com/pmndrs/zustand/pull/2799) - [@​kretajak](https://redirect.github.com/kretajak) made their first contribution in [https://github.com/pmndrs/zustand/pull/2822](https://redirect.github.com/pmndrs/zustand/pull/2822) - [@​steaks](https://redirect.github.com/steaks) made their first contribution in [https://github.com/pmndrs/zustand/pull/2824](https://redirect.github.com/pmndrs/zustand/pull/2824) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v5.0.0...v5.0.1 ### [`v5.0.0`](https://redirect.github.com/pmndrs/zustand/releases/tag/v5.0.0) [Compare Source](https://redirect.github.com/pmndrs/zustand/compare/v4.5.5...v5.0.0) ### 🎉🎉🎉 Zustand v5 🐻🐻🐻 #### TL;DR - No new features - Drop many old things - Migration from v4 should be smooth. #### Changes in v5 - Drop default exports - Drop deprecated features - Make React 18 the minimum required version - Make use-sync-external-store a peer dependency (required for `createWithEqualityFn` and `useStoreWithEqualityFn` in `zustand/traditional`) - Make TypeScript 4.5 the minimum required version - Drop UMD/SystemJS support - Organize entry points in the package.json - Drop ES5 support - Stricter types when setState's replace flag is set - Persist middleware behavioral change - Other small improvements (technically breaking changes) #### Migration Guide Read the migration guide carefully: https://github.com/pmndrs/zustand/blob/main/docs/migrations/migrating-to-v5.md ##### Frequently Reported Issue During the RC period, some users encountered the following infinite loop error: Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops. This case was already a non-ideal behavior in v4 but appears more explicitly as an error in v5. While there are several ways to resolve this, using `useShallow` often fixes the problem. #### What's Changed - v5 by [@​dai-shi](https://redirect.github.com/dai-shi) in [https://github.com/pmndrs/zustand/pull/2138](https://redirect.github.com/pmndrs/zustand/pull/2138) - Fix Immer type inference for `setState` by [@​chrisvander](https://redirect.github.com/chrisvander) in [https://github.com/pmndrs/zustand/pull/2696](https://redirect.github.com/pmndrs/zustand/pull/2696) #### New Contributors - [@​abernier](https://redirect.github.com/abernier) made their first contribution in [https://github.com/pmndrs/zustand/pull/2674](https://redirect.github.com/pmndrs/zustand/pull/2674) - [@​tthallos](https://redirect.github.com/tthallos) made their first contribution in [https://github.com/pmndrs/zustand/pull/2501](https://redirect.github.com/pmndrs/zustand/pull/2501) - [@​sagiereder](https://redirect.github.com/sagiereder) made their first contribution in [https://github.com/pmndrs/zustand/pull/2673](https://redirect.github.com/pmndrs/zustand/pull/2673) - [@​melutovich](https://redirect.github.com/melutovich) made their first contribution in [https://github.com/pmndrs/zustand/pull/2692](https://redirect.github.com/pmndrs/zustand/pull/2692) - [@​rgksugan](https://redirect.github.com/rgksugan) made their first contribution in [https://github.com/pmndrs/zustand/pull/2695](https://redirect.github.com/pmndrs/zustand/pull/2695) - [@​Anuovec](https://redirect.github.com/Anuovec) made their first contribution in [https://github.com/pmndrs/zustand/pull/2708](https://redirect.github.com/pmndrs/zustand/pull/2708) - [@​EthanRBrown](https://redirect.github.com/EthanRBrown) made their first contribution in [https://github.com/pmndrs/zustand/pull/2717](https://redirect.github.com/pmndrs/zustand/pull/2717) - [@​mym0404](https://redirect.github.com/mym0404) made their first contribution in [https://github.com/pmndrs/zustand/pull/2730](https://redirect.github.com/pmndrs/zustand/pull/2730) - [@​87xie](https://redirect.github.com/87xie) made their first contribution in [https://github.com/pmndrs/zustand/pull/2745](https://redirect.github.com/pmndrs/zustand/pull/2745) - [@​f312213213](https://redirect.github.com/f312213213) made their first contribution in [https://github.com/pmndrs/zustand/pull/2761](https://redirect.github.com/pmndrs/zustand/pull/2761) - [@​DanThemes](https://redirect.github.com/DanThemes) made their first contribution in [https://github.com/pmndrs/zustand/pull/2764](https://redirect.github.com/pmndrs/zustand/pull/2764) - [@​chaficnajjar](https://redirect.github.com/chaficnajjar) made their first contribution in [https://github.com/pmndrs/zustand/pull/2770](https://redirect.github.com/pmndrs/zustand/pull/2770) - [@​goosewobbler](https://redirect.github.com/goosewobbler) made their first contribution in [https://github.com/pmndrs/zustand/pull/2781](https://redirect.github.com/pmndrs/zustand/pull/2781) - [@​Amyssyko](https://redirect.github.com/Amyssyko) made their first contribution in [https://github.com/pmndrs/zustand/pull/2784](https://redirect.github.com/pmndrs/zustand/pull/2784) - [@​MartinGamesCZ](https://redirect.github.com/MartinGamesCZ) made their first contribution in [https://github.com/pmndrs/zustand/pull/2785](https://redirect.github.com/pmndrs/zustand/pull/2785) **Full Changelog**: https://github.com/pmndrs/zustand/compare/v4.5.5...v5.0.0

Configuration

📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, 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.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-midjourney-webui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 20, 2024 1:33am
lobehubbot commented 1 month ago

👍 @renovate[bot]

Thank you for raising your pull request and contributing to our Community Please make sure you have followed our contributing guidelines. We will review it as soon as possible. If you encounter any problems, please feel free to connect with us.\ 非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。 如果您遇到任何问题,请随时与我们联系。