Skip to content

Bump minimum @reduxjs/toolkit to 1.9.0#6934

Merged
ckifer merged 2 commits intomainfrom
copilot/bump-redux-toolkit-version
Jan 27, 2026
Merged

Bump minimum @reduxjs/toolkit to 1.9.0#6934
ckifer merged 2 commits intomainfrom
copilot/bump-redux-toolkit-version

Conversation

Copy link
Contributor

Copilot AI commented Jan 27, 2026

Description

Recharts 3.7 calls prepareAutoBatched() from Redux Toolkit, introduced in RTK 1.9.0. The dependency range 1.x.x || 2.x.x permits RTK 1.8.x installation, causing runtime failures.

Updated dependency constraint to ^1.9.0 || 2.x.x.

Related Issue

Recharts 3.7 uses Redux Toolkit APIs not available in 1.8, but dependency range allows 1.x.x

Fixes #6933

Motivation and Context

prepareAutoBatched is used in 5 slice files (tooltip, legend, graphicalItems, cartesianAxis, zIndex) but only exists in RTK ≥1.9.0. Package managers can resolve to 1.8.x under the previous constraint, breaking at runtime.

How Has This Been Tested?

  • Verified prepareAutoBatched absent in RTK 1.8.6, present in 1.9.0
  • All tests pass (3733 tests including Redux state tests)
  • Build succeeds

Screenshots (if appropriate):

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a storybook story or VR test, or extended an existing story or VR test to show my changes

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • redux-toolkit.js.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Recharts 3.7 uses Redux Toolkit APIs not available in 1.8, but dependency range allows 1.x.x</issue_title>
<issue_description>When using Recharts 3.7.0, the application crashes at runtime if @reduxjs/toolkit@1.8.x is resolved.

Recharts 3.7 imports and calls prepareAutoBatched from Redux Toolkit, but this function does not exist in RTK 1.8.x. Since Recharts allows @reduxjs/toolkit: "1.x.x || 2.x.x" in its dependencies, RTK 1.8.x can be installed, which leads to a runtime failure.</issue_description>

<agent_instructions>Bump the minimum required reduxjs/toolkit version</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: PavelVanecek <1100170+PavelVanecek@users.noreply.github.com>
Copilot AI changed the title [WIP] Update minimum redux toolkit version for Recharts dependency Bump minimum @reduxjs/toolkit to 1.9.0 Jan 27, 2026
Copilot AI requested a review from PavelVanecek January 27, 2026 12:12
@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.29%. Comparing base (1f8b5be) to head (e17c463).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6934   +/-   ##
=======================================
  Coverage   94.29%   94.29%           
=======================================
  Files         571      571           
  Lines       56002    56002           
  Branches     5222     5222           
=======================================
  Hits        52807    52807           
  Misses       3186     3186           
  Partials        9        9           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codecov
Copy link

codecov bot commented Jan 27, 2026

Bundle Report

Bundle size has no change ✅

@github-actions
Copy link
Contributor

Staging Deployment Details

These deployments will remain available for 30 days.

To update snapshots: Comment /update-snapshots on this PR to automatically update the baseline screenshots.

@PavelVanecek PavelVanecek marked this pull request as ready for review January 27, 2026 14:56
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 27, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Comment @coderabbitai help to get the list of available commands and usage tips.

@ckifer ckifer merged commit b75d6d7 into main Jan 27, 2026
48 checks passed
@PavelVanecek PavelVanecek deleted the copilot/bump-redux-toolkit-version branch January 27, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recharts 3.7 uses Redux Toolkit APIs not available in 1.8, but dependency range allows 1.x.x

3 participants