recharts 2.13.0
What's Changed
React 19 compat, fix annoying defaultProps warnings, bug fixes
Feat
-
React 19 compatibility - see https://github.com/recharts/recharts/issues/4558
peerDependenciesstill cannot be updated until 3.0 release, but for now R19 beta/RC releases can be used with Recharts under the following conditions:- Your
react-isversion matches yourreactandreact-domversions: use your package manager'soverridefunctionality to match yourreact-isversion to your react version or else recharts elements will not show - see https://github.com/recharts/recharts/issues/4558#issuecomment-2135604065
- Your
-
CartesianGrid: add support forryprop to curve the corner of the grid background - progress on https://github.com/recharts/recharts/issues/3062
Fix
General: FixdefaultPropsusage in function components, removes warnings on all affected components - see https://github.com/recharts/recharts/issues/3615ReferenceLine: fix accidental removal of type annotation by @zackliscio in https://github.com/recharts/recharts/pull/4610Line/Area: fix issue whereclipDotwould not take effect if it was the only property indotProps@ckifer in https://github.com/recharts/recharts/pull/4674Tooltip: fix issue where tooltip would not show in certain cases ifdatawas set on the graphical item by @HHongSeungWoo in https://github.com/recharts/recharts/pull/4718X/YAxis: use correct, adapted event types by @ckifer in https://github.com/recharts/recharts/pull/4967Tooltip:defaultIndexout of range error by @ckifer in https://github.com/recharts/recharts/pull/5054Pie: fix duplicate key error @ckifer in https://github.com/recharts/recharts/pull/4958Text: fix duplicate key error by @ckifer in https://github.com/recharts/recharts/pull/5088 closes https://github.com/recharts/recharts/issues/5072
Typescript
- JSDoc comments will now be preserved in TypeScript definitions by @mxdvl in https://github.com/recharts/recharts/pull/5071
New Contributors
- @zackliscio made their first contribution in https://github.com/recharts/recharts/pull/4610
Full Changelog: https://github.com/recharts/recharts/compare/v2.12.7...v2.13.0