Skip to content

Releases: styled-components/styled-components

v6.0.0-beta.8

23 Dec 23:15
Compare
Choose a tag to compare
v6.0.0-beta.8 Pre-release
Pre-release
yarn add styled-components@beta

What's Changed

  • revert rollup upgrade to resolve issues with cjs<>es default import interop
  • refactor(ThemeProvider): allow multiple children (871435c)

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.7...v6.0.0-beta.8

v6.0.0-beta.7

23 Dec 21:44
Compare
Choose a tag to compare
v6.0.0-beta.7 Pre-release
Pre-release
yarn add styled-components@beta

What's Changed

  • feat(StyleSheetManager): add optional namespacing (#3881); replaces functionality in the babel plugin to be performed at runtime
  • breaking refactor: remove deprecated withComponent API (87f511a); use "as" prop instead
  • feat: add styled as named export as well (5aed9e3); note that this syntax will probably not work with the babel plugin until it is updated
  • chore: dependency maintenance, including rollup upgrades

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.6...v6.0.0-beta.7

v6.0.0-beta.6

13 Nov 15:40
Compare
Choose a tag to compare
v6.0.0-beta.6 Pre-release
Pre-release
yarn add styled-components@beta

What's Changed

  • Bump stylis to version 4.1.3 by @lunaris in #3860 (adds @container CSS support)
  • Fix various type issues

Breaking changes in v6 (as of this version)

  • 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.5...v6.0.0-beta.6

v6.0.0-beta.5

26 Oct 03:11
Compare
Choose a tag to compare
v6.0.0-beta.5 Pre-release
Pre-release
yarn add styled-components@beta

What's Changed

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.4...v6.0.0-beta.5

v6.0.0-beta.4

25 Oct 09:42
Compare
Choose a tag to compare
v6.0.0-beta.4 Pre-release
Pre-release
yarn add styled-components@beta

What's Changed

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.3...v6.0.0-beta.4

v6.0.0-beta.3

04 Oct 03:59
Compare
Choose a tag to compare
v6.0.0-beta.3 Pre-release
Pre-release
yarn add styled-components@beta

What's Changed

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.2...v6.0.0-beta.3

v5.3.6

27 Sep 18:19
Compare
Choose a tag to compare

What's Changed

Deprecations

  • $as and $forwardedAs will be removed in the next major version, use the unprefixed props instead

New Contributors

Full Changelog: v5.3.5...v5.3.6

v6.0.0 beta 2

02 Sep 04:00
Compare
Choose a tag to compare
v6.0.0 beta 2 Pre-release
Pre-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

v6.0.0 beta 1

31 Aug 05:33
Compare
Choose a tag to compare
v6.0.0 beta 1 Pre-release
Pre-release
yarn add styled-components@beta

What's Changed

  • Fix speedy rule insertion when css contains multiple rules by @janicduplessis in #3787
  • performance optimizations
  • 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.0...v6.0.0-beta.1

v6.0.0 beta 0

31 Aug 03:41
Compare
Choose a tag to compare
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 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-alpha.5...v6.0.0-beta.0