Skip to content

Commit 8d4b364

Browse files
fix(deps): update dependency recharts to v2.13.1 (#6482)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [recharts](https://redirect.github.com/recharts/recharts) | [`2.12.7` -> `2.13.1`](https://renovatebot.com/diffs/npm/recharts/2.12.7/2.13.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/recharts/2.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/recharts/2.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/recharts/2.12.7/2.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/recharts/2.12.7/2.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>recharts/recharts (recharts)</summary> ### [`v2.13.1`](https://redirect.github.com/recharts/recharts/compare/v2.13.0...7b1a6f553833fbbc9e05397977529ab8929b7b83) [Compare Source](https://redirect.github.com/recharts/recharts/compare/v2.13.0...v2.13.1) ### [`v2.13.0`](https://redirect.github.com/recharts/recharts/releases/tag/v2.13.0) [Compare Source](https://redirect.github.com/recharts/recharts/compare/v2.12.7...v2.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](https://redirect.github.com/recharts/recharts/issues/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 [https://github.com/recharts/recharts/issues/4558#issuecomment-2135604065](https://redirect.github.com/recharts/recharts/issues/4558#issuecomment-2135604065) - `CartesianGrid`: add support for `ry` prop to curve the corner of the grid background - progress on [https://github.com/recharts/recharts/issues/3062](https://redirect.github.com/recharts/recharts/issues/3062) ##### Fix - `General`: Fix `defaultProps` usage in function components, removes warnings on all affected components - see [https://github.com/recharts/recharts/issues/3615](https://redirect.github.com/recharts/recharts/issues/3615) - `ReferenceLine`: fix accidental removal of type annotation by [@&#8203;zackliscio](https://redirect.github.com/zackliscio) in [https://github.com/recharts/recharts/pull/4610](https://redirect.github.com/recharts/recharts/pull/4610) - `Line/Area`: fix issue where `clipDot` would not take effect if it was the only property in `dotProps` [@&#8203;ckifer](https://redirect.github.com/ckifer) in [https://github.com/recharts/recharts/pull/4674](https://redirect.github.com/recharts/recharts/pull/4674) - `Tooltip`: fix issue where tooltip would not show in certain cases if `data` was set on the graphical item by [@&#8203;HHongSeungWoo](https://redirect.github.com/HHongSeungWoo) in [https://github.com/recharts/recharts/pull/4718](https://redirect.github.com/recharts/recharts/pull/4718) - `X/YAxis`: use correct, adapted event types by [@&#8203;ckifer](https://redirect.github.com/ckifer) in [https://github.com/recharts/recharts/pull/4967](https://redirect.github.com/recharts/recharts/pull/4967) - `Tooltip`: `defaultIndex` out of range error by [@&#8203;ckifer](https://redirect.github.com/ckifer) in [https://github.com/recharts/recharts/pull/5054](https://redirect.github.com/recharts/recharts/pull/5054) - `Pie`: fix duplicate key error [@&#8203;ckifer](https://redirect.github.com/ckifer) in [https://github.com/recharts/recharts/pull/4958](https://redirect.github.com/recharts/recharts/pull/4958) - `Text`: fix duplicate key error by [@&#8203;ckifer](https://redirect.github.com/ckifer) in [https://github.com/recharts/recharts/pull/5088](https://redirect.github.com/recharts/recharts/pull/5088) closes [https://github.com/recharts/recharts/issues/5072](https://redirect.github.com/recharts/recharts/issues/5072) ##### Typescript - JSDoc comments will now be preserved in TypeScript definitions by [@&#8203;mxdvl](https://redirect.github.com/mxdvl) in [https://github.com/recharts/recharts/pull/5071](https://redirect.github.com/recharts/recharts/pull/5071) #### New Contributors - [@&#8203;zackliscio](https://redirect.github.com/zackliscio) made their first contribution in [https://github.com/recharts/recharts/pull/4610](https://redirect.github.com/recharts/recharts/pull/4610) **Full Changelog**: recharts/recharts@v2.12.7...v2.13.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/SAP/ui5-webcomponents-react). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMTUuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEzMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lukas Harbarth <[email protected]>
1 parent ee56391 commit 8d4b364

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

packages/charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"dependencies": {
3737
"clsx": "2.1.1",
3838
"react-content-loader": "7.0.2",
39-
"recharts": "2.12.7"
39+
"recharts": "2.13.1"
4040
},
4141
"peerDependencies": {
4242
"@ui5/webcomponents-react": "~2.3.0",

packages/charts/src/components/PieChart/PieChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const PieChart = forwardRef<HTMLDivElement, PieChartProps>((props, ref) => {
240240
const hideDataLabel =
241241
typeof measure.hideDataLabel === 'function' ? measure.hideDataLabel(props) : measure.hideDataLabel;
242242
if (hideDataLabel || chartConfig.activeSegment === props.index) return null;
243-
return Pie.renderLabelLineItem({}, props);
243+
return Pie.renderLabelLineItem({}, props, undefined);
244244
},
245245
[chartConfig.activeSegment, measure.hideDataLabel]
246246
);

packages/charts/src/components/ScatterChart/ScatterChart.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ interface IScatterChartConfig extends ICartesianChartConfig {
6262
referenceLineX?: {
6363
value?: number;
6464
color?: string;
65-
} & ReferenceLineProps;
65+
//todo: remove "Omit" once ref type has been fixed
66+
} & Omit<ReferenceLineProps, 'ref'>;
6667
}
6768

6869
export interface ScatterChartProps extends Omit<IChartBaseProps<IScatterChartConfig>, 'dataset'> {

packages/charts/src/interfaces/ICartesianChartConfig.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { BrushProps, ReferenceLineProps, XAxisProps, YAxisProps } from 'recharts';
2-
2+
//todo: remove ref Omit once types are fixed
33
export interface ICartesianChartConfig {
44
/**
55
* Defines whether the `YAxis` should be visible.
@@ -26,7 +26,6 @@ export interface ICartesianChartConfig {
2626
gridVertical?: boolean;
2727
gridHorizontal?: boolean;
2828

29-
//todo: remove "Omit" once ref type has been fixed
3029
/**
3130
* Defines whether it should be possible to zoom in on the chart.
3231
* If this prop is applied and doesn't have a falsy value, a range slider is displayed on top of the chart, making it possible to zoom-in/zoom-out.
@@ -56,29 +55,29 @@ export interface ICartesianChartConfig {
5655
referenceLine?: {
5756
value?: number;
5857
color?: string;
59-
} & ReferenceLineProps;
58+
} & Omit<ReferenceLineProps, 'ref'>;
6059
/**
6160
* Defines possible configurations for the `YAxis`.
6261
*
6362
* __Note:__ It is possible to overwrite internally used props. Please use with caution!
6463
*/
65-
yAxisConfig?: Omit<YAxisProps, 'mirror'>;
64+
yAxisConfig?: Omit<YAxisProps, 'mirror' | 'ref'>;
6665
/**
6766
* Defines possible configurations for the `XAxis`.
6867
*
6968
* __Note:__ It is possible to overwrite internally used props. Please use with caution!
7069
*/
71-
xAxisConfig?: Omit<XAxisProps, 'mirror'>;
70+
xAxisConfig?: Omit<XAxisProps, 'mirror' | 'ref'>;
7271
/**
7372
* Defines possible configurations for the second `YAxis`.
7473
*
7574
* __Note:__ It is possible to overwrite internally used props. Please use with caution!
7675
*/
77-
secondYAxisConfig?: Omit<YAxisProps, 'mirror'>;
76+
secondYAxisConfig?: Omit<YAxisProps, 'mirror' | 'ref'>;
7877
/**
7978
* Defines possible configurations for the second `YAxis`.
8079
*
8180
* __Note:__ It is possible to overwrite internally used props. Please use with caution!
8281
*/
83-
secondXAxisConfig?: Omit<XAxisProps, 'mirror'>;
82+
secondXAxisConfig?: Omit<XAxisProps, 'mirror' | 'ref'>;
8483
}

yarn.lock

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6014,7 +6014,7 @@ __metadata:
60146014
dependencies:
60156015
clsx: "npm:2.1.1"
60166016
react-content-loader: "npm:7.0.2"
6017-
recharts: "npm:2.12.7"
6017+
recharts: "npm:2.13.1"
60186018
peerDependencies:
60196019
"@ui5/webcomponents-react": ~2.3.0
60206020
"@ui5/webcomponents-react-base": ~2.3.0
@@ -18560,7 +18560,7 @@ __metadata:
1856018560
languageName: node
1856118561
linkType: hard
1856218562

18563-
"react-is@npm:^16.10.2, react-is@npm:^16.13.1":
18563+
"react-is@npm:^16.13.1":
1856418564
version: 16.13.1
1856518565
resolution: "react-is@npm:16.13.1"
1856618566
checksum: 10c0/33977da7a5f1a287936a0c85639fec6ca74f4f15ef1e59a6bc20338fc73dc69555381e211f7a3529b8150a1f71e4225525b41b60b52965bda53ce7d47377ada1
@@ -18581,6 +18581,13 @@ __metadata:
1858118581
languageName: node
1858218582
linkType: hard
1858318583

18584+
"react-is@npm:^18.3.1":
18585+
version: 18.3.1
18586+
resolution: "react-is@npm:18.3.1"
18587+
checksum: 10c0/f2f1e60010c683479e74c63f96b09fb41603527cd131a9959e2aee1e5a8b0caf270b365e5ca77d4a6b18aae659b60a86150bb3979073528877029b35aecd2072
18588+
languageName: node
18589+
linkType: hard
18590+
1858418591
"react-refresh@npm:^0.14.2":
1858518592
version: 0.14.2
1858618593
resolution: "react-refresh@npm:0.14.2"
@@ -18848,22 +18855,22 @@ __metadata:
1884818855
languageName: node
1884918856
linkType: hard
1885018857

18851-
"recharts@npm:2.12.7":
18852-
version: 2.12.7
18853-
resolution: "recharts@npm:2.12.7"
18858+
"recharts@npm:2.13.1":
18859+
version: 2.13.1
18860+
resolution: "recharts@npm:2.13.1"
1885418861
dependencies:
1885518862
clsx: "npm:^2.0.0"
1885618863
eventemitter3: "npm:^4.0.1"
1885718864
lodash: "npm:^4.17.21"
18858-
react-is: "npm:^16.10.2"
18865+
react-is: "npm:^18.3.1"
1885918866
react-smooth: "npm:^4.0.0"
1886018867
recharts-scale: "npm:^0.4.4"
1886118868
tiny-invariant: "npm:^1.3.1"
1886218869
victory-vendor: "npm:^36.6.8"
1886318870
peerDependencies:
1886418871
react: ^16.0.0 || ^17.0.0 || ^18.0.0
1886518872
react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0
18866-
checksum: 10c0/2522d841a1f4e4c0a37046ddb61fa958ac37a66df63dcd4c6cb9113e3f7a71892d74e44494a55bc40faa0afd74d9cf58fec3d2ce53a8ddf997e75367bdd033fc
18873+
checksum: 10c0/6bbab8e14397c4cbc73d1dcab48045c2a53650b53ac723713b6dad2367654647cf3a50e3de83678c34c76d5e8196341b9cf3e74a4344f842762e81d301b76a4e
1886718874
languageName: node
1886818875
linkType: hard
1886918876

0 commit comments

Comments
 (0)