v0.20.0
What’s Changed
💥 Breaking changes
- Improvements to ListItem, Navigation and Pagination (#658) @federico-ercoles
- Remove ssr option from BentoProvider (#646) @gabro
- Drop React 17 (#645) @gabro
- Remove createDefineBentoSprinkles (#642) @gabro
Migration guide
-
#658 introduces some minor changes to the DS tokens used for List items when hovered/focused. The changes make the component more consistent with the rest of Bento and do not have a retro-compatible workaround.
-
#645 drops the compatibility with React 17. This enables us to leverage some React 18 specific features more easily. React 17 may still work, but it's no longer supported or tested.
-
#646 builds on #645: we've upgraded react-aria, which now uses React 18's native
useId
hook to generate ids (for example, there are the ids generated to match a label to its field in a form). Previously, react-aria used a custom id generator which ultimately required Bento users to pass thessr={true}
prop toBentoProvider
if they were using Bento in a SSR app. Thanks to our internal use ofuseId
, this is no longer necessary, so we just dropped thessr
prop fromBentoProvider
. You can safely remove it without a change in functionality. -
#642 removes
createDefineBentoSprinkles
. This used to be the primary mechanism for extending Bento with custom tokens, but it turned out to be a TS performance foot gun: usingcreateDefineBentoSprinkles
would increase compilation time by an order of magnitude, causing even tsserver to respond very slowly. We now advise usingcreateSprinkles
from@vanilla-extract/sprinkles
directly, you can read the updated guide for more information: https://developer.bento-ds.com/Customization/atoms-augmentation. The migration fromcreateDefineBentoSprinkles
should be relatively straightforward and only require a little more boilerplate. Feel free to reach out in the Discussions on GitHub if you face issues.
🔧 Dependency updates
- Update dependency @vanilla-extract/sprinkles to v1.6.1 (#649) @renovate-bot
- Drop React 17 (#645) @gabro
- Update storybook monorepo to v7.0.25 (#650) @renovate-bot
- Update dependency @types/node to v18.16.19 (#648) @renovate-bot
- Update dependency @floating-ui/dom to v1.4.3 (#652) @renovate-bot
- Update dependency @floating-ui/core to v1.3.1 (#651) @renovate-bot
- Update dependency @floating-ui/react-dom to v1.3.0 (#653) @renovate-bot
- Update dependency @storybook/testing-library to v0.2.0 (#654) @renovate-bot
- Update dependency @types/babel__traverse to v7.20.1 (#655) @renovate-bot
- Update dependency @vanilla-extract/css to v1.12.0 (#656) @renovate-bot