Skip to content

chore(deps): bump @reduxjs/toolkit from 1.9.5 to 2.12.0#5897

Open
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/reduxjs/toolkit-2.11.2
Open

chore(deps): bump @reduxjs/toolkit from 1.9.5 to 2.12.0#5897
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/reduxjs/toolkit-2.11.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 12, 2026

Bumps @reduxjs/toolkit from 1.9.5 to 2.12.0.

Release notes

Sourced from @​reduxjs/toolkit's releases.

v2.12.0

This feature release adds RTK usage skills files (via TanStack Intent) exports the RTK Query hook options types for reusability, fixes issues with infinite query status flags and batching handling, and makes some small TS improvements.

Changelog

Skills Files

We've generated agent skill files that are now included in the RTK package itself in a skills folder. They cover using and migrating to modern RTK, client and server state management, and handling side effects. You can point your agent at these skills yourself, or use TanStack Intent to pick them up.

TypeScript Improvements

The types for our RTK Query hook options are now exported, which lets you stop using Parameters to extract those types for use in your own code.

The types for listener middleware matchers were tweaked to allow interface-based type guards, not just type-based definitions.

The internal IgnorePaths type was renamed to IgnoredPaths for consistency.

We now use the built-in NoInfer util that comes with TS 5.4+.

Fixes

We fixed handling of the isSuccess status flag when switching infinite query cache entries. This should prevent accidental UI flashes that were occurring due to this flag accidentally flipping.

We've added a 100ms timeout fallback to the autoBatch enhancer's requestAnimationFrame timer. We had several reports that rAF didn't work correctly when used in background tabs / opened windows, and that RTK never updated the UI. This should ensure that the updates flush correctly.

What's Changed

Full Changelog: reduxjs/redux-toolkit@v2.11.2...v2.12.0

v2.11.2

This bugfix release updates the AbortSignal handling to fall back if DOMException isn't available (such as RN environments), and updates the TypedUseInfiniteQueryHookResult type to correctly include fetchNextPage/fetchPreviousPage fields.

Changelog

Bugfixes

The AbortSignal changes in 2.11.1 used DOMException in a couple places to match the expected behavior of AbortSignal, but turns out that's not available in environments like React Native. We've updated the logic to fall back to a plain Error if DOMException isn't available.

The TypedUseInfiniteQueryHookResult type wasn't correctly including the fetchNextPage/fetchPreviousPage fields, and now it does.

What's Changed

... (truncated)

Commits
  • 576a02f Release 2.12.0
  • de2d55e Merge pull request #5237 from aryaemami59/fix/codegen/generateEndpoints-retur...
  • ac807c3 fix(codegen): narrow generateEndpoints return type
  • 01ed3ba Merge pull request #5289 from aryaemami59/feat/toolkit/switch-to-native-NoInfer
  • 1f16db1 Merge pull request #5290 from aryaemami59/build/toolkit/exclude-test-files-fr...
  • 23783c1 build(toolkit): exclude test files from final bundle
  • 91b8b0a feat(toolkit)!: switch to native NoInfer utility type
  • 0b37f1a Merge pull request #5286 from aryaemami59/docs/toolkit/fix-typos
  • 3cd62c8 fix unforwardedActions
  • 64853cc chore: fix various typos
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​reduxjs/toolkit since your current version.



Note

Medium Risk
Major Redux/RTK major-version bump affects global state typing and dispatch behavior; risk is mitigated by dependency pins and broad test updates rather than production logic changes.

Overview
Upgrades the UI Redux stack to Redux Toolkit 2.12, react-redux 9, redux 5, and redux-thunk 3, with a redux resolution pin and removal of @types/react-redux.

TypeScript and test harness: Adds redux-augment.d.ts (thunk-friendly Dispatch) and includes it from desktop tsconfig. Switches default import thunk to import { thunk }. Expands test-utils default state (azure, vectorSet) and allows EnhancedStore in render options.

Tests: Widespread useSelector/useDispatch casts via unknown as jest.Mock; vector-search specs preload full app.features initial state; Node.spec uses mutable store state + proper subscribe unsubscribe; slice/telemetry tests use @@INIT and explicit react-redux mocks where needed.

Reviewed by Cursor Bugbot for commit 635cf64. Bugbot is set up for automated code reviews on this repo. Configure here.

@dependabot dependabot Bot requested a review from a team as a code owner May 12, 2026 19:13
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 12, 2026
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 12, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ pawelangelow
❌ dependabot[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 12, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

Copy link
Copy Markdown

@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 2 potential issues.

Fix All in Cursor

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

Reviewed by Cursor Bugbot for commit 44af374. Configure here.

Comment thread package.json Outdated
Comment thread package.json Outdated
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/reduxjs/toolkit-2.11.2 branch from 44af374 to 822a026 Compare May 13, 2026 06:01
@pawelangelow
Copy link
Copy Markdown
Contributor

@dependabot rebase

Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 1.9.5 to 2.12.0.
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](reduxjs/redux-toolkit@v1.9.5...v2.12.0)

---
updated-dependencies:
- dependency-name: "@reduxjs/toolkit"
  dependency-version: 2.11.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): bump @reduxjs/toolkit from 1.9.5 to 2.11.2 chore(deps): bump @reduxjs/toolkit from 1.9.5 to 2.12.0 May 29, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/reduxjs/toolkit-2.11.2 branch from 822a026 to 64c2e06 Compare May 29, 2026 09:48
Resolves breaking changes introduced by RTK 2 (redux 5, redux-thunk 3,
reselect 5, immer 11) and react-redux 9:

- Bump react-redux 7 -> 9.2; declare redux-thunk 3 explicitly; drop
  @types/react-redux (now ships its own types)
- Pin redux@5 via yarn resolutions to dedupe (was hoisted to v4 from
  @types/redux-mock-store and react-beautiful-dnd, causing the
  TS2719 "two different types with this name" middleware error)
- Add Dispatch module augmentation so thunks and async-thunk actions
  type-check at every useDispatch() call site without per-callsite
  changes; wire it into the desktop project tsconfig too
- Tests: replace jest.spyOn(react-redux, ...) with jest.mock (exports
  are now non-configurable); cast useSelector/useDispatch as jest.Mock
  through unknown; cache state in fake stores so useSyncExternalStore
  doesn't loop on every render
- Add azure + vectorSet slices to test-utils initialStateDefault and
  widen the render() store option to accept partial-state stores

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage - Backend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 92.71% 15671/16903
🟡 Branches 74.71% 4940/6612
🟢 Functions 86.85% 2443/2813
🟢 Lines 92.55% 14979/16185

Test suite run success

3449 tests passing in 308 suites.

Report generated by 🧪jest coverage report action from 635cf64

@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage - Integration Tests

Status Category Percentage Covered / Total
🟡 Statements 78.83% 17441/22123
🟡 Branches 61.6% 8032/13038
🟡 Functions 66.66% 2392/3588
🟡 Lines 78.38% 16399/20921

@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.96% 24939/30062
🟡 Branches 68.23% 10489/15372
🟡 Functions 78.16% 6731/8612
🟢 Lines 83.41% 24350/29193

Test suite run success

7052 tests passing in 806 suites.

Report generated by 🧪jest coverage report action from 635cf64

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.

2 participants