recharts 2.12.0
What's Changed
Bug fixes and a few small new features.
Releasing 2.12.0 to create a "clean slate" as contributors are discussing next moves for recharts.
We will try to focus on upgrades, architectural changes, and long-pending breaking changes so we can release a recharts v3. This will not be a large major version, or one hard to upgrade to, but rather a major version bump to prevent us from breaking people with library upgrades, large refactors, etc. Feature parity should hold. Thanks!
Features
Bar: Accept a callback function forminPointSizeso it can be determined by data by @ckifer in https://github.com/recharts/recharts/pull/4099 closes https://github.com/recharts/recharts/issues/2819Accessibility: Enable screen reader support with accessibilityLayer and default tooltip by @julianna-langston in https://github.com/recharts/recharts/pull/4077
Fix
Bar:activeBarshould not be true by default, fixes a breaking change from 2.9.0 by @ckifer in https://github.com/recharts/recharts/pull/4139 - fixes https://github.com/recharts/recharts/issues/4103 and https://github.com/recharts/recharts/issues/4101Scatter: fix non-unique key errors by @imagineLife in https://github.com/recharts/recharts/pull/4087 - fixes https://github.com/recharts/recharts/issues/4151 and https://github.com/recharts/recharts/issues/4060Pie: fix non-unique key errors by @imagineLife in https://github.com/recharts/recharts/pull/4106Tooltip: fix bug that caused throttled tooltip to stay active when moving mouse quickly by @HHongSeungWoo in https://github.com/recharts/recharts/pull/4100 fixes https://github.com/recharts/recharts/issues/4093
Chore
- Cleanup, tests, and refactoring work. Thanks @PavelVanecek
- Upgrade react smooth, remove
translateStyle, remove prop-types as a peerDep- NOTE: animations will no longer have browser prefixes on them. Browsers have good support for this (https://caniuse.com/?search=transforms)
- Upgrade dev dependencies
- Upgrade TypeScript to 4.9.5 (no definition changes from upgrade)
Storybook
- New storybook stories and doc updates
New Contributors
- @TRFielder made their first contribution in https://github.com/recharts/recharts/pull/4088
Full Changelog: https://github.com/recharts/recharts/compare/v2.11...v2.12.0