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

Mend Renovate

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

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

v8.3.0

Compare Source

  • Support React 18

v8.2.0

Compare Source

  • Decrease bundle size of about 2%

v8.1.0

Compare Source

  • Widen peerDependencies to include React 17

v8.0.1

Compare Source

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

v8.0.0

Compare Source

Breaking 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
New Features
  • Gzipped size reduced from 2.6kb to 1.9 kb (-27%)
  • segmentsStyle and labelStyle accept both value or function
Bugfixes
  • 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

Bugfixes
  • 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

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

v7.2.0

Compare Source

New Features
  • Add segmentsShift prop to move segments radially and render exploded charts

v7.1.0

Compare Source

New Features
  • Add onBlur, onFocus, onKeyDown callbacks
  • Add segmentsTabIndex to append a tabindex prop to segment paths
Bugfixes
  • 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

Breaking 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

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

v6.0.0

Compare Source

Breaking Changes
  • ratio property removed in favour of viewBoxSize

v5.0.2

Compare Source

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

v5.0.1

Compare Source

Bugfixes
  • fix reveal direction with negative lengthAngle

v5.0.0

Compare Source

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

v4.2.0

Compare Source

New Features
  • Add background prop to draw segment's background
Bugfixes
  • Fix props.data types

v4.1.1

Compare Source

Bugfixes
  • Transpile bundled svg-partial-circle

v4.1.0

Compare Source

New Features
  • Provide custom segment style via props.data[i].style

v4.0.0

Compare Source

Breaking 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
Bugfixes
  • 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 has been generated by Mend Renovate. View repository job log here.

@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.

None yet

0 participants