Skip to content

chore(deps): bump zustand from 4.5.7 to 5.0.11 in /frontend#1309

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/frontend/zustand-5.0.11
Closed

chore(deps): bump zustand from 4.5.7 to 5.0.11 in /frontend#1309
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/frontend/zustand-5.0.11

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 2, 2026

Bumps zustand from 4.5.7 to 5.0.11.

Release notes

Sourced from zustand's releases.

v5.0.11

This release includes small improvements in middleware thanks to contributors.

What's Changed

New Contributors

Full Changelog: pmndrs/zustand@v5.0.10...v5.0.11

v5.0.10

This version includes a fix to the persist middleware for an edge case.

What's Changed

New Contributors

Full Changelog: pmndrs/zustand@v5.0.9...v5.0.10

v5.0.9

This includes experimental middleware unstable_ssrSafe for a new usage with Next.js. Related discussion: pmndrs/zustand#2740

What's Changed

New Contributors

... (truncated)

Commits
  • 99379a6 5.0.11
  • c81b4eb chore(deps): update dev dependencies (#3375)
  • 3871d53 fix(immer): Proper typing for immer middleware in combination with slices (#...
  • 9b505ac fix(persist): use window.localStorage as default storage reference (#3367)
  • 267a57c Update code block in tutorial-tic-tac-toe.md (#3373)
  • 6813f7b docs: remove stray Russian comment in beginner-typescript guide (#3369)
  • d9ea330 docs(testing): fix undefined counterStoreRef variable (#3368)
  • 6e026d7 chore: improve typing in devtools middleware (#3362)
  • e7d4593 Revert "chore(deps): bump pmndrs/docs/.github/workflows/build.yml from 2 to 3...
  • 0f49ad8 chore(deps): bump pmndrs/docs/.github/workflows/build.yml from 2 to 3 (#3364)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for zustand since your current version.


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

Note

Medium Risk
Major upgrade of zustand could introduce subtle runtime/typing changes across multiple client-side stores (including persist/shallow usage), despite no app code changes. Lockfile churn also updates a few transitive packages, which could affect builds in edge environments.

Overview
Bumps the frontend state-management dependency zustand from 4.5.7 to 5.0.11.

Updates pnpm-lock.yaml accordingly, including the new zustand peer dependency on use-sync-external-store and incidental transitive version bumps (e.g., @codemirror/*, @types/node, semver, isexe).

Written by Cursor Bugbot for commit 95f5394. This will update automatically on new commits. Configure here.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 2, 2026
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Bumps [zustand](https://github.com/pmndrs/zustand) from 4.5.7 to 5.0.11.
- [Release notes](https://github.com/pmndrs/zustand/releases)
- [Commits](pmndrs/zustand@4.5.7...v5.0.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/frontend/zustand-5.0.11 branch from c556fa1 to 95f5394 Compare March 3, 2026 18:02
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

"yaml": "^2.8.1",
"zod": "^4.3.6",
"zustand": "^4.5.7"
"zustand": "^5.0.11"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Zustand v5 upgrade breaks selectors returning new objects

High Severity

Bumping zustand from v4 to v5 introduces infinite re-render loops. In v5, useStore uses React's useSyncExternalStore with Object.is comparison, so selectors returning new object literals (e.g., (state) => ({ a: state.a, b: state.b })) produce unstable references that trigger endless re-renders. This pattern is used extensively throughout the codebase — in InfiniteDataTable, useSelection, ColumnsMenu, EvalColumnsMenu, EvaluationDatapointsTableContent, and many callers of useAdvancedSearchContext, useChartBuilderStoreContext, and useDashboardEditorStoreContext. Each needs wrapping with useShallow or refactoring to select individual values.

Fix in Cursor Fix in Web

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 23, 2026

Superseded by #1483.

@dependabot dependabot bot closed this Mar 23, 2026
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/frontend/zustand-5.0.11 branch March 23, 2026 16:07
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 javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant