Releases: recharts/recharts
v2.4.1
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
Full Changelog: v2.4.0...v2.4.1
v2.4.0
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
- ResponsiveContainer β memoize responsive container by @marcalexiei in #3169
- ResponsiveContainer - debounce updating early by @GreenGremlin in #3175 - fixes #3029
- Treemap - Non boolean attribute z error by @proke03 in #3228 - fixes #2952
- ErrorBar - overflowing chart area by @Yilun-Sun in #3300 - fixes #2978
- Bar - default
y
andheight
values correctly fornull
data points by @ckifer in #3346 - fixes #3344 - fix: remove axis domain default prop and calculate it dynamically by @lukask-proxora in #3328 - fixes #2593
- fix: functions are no longer spread onto SVG elements if an SVG attribute name conflcits with a recharts prop by @ckifer in #3327 - fixes #3310
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
- ReferenceArea, ReferenceLine: added default values in params by @aushwin in #3283
- Bar- align code style by using destructuring for XAxis by @proke03 in #3349
- fix: typos by @Yilun-Sun in #3309
New Contributors
- @akib22 made their first contribution in #3179
- @proke03 made their first contribution in #3199
- @james2hey made their first contribution in #3229
- @nanguer made their first contribution in #3254
- @aushwin made their first contribution in #3283
- @bennettdams made their first contribution in #3293
Full Changelog: v2.3.2...v2.4.0
v2.3.2
What's Changed
fix
- fix bug introduced here - 9b83399#diff-9313d3857a9589abfe0113b9e0549e22b18b5f94c145c8908260f36be0d80c02R69 that causes accessing items out of index due to incorrect early return
Full Changelog: v2.3.1...v2.3.2
v2.3.1
v2.3.0
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 ofd3
withcjs
compatible versions from victory. We will introduce a breaking change in 3.0 to move back toesm
only d3 libraries. - closes #3012
- SECURITY VULNERABILITY FIX π: used
memoize responsive container functions and fix bug using previous values in- reverted in 2.3.1setState
- 3214d14
refactor
- ReactUtils β find by type β refactor using generic by @marcalexiei in #3152
chore
jest migration
- fix: migrate area chart test to typescript by @Yilun-Sun in #3151
- Jest Migration: util/DataUtils (#3134) by @marcalexiei in #3147
- Jest Migration: Cell by @nikolasrieble in #3150
- test(JestMigration): convert FunnelChart (closes #3127) by @marcalexiei in #3153
- Jest Migration: ChartUtils by @nikolasrieble in #3148
- JestMigration: Label and LabelList by @nikolasrieble in #3154
- test(JestMigration): convert ResponsiveContainer by @marcalexiei in #3157
- LineChart.spec jest migration by @turculaurentiu91 in #3141
- fix: area chart test migration follow up by @Yilun-Sun in #3161
- fix: area chart test part3 by @Yilun-Sun in #3163
- test: add jest coverage, differentiate jest and karma envs to fix errors by @ckifer in #3164
New Contributors
- @Yilun-Sun made their first contribution in #3151
Full Changelog:
v2.3.0-alpha.1
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
- chore(deps): bump json5 from 1.0.1 to 1.0.2 by @dependabot in #3136
- chore(deps-dev): remove unused dependencies by @marcalexiei in #3144
jest migration
- refactor: log and dom utils tests to jest and ts by @ckifer in #3133
- Jest Migration: ReactUtils by @nikolasrieble in #3139
- test(jest): remove console error and warn from stdout in LogUtils and ReactUtils by @marcalexiei in #3142
- test(ShallowEqual): convert test using jest by @marcalexiei in #3143
- Jest Migration: util/CartesianUtils by @nikolasrieble in #3145
New Contributors
- @marcalexiei made their first contribution in #3142
Full Changelog: v2.3.0-alpha.0...v2.3.0-alpha.1
v1.8.6
Update recharts 1.x to be even with the 1.x branch by releasing 1.8.6
What's Changed
chore
fix
- Fixed issue: Vertical layout throws [DecimalError] #1920 by @reachtokish in #1949
- Fixed tooltip flickering in 1.x branch by @ritwickdey in #2254
- Fix PropType typo in Tooltip by @mlh758 in #2775
New Contributors
- @reachtokish made their first contribution in #1949
- @ritwickdey made their first contribution in #2254
- @mlh758 made their first contribution in #2775
Full Changelog: v1.8.5...v1.8.6
v2.3.0-alpha.0
What's Changed
fix
- Fix IconType type by replacing Omit utility type with Exclude by @lukask-proxora in #3122
- Add reversed prop for PolarRadiusAxis by @lukask-proxora in #3123
- Fix type of Brush Props by @montoyaaguirre in #3129
- Rename BarChart.spec.jsx to BarChart.spec.tsx by @turculaurentiu91 in #3130
- fix: points attribute spread onto incorrect svg elements by @ckifer in #3101
- fix(types): add zIndex as valid AxisType, remove CategoricalChartOptions assertions by @neefrehman in #3108
- fix: add some missing payload properties that might be needed in custom tooltip, parity with definitely typed by @ckifer in #3121
refactor
- chore: use early return to improve readability of getAxisMapByAxes by @neefrehman in #3107
- refactor: move filterProps to ReactUtils and refactor references by @ckifer in #3116
- refactor: correct wrong spelling (ckeck, chilren) by @manudeli in #3119
chore
- chore: run prettier on spec files to align formatting by @ckifer in #3117
- Chore/run fix demo by @ckifer in #3118
- chore(deps): bump minimatch and mocha by @dependabot in #3089
- Chore/lint staged by @ckifer in #3093
- Fix CI by @ckifer in #3084
- fix: babel warnings, remove unneeded babel config by @ckifer in #3090
- Eslint: Update dependencies and remove redundant rule setup by @nikolasrieble in #3088
- Developer Experience: Add PR Template by @nikolasrieble in #3109
- fix: rename pr template by @ckifer in #3112
jest migration
- BarChart: Finish migration of test to jest by @nikolasrieble in #3111
- AreaChart: Remove duplicate tests and fix eslint setup by @nikolasrieble in #3106
- refactor: begin refactor to jest while continuing to run tests in karma by @ckifer in #3086
- test: refactor and fix piechart jest tests by @ckifer in #3100
New Contributors
- @neefrehman made their first contribution in #3108
- @manudeli made their first contribution in #3119
- @montoyaaguirre made their first contribution in #3129
- @turculaurentiu91 made their first contribution in #3130
Full Changelog: v2.2.0...v2.3.0-alpha.0