Skip to content

build(deps): bump zustand from 4.5.7 to 5.0.12 in /frontend#1483

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/frontend/zustand-5.0.12
Open

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

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

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

Bumps zustand from 4.5.7 to 5.0.12.

Release notes

Sourced from zustand's releases.

v5.0.12

Two small fixes.

What's Changed

New Contributors

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

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

... (truncated)

Commits
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-version upgrade of the app’s primary client-side state library (zustand) could introduce subtle runtime/typing behavior changes in stores and middleware (e.g., persist, devtools), despite no code changes beyond dependency resolution.

Overview
Updates frontend to use zustand v5.0.12 (from v4.5.7) and refreshes pnpm-lock.yaml accordingly, including the new use-sync-external-store peer dependency wiring.

Lockfile churn also bumps a few transitive build/editor dependencies (e.g., CodeMirror, enhanced-resolve, tapable, terser-webpack-plugin).

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

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

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 23, 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.

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.

Fix All in Cursor

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.12"
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 drops useStore equality function third argument

High Severity

Bumping zustand from v4 to v5 breaks useSignalStoreContext in frontend/components/signal/store.tsx, which passes an equalityFn as the third argument to useStore(store, selector, equalityFn). In zustand v5, useStore no longer accepts an equality function — that parameter is silently ignored at runtime. Multiple callers (in cluster-breadcrumbs.tsx, cluster-list/index.tsx, clusters-section/index.tsx, events-table/index.tsx) pass shallow as the equality function, but since it's now ignored, selectors returning new array/object references will trigger re-renders on every state change, causing potential performance degradation or render loops. The fix is to use useStoreWithEqualityFn from zustand/traditional or wrap selectors with useShallow.

Fix in Cursor Fix in Web

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