v2.10
版本发布时间: 2023-11-19 22:31:29
recharts/recharts最新发布版本:v2.13.0-alpha.5(2024-09-06 01:32:02)
What's Changed
Highlights
Both @HHongSeungWoo and @bernardobelchior landed improvements to performance!
- Perf: rendering improvement by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3914
- Reduce calls to
getStringSize
when calculating visible ticks (#2589) by @bernardobelchior in https://github.com/recharts/recharts/pull/3953
We have made progress on our preparation of the 3.0 version by migrating from jest to vite. For details and motivation, please read the issue linked to the PR. Special thanks to @branberry for pushing on vitest! Thank you.
- Testing: Migrate from jest to vitest by @nikolasrieble in https://github.com/recharts/recharts/pull/3890
Fix
- fix(RadarChart): angleAxis type='number' dose not render correctly by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3960
- Fix: Respect the user configuration of Tootip - active by @nikolasrieble in https://github.com/recharts/recharts/pull/3935
- fix(tooltip): incorrect array slicing by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3972
- fix: #3073 by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3862
- Fix #2589 by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3893
- Fix #2862 by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3892
- fix(vitest-snapshots): regen incorrect vitest snaps by @ckifer in https://github.com/recharts/recharts/pull/3903
- Fix #172 by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3908
- Fix overwritten props for accessibilityLayer by @mrskiro in https://github.com/recharts/recharts/pull/3920
- Add
dataKey
prop onCategoricalChartProps
by @charpeni in https://github.com/recharts/recharts/pull/3870 - Added scroll offset positions to spoof calculations to fix accessibility issue by @gouravnema in https://github.com/recharts/recharts/pull/3879
- Change in the value of CategoricalChartFunc by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3894
- Fix ResponsiveContainer by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3921
- fix(tooltip): add updateBBox on componentDidMount by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3924
- fix: missing index on LabelProps type by @ckifer in https://github.com/recharts/recharts/pull/3939
- fix: Line never checks for new totalLength on component update by @ckifer in https://github.com/recharts/recharts/pull/3946
- fix(tooltip): Coordinate prop of Tooltip can be null by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3948
- Fixed the initial mount re-rendering bug in ResponsiveContainer by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3918
- fix(tooltip): getTooltipContent should avoid undefined by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3957
- fix: don't allow negative height and width values by @ckifer in https://github.com/recharts/recharts/pull/3963
Chore
- Lodash: Import only specific functions by @nikolasrieble in https://github.com/recharts/recharts/pull/3902
- _.isArray: Replace with Array.isArray by @nikolasrieble in https://github.com/recharts/recharts/pull/3864
- Remove unit test that was comparing new/old reduce-css-calc by @PavelVanecek in https://github.com/recharts/recharts/pull/3868
- chore(deps-dev): bump @babel/traverse from 7.22.11 to 7.23.2 by @dependabot in https://github.com/recharts/recharts/pull/3869
- Update Typescript version by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3881
- Remove duplicate types In Area chart by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3882
- Tooltip translate tests by @PavelVanecek in https://github.com/recharts/recharts/pull/3872
- Cleanup babel by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3905
- Remove unused babel plugin in the demo by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3909
- Replace classnames by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3910
- Move function getUniqPayload to separate file, add tests by @PavelVanecek in https://github.com/recharts/recharts/pull/3878
- Refactoring mouse event by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3891
- Refactoring ResponsiveContainer by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3885
- Reuse assertNotNull in AccessibilityLayer.spec.tsx by @PavelVanecek in https://github.com/recharts/recharts/pull/3916
- Split Tooltip into TooltipBoundingBox by @PavelVanecek in https://github.com/recharts/recharts/pull/3951
- Chore: test Global util + include coverage in test command by @imagineLife in https://github.com/recharts/recharts/pull/3974
Storybook
- LineChartStories: Replace random data with default pageData by @nikolasrieble in https://github.com/recharts/recharts/pull/3860
- Customized stories - 3740 by @Shashangbhagat in https://github.com/recharts/recharts/pull/3863
- Add AccessibilityLater button story with a button by @PavelVanecek in https://github.com/recharts/recharts/pull/3917
- Storybook: Fix Pie API story by @nikolasrieble in https://github.com/recharts/recharts/pull/3943
- Storybook: Fix Pie.mdx by @nikolasrieble in https://github.com/recharts/recharts/pull/3944
- Storybook: Cleanup and simplify Tooltip stories by @nikolasrieble in https://github.com/recharts/recharts/pull/3952
- Add synchronised tooltip story by @PavelVanecek in https://github.com/recharts/recharts/pull/3964
Feat
- feat: Funnel support custom shape prop by @andrewangelle in https://github.com/recharts/recharts/pull/3886
New Contributors
- @charpeni made their first contribution in https://github.com/recharts/recharts/pull/3870
- @gouravnema made their first contribution in https://github.com/recharts/recharts/pull/3879
- @mrskiro made their first contribution in https://github.com/recharts/recharts/pull/3920
- @imagineLife made their first contribution in https://github.com/recharts/recharts/pull/3974
Full Changelog: https://github.com/recharts/recharts/compare/v2.9.0...v2.10