OPHJOD-851: Upgrade zustand from 5.0.0-rc.2 to 5.0.0 #260
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Snyk has created this PR to upgrade zustand from 5.0.0-rc.2 to 5.0.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 1 version ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: zustand
-
5.0.0 - 2024-10-14
- No new features
- Drop many old things
- Migration from v4 should be smooth.
- Drop default exports
- Drop deprecated features
- Make React 18 the minimum required version
- Make use-sync-external-store a peer dependency (required for
- 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)
- v5 by @ dai-shi in #2138
- Fix Immer type inference for
- @ abernier made their first contribution in #2674
- @ tthallos made their first contribution in #2501
- @ sagiereder made their first contribution in #2673
- @ melutovich made their first contribution in #2692
- @ rgksugan made their first contribution in #2695
- @ Anuovec made their first contribution in #2708
- @ EthanRBrown made their first contribution in #2717
- @ mym0404 made their first contribution in #2730
- @ 87xie made their first contribution in #2745
- @ f312213213 made their first contribution in #2761
- @ DanThemes made their first contribution in #2764
- @ chaficnajjar made their first contribution in #2770
- @ goosewobbler made their first contribution in #2781
- @ Amyssyko made their first contribution in #2784
- @ MartinGamesCZ made their first contribution in #2785
-
5.0.0-rc.2 - 2024-09-15
- chore: enable isolatedDeclarations by @ dai-shi in #2738
- revert useShallow refactor in #2701 by @ dai-shi in #2703
- @ Anuovec made their first contribution in #2708
- @ EthanRBrown made their first contribution in #2717
- @ mym0404 made their first contribution in #2730
from zustand GitHub release notes🎉🎉🎉 Zustand v5 🐻🐻🐻
TL;DR
Changes in v5
createWithEqualityFnanduseStoreWithEqualityFninzustand/traditional)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:
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
useShallowoften fixes the problem.What's Changed
setStateby @ chrisvander in #2696New Contributors
Full Changelog: v4.5.5...v5.0.0
Hopefully, this will be the last RC, unless we have serious bug reports in #2741.
What's Changed
New Contributors
Full Changelog: v5.0.0-rc.1...v5.0.0-rc.2
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: