Packages

styled-components

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

Upgrading styled-components From 4.0.2 to 4.4.1

12 releases in betweennotes for 9

Reading releases, release notes and advisories…

Other targets from 4.0.2Latest6.6.0
  1. 4.0.2yours
  2. 11 releases
  3. 4.4.1target
1+
change to make
0
advisories fixed
9+
new
7+
fixes

Counted from 9 of 12 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Deprecated4.1.0

Release by release

  1. 4.4.1

    30 Oct 20191 fix
    • Fixed

      Fix styled-components's react-native import for React Native Web,

  2. 4.4.0

    23 Sep 20193 fixes
    • Fixed

      Fix to use ownerDocument instead of global document,

    • Fixed

      Fix attrs not properly taking precedence over props

    • Fixed

      Fix add check for style tag detached - sheet in the style tag is null in this case,

  3. 4.3.1 – 4.3.22 releases, nothing new or fixed in the notes

  4. 4.3.0

    5 Jun 20192 new · 2 fixes
    • New

      Add "forwardedAs" prop to allow deeply passing a different "as" prop value to underlying components when using styled() as a higher-order component (see #2580)

    • New

      Implement defaultProps folding (see #2597)

    • Fixed

      Fix components being folded inappropriately when an interim HOC is present (see #2586)

    • Fixed

      Fix theme prop for styled native components, also fixes theme in defaultProps for them (see #2576)

  5. 4.2.1no release note

  6. 4.2.0

    23 Mar 20192 new · 1 fix
    • New

      Add svg tag marker to domElements.js (see #2389)

    • New

      Expose StyleSheetContext and StyleSheetConsumer for you fancy babes doing wild stuff

    • Fixed

      Fix an edge case where React would break streaming inside <textarea> elements, which have special child behavior and aren't a suitable place to inject a style tag (see #2413)

  7. 4.1.1 – 4.1.33 releases, nothing new or fixed; 2 without a note

  8. 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,

15 other lines we could not sort, mostly version bumps
  • Remove dev-time warning if referencing a theme prop without an outer ThemeProvider, the check for it isn't smart enough to handle cases with "or" or ternary fallbacks and creates undesirable noise in various third party integrations

    4.4.1
  • Backport fix for SSR classname mismatches in development mode for some environments like next.js (see #2701)

    4.4.0
  • Backport fix where classnames are composed in the wrong order if custom class names are passed in (see #2760)

    4.4.0
  • Revert #2586; breaks rehydration in dev for certain runtimes like next.js

    4.3.1
  • Make it possible to initialize SC_ATTR and SC_DISABLE_SPEEDY via REACT_APP_* .env variables for easier integration with CRA applications (see #2501)

    4.3.0
  • Reduced GC pressure when using component selector styles. (see #2424).

    4.2.0
  • Make the GlobalStyleComponent created by createGlobalStyle call the base constructor with props (see #2321).

    4.2.0
  • Move to Mono repository structure with lerna @imbhargav5 (see #2326)

    4.2.0
  • Filter suppressClassNameWarning to not to pass down to the wrapped components @taneba (see #2365)

    4.2.0
  • Put back the try/catch guard around a part of the flattener that sometimes receives undetectable SFCs (fixes an errant hard error in an edge case)

    4.1.1

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.