chore(deps): bump @reduxjs/toolkit from 1.9.5 to 2.12.0#5897
chore(deps): bump @reduxjs/toolkit from 1.9.5 to 2.12.0#5897dependabot[bot] wants to merge 2 commits into
Conversation
|
|
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ 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.
44af374 to
822a026
Compare
|
@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>
822a026 to
64c2e06
Compare
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>
Code Coverage - Backend unit tests
Test suite run success3449 tests passing in 308 suites. Report generated by 🧪jest coverage report action from 635cf64 |
Code Coverage - Integration Tests
|
Code Coverage - Frontend unit tests
Test suite run success7052 tests passing in 806 suites. Report generated by 🧪jest coverage report action from 635cf64 |

Bumps @reduxjs/toolkit from 1.9.5 to 2.12.0.
Release notes
Sourced from @reduxjs/toolkit's releases.
... (truncated)
Commits
576a02fRelease 2.12.0de2d55eMerge pull request #5237 from aryaemami59/fix/codegen/generateEndpoints-retur...ac807c3fix(codegen): narrowgenerateEndpointsreturn type01ed3baMerge pull request #5289 from aryaemami59/feat/toolkit/switch-to-native-NoInfer1f16db1Merge pull request #5290 from aryaemami59/build/toolkit/exclude-test-files-fr...23783c1build(toolkit): exclude test files from final bundle91b8b0afeat(toolkit)!: switch to nativeNoInferutility type0b37f1aMerge pull request #5286 from aryaemami59/docs/toolkit/fix-typos3cd62c8fixunforwardedActions64853ccchore: fix various typosMaintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for
@reduxjs/toolkitsince 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-friendlyDispatch) and includes it from desktoptsconfig. Switches defaultimport thunktoimport { thunk }. Expandstest-utilsdefault state (azure,vectorSet) and allowsEnhancedStorein render options.Tests: Widespread
useSelector/useDispatchcasts viaunknown as jest.Mock; vector-search specs preload fullapp.featuresinitial state;Node.specuses mutable store state + propersubscribeunsubscribe; slice/telemetry tests use@@INITand explicitreact-reduxmocks where needed.Reviewed by Cursor Bugbot for commit 635cf64. Bugbot is set up for automated code reviews on this repo. Configure here.