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 forminPointSize
so it can be determined by data by @ckifer in #4099 closes #2819Accessibility
: Enable screen reader support with accessibilityLayer and default tooltip by @julianna-langston in #4077
Fix
Bar
:activeBar
should not be true by default, fixes a breaking change from 2.9.0 by @ckifer in #4139 - fixes #4103 and #4101Scatter
: fix non-unique key errors by @imagineLife in #4087 - fixes #4151 and #4060Pie
: fix non-unique key errors by @imagineLife in #4106Tooltip
: fix bug that caused throttled tooltip to stay active when moving mouse quickly by @HHongSeungWoo in #4100 fixes #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 #4088
Full Changelog: v2.11...v2.12.0