Skip to content

chore(deps): bump zustand from 4.3.8 to 5.0.3#181

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/zustand-5.0.3
Open

chore(deps): bump zustand from 4.3.8 to 5.0.3#181
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/zustand-5.0.3

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot bot commented on behalf of github Jan 13, 2025

Bumps zustand from 4.3.8 to 5.0.3.

Release notes

Sourced from zustand's releases.

v5.0.3

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

This fixes some issues in middleware.

What's Changed

New Contributors

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

v5.0.1

This fixes shallow function for some edge cases.

What's Changed

New Contributors

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

v5.0.0

... (truncated)

Commits
  • 3f9127f 5.0.3
  • 6eff6e7 chore(deps): update dev dependencies (#2944)
  • 4378abe fix(build): alias entries in rollup config (#2942)
  • d2ac820 feat(types): Make ExtractState public (#2935)
  • 929b547 docs(create-store.md): fix incorrect usage of create function in example (#...
  • efaf416 docs(create.md): fix state selector syntax in troubleshooting example (#2938)
  • 07b32d6 change prettier to fix:format (#2936)
  • 6759fcb chore(.github/workflows): change 'node-version' to 'lts/*' in 'actions/setup-...
  • 2e6d881 chore(eslint): change 'dist' area in 'ignores', sort rules (#2924)
  • 55a7d0a chore(eslint): migrate to flat config and simplify (#2912)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [zustand](https://github.com/pmndrs/zustand) from 4.3.8 to 5.0.3.
- [Release notes](https://github.com/pmndrs/zustand/releases)
- [Commits](pmndrs/zustand@v4.3.8...v5.0.3)

---
updated-dependencies:
- dependency-name: zustand
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 13, 2025
Copy link
Copy Markdown

@JiwaniZakir JiwaniZakir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff only updates package.json and yarn.lock, but zustand v5 introduced a breaking change: the default export was removed in favor of a named export (import { create } from 'zustand' instead of import create from 'zustand'). Without corresponding updates to every store file in the codebase, this bump will cause runtime errors wherever the old default import is used.

It's also worth verifying any middleware usage (e.g., persist, devtools, immer) — zustand v5 changed how middleware is typed and composed, so stores using those patterns may need updates beyond just the import style.

The removal of the use-sync-external-store "1.2.0" pinned dependency from the lock file is expected, since zustand v5 bundles useSyncExternalStore directly from React 18+ rather than relying on the shim package — but this implicitly tightens the React version requirement, so confirming the project's peerDependencies align with React 18 is worth a quick check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant