Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 28, 2025

This PR contains the following updates:

Package Change Age Confidence
zustand 4.5.7 -> 5.0.9 age confidence

Release Notes

pmndrs/zustand (zustand)

v5.0.9

Compare Source

v5.0.8

Compare Source

A bug fix in shallow and a tiny improvement in persist.

What's Changed

New Contributors

Full Changelog: pmndrs/zustand@v5.0.7...v5.0.8

v5.0.7

Compare Source

This enables a small optimization in some edge cases.

What's Changed

New Contributors

Full Changelog: pmndrs/zustand@v5.0.6...v5.0.7

v5.0.6

Compare Source

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

Full Changelog: pmndrs/zustand@v5.0.5...v5.0.6

v5.0.5

Compare Source

It comes with some small improvements.

What's Changed

New Contributors

Full Changelog: pmndrs/zustand@v5.0.4...v5.0.5

v5.0.4

Compare Source

This fixes module resolution issue for React Native users.

What's Changed

New Contributors

Full Changelog: pmndrs/zustand@v5.0.3...v5.0.4

v5.0.3

Compare Source

ExtractState is a type util to extract state type from store type.

What's Changed

New Contributors

Full Changelog: pmndrs/zustand@v5.0.2...v5.0.3

v5.0.2

Compare Source

This fixes some issues in middleware.

What's Changed

New Contributors

Full Changelog: pmndrs/zustand@v5.0.1...v5.0.2

v5.0.1

Compare Source

This fixes shallow function for some edge cases.

What's Changed

  • fix(shallow): fallback map-like iterator comparison by @​dai-shi in #​2795
  • fix(shallow): iterable-like insensitive keys order comparison (alternate implementation) by @​dai-shi in #​2821

New Contributors

Full Changelog: pmndrs/zustand@v5.0.0...v5.0.1

v5.0.0

Compare Source

🎉🎉🎉 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

New Contributors

Full Changelog: pmndrs/zustand@v4.5.5...v5.0.0


Configuration

📅 Schedule: Branch creation - "after 9pm,before 6am" in timezone Europe/Zurich, 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.


  • If you want to rebase/retry this PR, check this box

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

@renovate renovate bot force-pushed the renovate/zustand-5.x branch 5 times, most recently from a586419 to 148bc5e Compare June 2, 2025 03:34
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 4 times, most recently from b66c0eb to 0ac1420 Compare June 11, 2025 04:56
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 2 times, most recently from 33a29ec to 4c75c4e Compare June 17, 2025 04:33
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 7 times, most recently from 74bc650 to 7a2afa0 Compare June 29, 2025 03:06
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 5 times, most recently from 8b19bea to 25eeb12 Compare July 4, 2025 09:29
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 5 times, most recently from dbf0813 to c81e927 Compare July 16, 2025 10:31
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 4 times, most recently from fe8d84c to 4b9db1d Compare October 7, 2025 02:52
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 4 times, most recently from 4d5b296 to a0b8a42 Compare October 15, 2025 04:03
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 4 times, most recently from c6a2557 to 5f36b2b Compare October 21, 2025 06:49
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 3 times, most recently from e172a47 to 9e866a1 Compare October 29, 2025 09:08
@renovate renovate bot force-pushed the renovate/zustand-5.x branch from 9e866a1 to fed33a6 Compare November 3, 2025 08:08
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 2 times, most recently from 8a4c7e4 to eaab3f8 Compare November 13, 2025 05:00
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 3 times, most recently from 1f60ecb to 6eee436 Compare November 24, 2025 06:32
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 5 times, most recently from cc42843 to a5ba6f2 Compare December 4, 2025 11:09
@renovate renovate bot force-pushed the renovate/zustand-5.x branch 2 times, most recently from de01b1a to e2be57b Compare December 8, 2025 06:34
@renovate renovate bot force-pushed the renovate/zustand-5.x branch from e2be57b to fcd42f5 Compare December 9, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant