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