chore(deps): bump zustand from 4.3.8 to 5.0.3#181
chore(deps): bump zustand from 4.3.8 to 5.0.3#181dependabot[bot] wants to merge 1 commit intomasterfrom
Conversation
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>
JiwaniZakir
left a comment
There was a problem hiding this comment.
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.
Bumps zustand from 4.3.8 to 5.0.3.
Release notes
Sourced from zustand's releases.
... (truncated)
Commits
3f9127f5.0.36eff6e7chore(deps): update dev dependencies (#2944)4378abefix(build): alias entries in rollup config (#2942)d2ac820feat(types): Make ExtractState public (#2935)929b547docs(create-store.md): fix incorrect usage ofcreatefunction in example (#...efaf416docs(create.md): fix state selector syntax in troubleshooting example (#2938)07b32d6change prettier to fix:format (#2936)6759fcbchore(.github/workflows): change 'node-version' to 'lts/*' in 'actions/setup-...2e6d881chore(eslint): change 'dist' area in 'ignores', sort rules (#2924)55a7d0achore(eslint): migrate to flat config and simplify (#2912)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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)