npm styled-components 6.0.0-beta.10
v6.0.0-beta.10

latest releases: 6.1.13, 6.1.12, 6.1.11...
21 months ago
yarn add styled-components@beta

Changed in this version

  • fix: interpolation functions returning null should not console.error by @charltoons in #3925
  • fix: prevent crash when process.env is not defined by @eMerzh in #3907
  • Fixes issue when using an ampersand (&) to scope css to a parent selector alongside the new namespace feature by @marmite22 in #3908
  • feat(StyleSheetManager): add ability to provide default shouldForwardProp by @probablyup in #3930
  • refactor: type adjustments by @probablyup in #3931

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

New Contributors

Full Changelog: v6.0.0-beta.9...v6.0.0-beta.10

Don't miss a new styled-components release

NewReleases is sending notifications on new releases.