Skip to content

Releases: recharts/recharts

v2.5.0

15 Mar 21:48
Compare
Choose a tag to compare

What's Changed

Feat

  • ResponsiveContainer: onResize callback function by @ckifer in #3361
  • XAxis, YAxis: includeHidden prop - include all datapoints in domain calculation even when hidden by @neefrehman in #3103
  • XAxis, YAxis: new interval option equidistantPreserveStart by @nikolasrieble in #3392

Fix

  • ResponsiveContainer: default min-width to 0 to override default auto behavior that breaks flexbox layouts by @ckifer in #3391
  • Area: Add missing 'data' type to Area component by @ondrejvelisek in #3443
  • Brush/XAxis: fix NaN regression when interval={0} by @nikolasrieble in #3454
  • ReferenceArea/ReferenceLine: revert regression where ifOverflow prop is not obeyed due to missing defaultProps by @ckifer in #3455

Docs

Dependencies

  • chore: explicitly upgrade minor version of react-smooth by @ckifer in #3397
  • chore: upgrade react-resize-detector to 8.x by @ckifer in #3418

Refactor

New Contributors

Full Changelog: v2.4.3...v2.5.0

v2.4.3

16 Feb 21:56
Compare
Choose a tag to compare

v2.4.3

cherry-picked commit 7925fd7 to not pollute patch release with other changes

fix

  • ensure originalDomain is defaulted if no domain is provided - broke tickCount calculation - #3377
    • assign default to originalDomain for re-use in generateCategoricalChart
    • add unit tests so this doesn't happen again

Full Changelog: v2.4.2...v2.4.3

v2.4.2

15 Feb 23:03
Compare
Choose a tag to compare

v2.4.2

cherry-picked commit b625f72 to not pollute patch release with other changes

fix

  • fix broken zoom functionality in 2.4 - #3369
    • if chart is categorical we still need to calculate categorical domain even if the domain is given by the user

Full Changelog: v2.4.1...v2.4.2

v2.4.1

10 Feb 00:43
56682b3
Compare
Choose a tag to compare

Accidentally added storybook types as a subfolder to types so the package.json is no longer referencing the correct types key.

  • Add a tsconfig specifically for storybook with noEmit: true
  • Don't include storybook/* in tsc emit

What's Changed

  • hotfix: remove storybook types build and add its own tsconfig by @ckifer in #3354

Full Changelog: v2.4.0...v2.4.1

v2.4.0

09 Feb 16:29
Compare
Choose a tag to compare

This release marks the completion of recharts Milestone to migrate to Jest and React Testing Library. Thanks to all involved!

Check out the new storybook we're working on here

What's Changed

Trying to squish some bugs πŸ›

feat

  • feat: Short-circuiting axis map creation with specified domain to improve performance by @bennettdams in #3293

fix

type fixes

  • Area - remove points from SVGProps by @Yilun-Sun in #3182
  • Radar - remove points attribute from SVGProps by @ckifer in #3265
  • refactor(Label & LabelList): refine types and disable react/no-array-index-key to avoid warnings by @marcalexiei in #3270

refactor

New Contributors

Full Changelog: v2.3.2...v2.4.0

v2.3.2

12 Jan 18:36
Compare
Choose a tag to compare

What's Changed

fix

Full Changelog: v2.3.1...v2.3.2

v2.3.1

12 Jan 01:58
Compare
Choose a tag to compare

What's Changed

fix

  • revert 3214d14 due to unwanted behavior in responsive container. This change causes animation behavior to change in an undesirable way.

Full Changelog: v2.3.0...v2.3.1

v2.3.0

12 Jan 01:39
Compare
Choose a tag to compare

What's Changed

For the full list of changes between v2.2.0 and v2.3.0 please see the v2.3.0-alpha.0 and the v2.3.0-alpha.1 release notes.

fix

  • fix: patch d3 libraries with victory-vendor to fix security vulnerability, failing test by @ckifer in #3167
    • SECURITY VULNERABILITY FIX πŸŽ‰: used victory-vendor to replace esm only versions of d3 with cjs compatible versions from victory. We will introduce a breaking change in 3.0 to move back to esm only d3 libraries. - closes #3012
  • memoize responsive container functions and fix bug using previous values in setState - 3214d14 - reverted in 2.3.1

refactor

  • ReactUtils – find by type – refactor using generic by @marcalexiei in #3152

chore

jest migration

New Contributors

Full Changelog:

v2.3.0-alpha.1

05 Jan 03:36
Compare
Choose a tag to compare
v2.3.0-alpha.1 Pre-release
Pre-release

What's Changed

Release v2.3.0-alpha.1 as an alpha release for 2.3.0 - this is the first release that contains the non-breaking security vulnerability fix for #3012

fix

  • patch/d3-color vulnerability fix - victory-vendor by @ckifer in #3135
  • AreaChart: Respect baseValue of AreaChart, but allow override from Area by @nikolasrieble in #3140

chore

jest migration

New Contributors

Full Changelog: v2.3.0-alpha.0...v2.3.0-alpha.1

v1.8.6

05 Jan 07:14
Compare
Choose a tag to compare

Update recharts 1.x to be even with the 1.x branch by releasing 1.8.6

What's Changed

chore

fix

New Contributors

Full Changelog: v1.8.5...v1.8.6