From 8d4b3648a23315b5f8237dbe129bfbeb575a7746 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 09:16:38 +0000 Subject: [PATCH] fix(deps): update dependency recharts to v2.13.1 (#6482) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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
recharts/recharts (recharts) ### [`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 [@​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` [@​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 [@​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 [@​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 [@​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 [@​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 [@​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 [@​mxdvl](https://redirect.github.com/mxdvl) in [https://github.com/recharts/recharts/pull/5071](https://redirect.github.com/recharts/recharts/pull/5071) #### New Contributors - [@​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**: https://github.com/recharts/recharts/compare/v2.12.7...v2.13.0
--- ### 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. --- - [ ] 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). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lukas Harbarth --- packages/charts/package.json | 2 +- .../src/components/PieChart/PieChart.tsx | 2 +- .../components/ScatterChart/ScatterChart.tsx | 3 ++- .../src/interfaces/ICartesianChartConfig.ts | 13 ++++++------ yarn.lock | 21 ++++++++++++------- 5 files changed, 24 insertions(+), 17 deletions(-) diff --git a/packages/charts/package.json b/packages/charts/package.json index 4865ac8b118..2e524c9162e 100644 --- a/packages/charts/package.json +++ b/packages/charts/package.json @@ -36,7 +36,7 @@ "dependencies": { "clsx": "2.1.1", "react-content-loader": "7.0.2", - "recharts": "2.12.7" + "recharts": "2.13.1" }, "peerDependencies": { "@ui5/webcomponents-react": "~2.3.0", diff --git a/packages/charts/src/components/PieChart/PieChart.tsx b/packages/charts/src/components/PieChart/PieChart.tsx index aa2dd17f9ac..7ad052a0a0c 100644 --- a/packages/charts/src/components/PieChart/PieChart.tsx +++ b/packages/charts/src/components/PieChart/PieChart.tsx @@ -240,7 +240,7 @@ const PieChart = forwardRef((props, ref) => { const hideDataLabel = typeof measure.hideDataLabel === 'function' ? measure.hideDataLabel(props) : measure.hideDataLabel; if (hideDataLabel || chartConfig.activeSegment === props.index) return null; - return Pie.renderLabelLineItem({}, props); + return Pie.renderLabelLineItem({}, props, undefined); }, [chartConfig.activeSegment, measure.hideDataLabel] ); diff --git a/packages/charts/src/components/ScatterChart/ScatterChart.tsx b/packages/charts/src/components/ScatterChart/ScatterChart.tsx index 076f7947e45..dc51d6e9295 100644 --- a/packages/charts/src/components/ScatterChart/ScatterChart.tsx +++ b/packages/charts/src/components/ScatterChart/ScatterChart.tsx @@ -62,7 +62,8 @@ interface IScatterChartConfig extends ICartesianChartConfig { referenceLineX?: { value?: number; color?: string; - } & ReferenceLineProps; + //todo: remove "Omit" once ref type has been fixed + } & Omit; } export interface ScatterChartProps extends Omit, 'dataset'> { diff --git a/packages/charts/src/interfaces/ICartesianChartConfig.ts b/packages/charts/src/interfaces/ICartesianChartConfig.ts index b6559ce9c6c..57e89fccb69 100644 --- a/packages/charts/src/interfaces/ICartesianChartConfig.ts +++ b/packages/charts/src/interfaces/ICartesianChartConfig.ts @@ -1,5 +1,5 @@ import type { BrushProps, ReferenceLineProps, XAxisProps, YAxisProps } from 'recharts'; - +//todo: remove ref Omit once types are fixed export interface ICartesianChartConfig { /** * Defines whether the `YAxis` should be visible. @@ -26,7 +26,6 @@ export interface ICartesianChartConfig { gridVertical?: boolean; gridHorizontal?: boolean; - //todo: remove "Omit" once ref type has been fixed /** * Defines whether it should be possible to zoom in on the chart. * 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 { referenceLine?: { value?: number; color?: string; - } & ReferenceLineProps; + } & Omit; /** * Defines possible configurations for the `YAxis`. * * __Note:__ It is possible to overwrite internally used props. Please use with caution! */ - yAxisConfig?: Omit; + yAxisConfig?: Omit; /** * Defines possible configurations for the `XAxis`. * * __Note:__ It is possible to overwrite internally used props. Please use with caution! */ - xAxisConfig?: Omit; + xAxisConfig?: Omit; /** * Defines possible configurations for the second `YAxis`. * * __Note:__ It is possible to overwrite internally used props. Please use with caution! */ - secondYAxisConfig?: Omit; + secondYAxisConfig?: Omit; /** * Defines possible configurations for the second `YAxis`. * * __Note:__ It is possible to overwrite internally used props. Please use with caution! */ - secondXAxisConfig?: Omit; + secondXAxisConfig?: Omit; } diff --git a/yarn.lock b/yarn.lock index 49bc41453b7..a9a78b0d55d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6014,7 +6014,7 @@ __metadata: dependencies: clsx: "npm:2.1.1" react-content-loader: "npm:7.0.2" - recharts: "npm:2.12.7" + recharts: "npm:2.13.1" peerDependencies: "@ui5/webcomponents-react": ~2.3.0 "@ui5/webcomponents-react-base": ~2.3.0 @@ -18560,7 +18560,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^16.10.2, react-is@npm:^16.13.1": +"react-is@npm:^16.13.1": version: 16.13.1 resolution: "react-is@npm:16.13.1" checksum: 10c0/33977da7a5f1a287936a0c85639fec6ca74f4f15ef1e59a6bc20338fc73dc69555381e211f7a3529b8150a1f71e4225525b41b60b52965bda53ce7d47377ada1 @@ -18581,6 +18581,13 @@ __metadata: languageName: node linkType: hard +"react-is@npm:^18.3.1": + version: 18.3.1 + resolution: "react-is@npm:18.3.1" + checksum: 10c0/f2f1e60010c683479e74c63f96b09fb41603527cd131a9959e2aee1e5a8b0caf270b365e5ca77d4a6b18aae659b60a86150bb3979073528877029b35aecd2072 + languageName: node + linkType: hard + "react-refresh@npm:^0.14.2": version: 0.14.2 resolution: "react-refresh@npm:0.14.2" @@ -18848,14 +18855,14 @@ __metadata: languageName: node linkType: hard -"recharts@npm:2.12.7": - version: 2.12.7 - resolution: "recharts@npm:2.12.7" +"recharts@npm:2.13.1": + version: 2.13.1 + resolution: "recharts@npm:2.13.1" dependencies: clsx: "npm:^2.0.0" eventemitter3: "npm:^4.0.1" lodash: "npm:^4.17.21" - react-is: "npm:^16.10.2" + react-is: "npm:^18.3.1" react-smooth: "npm:^4.0.0" recharts-scale: "npm:^0.4.4" tiny-invariant: "npm:^1.3.1" @@ -18863,7 +18870,7 @@ __metadata: peerDependencies: react: ^16.0.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/2522d841a1f4e4c0a37046ddb61fa958ac37a66df63dcd4c6cb9113e3f7a71892d74e44494a55bc40faa0afd74d9cf58fec3d2ce53a8ddf997e75367bdd033fc + checksum: 10c0/6bbab8e14397c4cbc73d1dcab48045c2a53650b53ac723713b6dad2367654647cf3a50e3de83678c34c76d5e8196341b9cf3e74a4344f842762e81d301b76a4e languageName: node linkType: hard