Packages

styled-components

6.6.0 · 12 Oct 2026MIT14.8M / weekRepositoryHomepagenpmAtom feed

Upgrading styled-components From 4.4.1 to 5.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.4.1Latest6.6.0
  1. 4.4.1yours
  2. 5.0.0target
1
change to make
0
advisories fixed
3
new
0
fixes

Start here

Before you upgrade

Tick each one off as you go
  • Breaking5.0.0

Release by release

  1. 5.0.0

    Migration needed13 Jan 20203 new
    • Breaking

      Update css-to-react-native to v3.0.0 (#2811); the one breaking change noted is that unitless line height is no longer allowed when setting font properties

    • New

      You can now supply stylis plugins like stylis-plugin-rtl; <StyleSheetManager stylisPlugins={}>...</StyleSheetManager>

    • New

      disableVendorPrefixes removes autoprefixing if you don't need legacy browser support; <StyleSheetManager disableVendorPrefixes>...</StyleSheetManager>

    • New

      disableCSSOMInjection forces using the slower injection mode if other integrations in your runtime environment can't parse CSSOM-injected styles; <StyleSheetManager disableCSSOMInjection>...</StyleSheetManager>

8 other lines we could not sort, mostly version bumps
  • 19% smaller bundle size

    5.0.0
  • 18% faster client-side mounting

    5.0.0
  • 17% faster updating of dynamic styles

    5.0.0
  • 45% faster server-side rendering

    5.0.0
  • RTL support

    5.0.0
  • Removed the "subfunction" attrs syntax that was deprecated in v4

    5.0.0
  • Disallow /ad/i in generated class names (#2837); this change primarily helps to avoid some overly aggressive ad blockers that will mangle generated classnames containing the substring "ad"

    5.0.0
  • If you use styled-components from CDN, in v5 the "react-is" dependency was added (make sure you add this to your project)

    5.0.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.