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 yourreact
andreact-dom
versions: use your package manager'soverride
functionality to match yourreact-is
version to your react version or else recharts elements will not show - see #4558 (comment)
- Your
-
CartesianGrid
: add support forry
prop to curve the corner of the grid background - progress on #3062
Fix
General
: FixdefaultProps
usage in function components, removes warnings on all affected components - see #3615ReferenceLine
: fix accidental removal of type annotation by @zackliscio in #4610Line/Area
: fix issue whereclipDot
would not take effect if it was the only property indotProps
@ckifer in #4674Tooltip
: fix issue where tooltip would not show in certain cases ifdata
was set on the graphical item by @HHongSeungWoo in #4718X/YAxis
: use correct, adapted event types by @ckifer in #4967Tooltip
:defaultIndex
out of range error by @ckifer in #5054Pie
: fix duplicate key error @ckifer in #4958Text
: fix duplicate key error by @ckifer in #5088 closes #5072
Typescript
New Contributors
- @zackliscio made their first contribution in #4610
Full Changelog: v2.12.7...v2.13.0