Packages

styled-components

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

Upgrading styled-components From 4.0.3 to 4.1.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.0.3Newest 4.x4.4.1Latest6.6.0
  1. 4.0.3yours
  2. 4.1.0target
1
change to make
0
advisories fixed
2
new
0
fixes

Before you upgrade

Tick each one off as you go
  • Deprecated4.1.0

Release by release

  1. 4.1.0

    Deprecation12 Nov 20182 new
    • Deprecated

      Attrs can now be passed a function (see #2200); thanks @oliverlaz for providing an early PoC PR for this!

    • New

      Allow disabling "speedy" mode via global SC_DISABLE_SPEEDY variable,

    • New

      Add pixels to unitless numbers when object interpolation is used,

3 other lines we could not sort, mostly version bumps
  • Performance optimization for fully static (no function interpolation) styled-components by avoiding using ThemeConsumer since it isn't necessary,

    4.1.0
  • The standalone CDN build is now UMD-compliant and can be used with RequireJS, etc.

    4.1.0
  • Trying to interpolate a non-styled component into CSS is now a hard error, rather than a warning (see #2173)

    4.1.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.