npm recharts 2.13.0
v2.13.0

11 hours ago

What's Changed

React 19 compat, fix annoying defaultProps warnings, bug fixes

Feat

  • React 19 compatibility - see #4558

    • peerDependencies still cannot be updated until release, but for now R19 beta/RC releases can be used with Recharts under the following conditions:
      • Your react-is version matches your react and react-dom versions: use your package manager's override functionality to match your react-is version to your react version or else recharts elements will not show - see #4558 (comment)
  • CartesianGrid: add support for ry prop to curve the corner of the grid background - progress on #3062

Fix

  • General: Fix defaultProps usage in function components, removes warnings on all affected components - see #3615
  • ReferenceLine: fix accidental removal of type annotation by @zackliscio in #4610
  • Line/Area: fix issue where clipDot would not take effect if it was the only property in dotProps @ckifer in #4674
  • Tooltip: fix issue where tooltip would not show in certain cases if data was set on the graphical item by @HHongSeungWoo in #4718
  • X/YAxis: use correct, adapted event types by @ckifer in #4967
  • Tooltip: defaultIndex out of range error by @ckifer in #5054
  • Pie: fix duplicate key error @ckifer in #4958
  • Text: fix duplicate key error by @ckifer in #5088 closes #5072

Typescript

  • JSDoc comments will now be preserved in TypeScript definitions by @mxdvl in #5071

New Contributors

Full Changelog: v2.12.7...v2.13.0

Don't miss a new recharts release

NewReleases is sending notifications on new releases.