[Snyk] Upgrade recharts from 2.3.2 to 2.13.0 #615
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.13.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 39 versions ahead of your current version.
The recommended version was released on 23 days ago.
Release notes
Package name: recharts
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
What's Changed
v2.13.0-alpha.0 contains some fixes for React 19 support
v2.13.0-alpha.1 contains what seems to be the rest of them
Fix
Please test this as much as possible using React 16.8 - 19! thank you!
Full Changelog: v2.12.7...v2.13.0-alpha.1
Whats changed
Fix
Area
: re-add calculated areapoints
to theareaDot
callback props when it is a function. This was accidentally removed in v2.3. Fixes #4480Brush
: guard against undefined property access error when anariaLabel
is not specified. Follow up from #2093 (comment)Full Changelog: v2.12.6...v2.12.7
What's Changed
Fix
Tooltip
: fix glitch where Tooltip always rendered in the top left even if animation was disabled by @ HHongSeungWoo in #4425 fixes #4424Chore
CI/Build fix
: Added proper.js
suffixes to main module and jsnext:main paths in package.json by @ dobosalparbc in #4431 fixes #2858Full Changelog: v2.12.5...v2.12.6
Small fixes while working on v3 continued...
What's Changed
Feat
BarChart
: support percentage (of chart) forbarSize
. Helps set size of bar when there are few datapoints Fixes #3640 by @ graup in #4407Fix
Address #4382
A recent release of
@ types/react
broke some builds because they removed certain (unused) events from common event handler attributes.recharts
was unknowingly enumerating keys ofSVGProps
in theLayer
component with the old types and causing a type error ontsc
withskipLibCheck: false
typescript - Layer
: useSVGAttributes
instead ofSVGProps
in forwardRef components by @ ckifer in #4413typescript - Pie
: fix Pieref
which was cast toHTMLElement
when theref
is actually referring toSVGGElement
. This gave false information to whoever is usingref
on thePie
componentFull Changelog: v2.12.4...v2.12.5
What's Changed
Small fixes while working on v3 continued...
Fix
Accessibility
: remove role attribute from recharts-wrapper which caused an accessibility violation with > 1 chart on the same page by @ julianna-langston in #4386, fixes #4384X/YAxis
: fix incorrect padding calculation when there is 1 datapoint or less by @ graup in #4314 closes #4313className
fixes - helps slowly address #2169:Tooltip
: allow customclassName
oncursor
by @ 108yen in #4306RadarChart/RadialBarChart
: allow customclassName
onPolarRadiusAxis
,PolarAngleAxis
, andRadar
dot by @ 108yen in #4335Pie
: allow customclassName
onlabel
andlabelLine
ofPie
by @ 108yen in #4381Full Changelog: v2.12.3...v2.12.4
Some more small changes/fixes while working on 3.x
What's Changed
Fix
Legend
: fix issue where Legend was not taken into account when scaling the chart container by @ zhonglin94 in #4272 closes #4246Area
: fixed a bug where className was not assigned to areaDot by @ 108yen in #4294 closes #4290RadialBar
: address regression where radial bar and its background were off from eachother because of rounding by @ ckifer in #4295 closes #4264ErrorBar
: do not countnull
as 0 in error bar domain by @ rinkstiekema in #4297New Contributors
Full Changelog: v2.12.2...v2.12.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: