Packages

styled-components

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

Upgrading styled-components From 1.4.6 to 2.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.4.6Latest6.6.0
The note of 2.0.0 lists no breaking change or deprecation, which is rare for a major.
  1. 1.4.6yours
  2. 2.0.0target
?
changes to make
0
advisories fixed
2
new
5
fixes

Release by release

  1. 2.0.0

    25 May 20172 new · 5 fixes
    • New

      Add hoisting static (non-React) properties for withTheme HOC

    • New

      Add innerRef support to withTheme HOC

    • Fixed

      Fix defaultProps used instead of ThemeProvider on first render

    • Fixed

      Prevent leakage of the innerRef prop to wrapped child; under the hood it is converted into a normal React ref

    • Fixed

      Fix Theme context for StyledComponent for IE <10

    • Fixed

      Fix setNativeProps in StyledNativeComponent

    • Fixed

      Fix ref being passed to Stateless Functional Components in StyledNativeComponent

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.