[Snyk] Upgrade recharts from 2.3.2 to 2.15.0 #635
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade recharts from 2.3.2 to 2.15.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 45 versions ahead of your current version.
The recommended version was released 2 months ago.
Release notes
Package name: recharts
What's Changed
Final 2.x React 19 support
!!! You still need to override your
react-is
version to matchreact
/react-dom
for React 19 to work with recharts !!! - see thread here - this limitation will be alleviated in recharts 3.0Feat
Add React 19 to peerDependencies - closes #4558
Fix
Bar
: fix Bar mouse event types regression - closes #5308ReactText
typeFull Changelog: v2.14.1...v2.15.0
What's Changed
Fix
X/YAxis
: omit unused/accidentally added (in 2.13)ref
prop from axis types in #5295. Resolves #5294Full Changelog: v2.14.0...v2.14.1
What's Changed
Small release to get new top level chart events out there. Still working on 3.x, a little slower right now because of the holidays.
Feat
Area
/Line
/Bar
/Scatter
/Pie
/Radar
/RadialBar
/Funnel
Chart components: add support for top levelonContextMenu
andonDoubleClick
events #5254 by @ abarreau in #5255Fix
Typescript fixes
LabelList
:dataKey
prop for LabelList should accept any object by @ ckifer in #5252Pie
:PieSectorDataItem.payload
should be an object rather than an array by @ BTOdell in #5263New Contributors
Full Changelog: v2.13.3...v2.14.0
What's Changed
Small change which may (or may not) help when using ResponsiveContainer with React 19. Worth a shot.
!!
react-is
override is still needed for React 19 to work correctly with recharts !! - see #4558Fix
ResponsiveContainer
- swapisElement
fromreact-is
withReact.isValidElement
Full Changelog: v2.13.2...v2.13.3
What's Changed
ref
props back.Fix
Full Changelog: v2.13.1...v2.13.2
What's Changed
Fix
ResponsiveContainer
: fix internal bug from 2.13 which causes responsive container to render incorrectly by @ ckifer in #5174Bar
:radius
prop type fixed to match expected type by @ lifeofpavs in #5116New Contributors
Full Changelog: v2.13.0...v2.13.1
What's Changed
React 19 compat, fix annoying defaultProps warnings, bug fixes
Feat
React 19 compatibility - see #4558
peerDependencies
still cannot be updated until 3.0 release, but for now R19 beta/RC releases can be used with Recharts under the following conditions: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)CartesianGrid
: add support forry
prop to curve the corner of the grid background - progress on #3062Fix
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 #5072Typescript
New Contributors
Full Changelog: v2.12.7...v2.13.0
What's Changed
Some non-breaking bug fixes that need more testing with React 19. Fixes JSX type issue for React 19 when using
@ types/react@19
Fix
Line
/Area
:clipDot
setting fails to take effect if set as the only DotProp by @ ckifer in #4674 fixes #4671Tooltip
: Tooltip now renders correctly whendata
is set on the graphical item rather than the higher level chart by @ HHongSeungWoo in #4718 fixes #4717Pie
: fix duplicate key issue when "key" exists in chart data (try not use "key" as a data point) by @ ckifer in #4958 fixes #4858TypeScript
XAxis
/YAxis
: Correct Cartesian axis event types by @ ckifer in #4967 fixes #4959TypeScript
: return JSX in a function instead of a class component by @ ckifer in #4970 fixes React 19 type issues #4558 (comment)Full Changelog: v2.13.0-alpha.4...v2.13.0-alpha.5
What's Changed
Additional React 19 fixes - please keep adding reports to #4558, thanks!
Fix
ReferenceLine
: Re-add ReferenceLine types which caused a regression in alpha.0 by @ zackliscio in #4610New Contributors
Full Changelog: v2.13.0-alpha.3...v2.13.0-alpha.4
What's Changed
More React 19 specific fixes. If you are using R19, you must use
overrides
/resolutions
to match yourreact-is
version with your react versionFix
Full Changelog: v2.13.0-alpha.1...v2.13.0-alpha.3
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:![](https://camo.githubusercontent.com/0c6dacce70c0bff48dc693d70dfc7f4bb05bfddfe6fd79cc6f4554fc5704e0f4/68747470733a2f2f6170692e7365676d656e742e696f2f76312f706978656c2f747261636b3f646174613d65794a33636d6c305a55746c65534936496e4a79576d785a634564485932527954485a7362306c596430645563566734576b4652546e4e434f5545774969776959573576626e6c746233567a535751694f694a6d4d5459784f5455354e79307a4e7a55784c5452694d444174596d45784f4330314e7a566c4f5459344e324978596a49694c434a6c646d567564434936496c425349485a705a58646c5a434973496e42796233426c636e52705a584d694f6e736963484a4a5a434936496d59784e6a45354e546b334c544d334e5445744e4749774d433169595445344c5455334e5755354e6a6733596a46694d694a3966513d3d)