Skip to content

v6.0.0 beta 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@quantizor quantizor released this 02 Sep 04:00
· 272 commits to main since this release
yarn add styled-components@beta

What's Changed

  • breaking removed runtime prop validation functionality; use transient props for styling-only props or shouldForwardProp for more advanced scenarios
  • only minify standalone prod build by @henryqdineen in #3796
  • refactored component types to use a consolidated setup with a runtime switch (web | native) in the generic
  • improve misc types
  • smaller code size

Breaking changes in v6

  • now using stylis v4 (if using stylis-plugin-rtl you'll need to upgrade to the newer version)
  • styled-components now provides its own types; if you installed @types/styled-components in the past, you'll want to remove it
  • dropped $as and $forwardedAs props (use as or forwardedAs)
  • dropped automatic prop filtering; use transient props ($ prefix) for stuff you don't want to be passed to child component / HTML
  • dropped deprecated withComponent API (87f511a); use "as" prop instead
  • node >= 14 needed

Full Changelog: v6.0.0-beta.1...v6.0.0-beta.2