v6.0.0 beta 0
Pre-release
Pre-release
yarn add styled-components@beta
What's Changed
- refactor: conditionally use useInsertionEffect where available by @probablyup in #3726
- refactor: replace
git.io
within error message by @SukkaW in #3733 - fix: minor grammar mistakes in contribution guidelines by @imchell in #3771
- V6/fix newbie012 type regression by @probablyup in #3776
- chore: upgrade jest by @probablyup in #3778
- fixed bug #3793 and #3792 by @jasham in #3794
- updated a few dependencies
- removed react-primitives support
- update react-native component aliases to current stable list
- build size optimization (now 12.98kB)
Breaking changes in v6
- now using
stylis
v4 (if usingstylis-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 (useas
orforwardedAs
) - 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
- @SukkaW made their first contribution in #3733
- @imchell made their first contribution in #3771
- @jasham made their first contribution in #3794
Full Changelog: v6.0.0-alpha.5...v6.0.0-beta.0