Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency react-minimal-pie-chart to v8 #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Aug 14, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-minimal-pie-chart ^3.3.0 -> ^8.0.0 age adoption passing confidence

Release Notes

toomuchdesign/react-minimal-pie-chart (react-minimal-pie-chart)

v8.4.0

Compare Source

Minor Changes
  • Improve labelRenderProps by using TS generics
  • Expose chart PieChartProps types
  • Rely on useEffect only to trigger initial animation

v8.3.0

Compare Source

Minor Changes
  • Support React 18

v8.2.0

Compare Source

Minor Changes
  • Decrease bundle size of about 2%

v8.1.0

Compare Source

Minor Changes
  • Widen peerDependencies to include React 17

v8.0.1

Compare Source

Patch Changes
  • Change extractPercentage implementation to address a rounding issue in stroke-dashoffset evaluation (#​133)

v8.0.0

Compare Source

Major Changes
  • Chart component exposed as named export instead of default.
  • Minimum react and react-dom peerDependency versions increased to ^16.8.0
  • Minimum typescript version increased to ^3.8.0 (due to import type)
  • label prop works as render prop; drop support for boolean and Element values
  • segmentsShift prop expressed as absolute viewBox units instead of radius' percentage
  • Event handlers signature updated to: (event, segmentIndex) => void
  • rx and ry props replaced by center array prop
  • center and radius props expressed as absolute viewBox units instead of percentage of it
  • prop-types dependency and static PropTypes declarations dropped
  • Dropped support for `data[].style property
  • Replaced extendedData startOffset prop with startAngle
  • injectSVG dropped in favour of native children prop
  • requestAnimationFrame existence check removed
  • Removed Object.assign polyfill
Minor Changes
  • Gzipped size reduced from 2.6kb to 1.9 kb (-27%)
  • segmentsStyle and labelStyle accept both value or function
Patch Changes
  • Default labels vertically aligned with dominant-baseline: central (#​149)
How to migrate to version 8.0.0
  • Update import declaration to: import {PieChart} from 'react-minimal-pie-chart'
  • Make sure that installed react and react-dom version is >= 16.8.0
  • In case typescript is used, ensure that installed version is >= 3.8
  • Migrate label prop to provide a render function (see docs about labels)
  • Replace existing rx ry props with center
  • Review existing center and segmentsShift values (now expressed as viewBox values)
  • Update onBlur, onClick, onFocus, onKeyDown, onMouseOut, onMouseOver, segmentsShift function props to new signatures
  • Move existing injectSVG prop return value to children prop
  • Use segmentsStyle as function instead of data[].style prop
  • Mind that the root element is now the SVG itself
  • Provide an Object.assign polyfill to support legacy browser (eg. IE)

v7.3.1

Compare Source

Patch Changes
  • Fix event handler types expecting wrong event as first argument
  • Fix label prop type declaration when receiving a function (#​154)
  • Fix wrong label position when segmentsShift enabled (#​155)

v7.3.0

Compare Source

Minor Changes
  • Allow segmentsShift as function to return undefined
Minor Changes
  • Improve sumValues performance

v7.2.0

Compare Source

Minor Changes
  • Add segmentsShift prop to move segments radially and render exploded charts

v7.1.0

Compare Source

Minor Changes
  • Add onBlur, onFocus, onKeyDown callbacks
  • Add segmentsTabIndex to append a tabindex prop to segment paths
Patch Changes
  • Fix regression bug consisting of stroke-dasharray and stroke-dashoffset attributes being evaluated and appended even when there is no animation

v7.0.0

Compare Source

Warning

This release introduced a regression bug. Please upgrade to V7.1.0

Major Changes
  • Remove src from distribution
  • EventHandler expects void as return type
Minor Changes
  • Introduce Typescript natively
  • Remove prop-types from private components

v6.0.1

Compare Source

Patch Changes
  • Fix chart cy being evaluated from viewBoxSize width instead of height

v6.0.0

Compare Source

Major Changes
  • ratio property removed in favour of viewBoxSize

v5.0.2

Compare Source

Patch Changes
  • fix NaN being rendered as SVG path attribute when data.value sum equals 0 and totalValue is undefined

v5.0.1

Compare Source

Patch Changes
  • fix reveal direction with negative lengthAngle

v5.0.0

Compare Source

Major Changes
  • reveal works same direction as lengthAngle
  • Labels vertically aligned using dominant-baseline instead of alignment-baseline

v4.2.0

Compare Source

Minor Changes
  • Add background prop to draw segment's background
Patch Changes
  • Fix props.data types

v4.1.1

Compare Source

Patch Changes
  • Transpile bundled svg-partial-circle

v4.1.0

Compare Source

Minor Changes
  • Provide custom segment style via props.data[i].style

v4.0.0

Compare Source

Major Changes
  • ReactMinimalPieChart extends React.Component instead of React.PureComponent
  • Improve paddingAngle implementation to respect the proportions between rendered slices
  • Add TypeScript types
Minor Changes
  • Compile with Babel v7
  • Update Storybook demo to v5
  • Add sideEffect flag
Patch Changes
  • Replace export { default } from syntax not supported by TS

v3.5.0

Compare Source

  • Add support for labels with props: label, labelPosition and labelStyle
  • Minor internal refactoring

v3.4.1

Compare Source

  • Fix chart to render data.title value as <title> inside <path> element

v3.4.0

Compare Source

  • Support injectSvg function property to inject any element into rendered <svg> element

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner August 14, 2023 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants