Skip to content

Releases: recharts/recharts

v2.9.0

15 Oct 06:22
Compare
Choose a tag to compare

What's Changed

Quite a lot this minor release! We sent out a cry for help and many answered - thank you so much for that 🙌🏼

This release aims at internal maintainability, long lingering bugs, and needed improvements. Highlights include equidistant tick improvements, an active bar feature, and an ~85k/~9kb (gzipped) bundle size reduction 🚀

Feat

  • Bar: Implement activeBar for Bar component by @andrewangelle in #3756
  • CartesianGrid: add syncWithticks, horizonalValues, and verticalValues props to allow more grid line customization by @morozovkirill in #3746 solves #2153
  • CartesianAxis: Improve interval option 'equidistantPreserveStart' by @nikolasrieble in #3768
  • CartesianAxis: Throw an invariant when axisIds do not match between chart and axis components by @ckifer
  • Brush: add onDragEnd event to Brush component by @simkesd in #3774

Fix

Refactor

Impossible to mention all of the great refactoring done this release thanks to @PavelVanecek (33 PRs in one month!!) and others! Notable improvements include (non-breaking) type safety enhancements and source code file size reductions, and unit test improvements that will help reduce regressions.

Chore

Storybook

  • Add storybook-addon-performance by @PavelVanecek in #3826
  • many storybook improvements and fixes

🚀 New Contributors (!!) 🚀

Full Changelog: v2.8.0...v2.9.0

v2.8.0

25 Aug 06:36
Compare
Choose a tag to compare

What's Changed

Minor changes - mostly focused on resolving errors from #3615

Feat

Fix

  • defaultProps errros on function components in newer versions of react - fixes #3615
  • TS: Add value type to legend Formatter event by @daryl-sf in #3668
  • Switch useLayoutEffect to useEffect in Rectangle for SSR by @sieroaoj in #3657

Refactor

  • refactor function components to use default params, revert Tooltip to class based component - resolves console errors about defaultProps

Docs

  • Some storybook example additions/changes

New Contributors

Full Changelog: v2.7.2...v2.8.0

v2.7.3

08 Aug 22:31
Compare
Choose a tag to compare

tiny 1 change patch release that merges #3662 to fix an accessibility issue

  • Fixes an ADA compliance issue by removing the img role from line dots

v2.7.2

22 Jun 07:13
700c985
Compare
Choose a tag to compare

What's Changed

Fix

  • Allow accessibilityLayer when there is no tooltip (fixes undefined access bug) by @julianna-langston in #3627
  • Fix regression when null is passed into Line dot (fixes undefined access bug although null is not a supported type for dot) by @ckifer in #3637

Other

  • Few minor storybook changes and dev chore items

Full Changelog: v2.7.1...v2.7.2

v2.7.1

15 Jun 17:06
7a09505
Compare
Choose a tag to compare

What's Changed

Fix

  • Move @storybook/addon-storysource to dev dependencies by @DmitryMarkov in #3623
    • Moves dev dependency to correct location to prevent bundle size increase, etc.
  • Fix defaults for r and strokeWidth when they aren't provided by the user by @ckifer in #3624
    • Bug where if only clipDot is provided within dot of Area and Line then dots disappear and NaN is errors appear in the DOM

New Contributors

Full Changelog: v2.7.0...v2.7.1

v2.7.0

15 Jun 06:01
Compare
Choose a tag to compare

What's Changed

Storybook updates, a few new features, bug fixes.

Note: This release may cause more reports of this defaultProps warning - we are aware of this and trying to come up with a feasible solution.

Feat

Fix

Docs

Refactor

New Contributors

Full Changelog: v2.6.2...v2.7.0

v2.7.0-alpha.0

26 May 23:42
Compare
Choose a tag to compare
v2.7.0-alpha.0 Pre-release
Pre-release

Create alpha release to test some of the recent refactorings to function components. Generate release notes without edits - 2.7 will contain full release notes.

What's Changed

New Contributors

Full Changelog: v2.6.2...v2.7.0-alpha.0

v2.6.2

10 May 22:00
ebaa111
Compare
Choose a tag to compare

fix bug where ts types error and cannot be generated when exporting in a consuming package. Fixes #3581

What's Changed

  • fix: sankey types - add explicitly return type for renderTooltip by @ckifer in #3581

Full Changelog: v2.6.1...v2.6.2

v2.6.1

10 May 16:57
cfa141d
Compare
Choose a tag to compare

What's Changed

Quick fix for a bug crashing treemaps with tooltips in 2.6.0

Full Changelog: v2.6.0...v2.6.1

v2.6.0

08 May 21:50
30180fe
Compare
Choose a tag to compare

What's Changed

Storybook documentation updates as well as our first accessibility feature thanks to @julianna-langston and some refactoring to function components!

Feat

Fix

  • Update type for equidistantPreserveStart axis interval by @frontier159 in #3511
  • Stop focusing on tooltip when displayed - use event listeners instead by @ArkaFred in #3515

Docs

  • lots of storybook changes - go check it out!
    • Getting close to parity with existing docs on recharts.org
    • Added accessibility add-on
    • Added accessibility docs to go with the keyboard navigation support
    • Storybook 7 stable
    • Much more!

Refactor

New Contributors

Full Changelog: v2.5.0...v2.6.0