Packages

styled-components

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

Upgrading styled-components From 5.0.1 to 5.3.11

18 releases in betweennotes for 15

Reading releases, release notes and advisories…

Other targets from 5.0.1Latest6.6.0
  1. 5.0.1yours
  2. 17 releases
  3. 5.3.11target
1+
change to make
0
advisories fixed
9+
new
12+
fixes

Counted from 15 of 18 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Deprecated5.3.6

Release by release

  1. 5.3.11nothing new or fixed in the note

  2. 5.3.10

    23 Apr 20231 fix
    • Fixed

      Do not add px to unitless CSS variables

  3. 5.3.7 – 5.3.93 releases, nothing new or fixed; 1 without a note

  4. 5.3.6

    Deprecation27 Sep 20222 fixes
    • Deprecated

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

    • Fixed

      Fix statement on Ukraine

    • Fixed

      Fix/nonce in ssr

  5. 5.3.2 – 5.3.54 releases, nothing new or fixed; 2 without a note

  6. 5.3.1

    24 Aug 20212 new · 4 fixes
    • New

      Add missing typeof window check when checking for duplicate instances of styled-components (See #3553)

    • New

      Support css tagged templates inside style objects,

    • Fixed

      Fix forced server-side mode not triggering global styles (See #3566)

    • Fixed

      Fix SSR collisions caused by insufficient hash inputs and reordering of groups on the client, which is a regression in v5.2.0 (See #3563)

    • Fixed

      Fix dynamic creation React warning for React v18, backported to v5

    • Fixed

      Prevent ServerStyleSheet from emitting empty style tags, which would cause issues in IE11 (See #3555)

  7. 5.3.0

    5 May 20211 fix
    • Fixed

      Fix React Native components accepts function as style prop. (see #3389)

  8. 5.2.3nothing new or fixed in the note

9 other lines we could not sort, mostly version bumps
  • Make styled components work when the Object prototype is frozen

    5.3.9
  • Backport #3568 (read from textContent rather than innerHTML during rehydrate) to v5

    5.3.3
  • Generate more complete sourcemaps

    5.3.3
  • Pass elementToBeCreated as a third parameter to shouldForwardProp so that the user-specified function can decide whether to pass through props based on whether the created element will be a tag or another component. (see #3436)

    5.3.0
  • For React Native based components, pass testID down to the native component if specified for an easier time testing. (see #3365)

    5.2.2
  • COMPLEX_SELECTOR_PREFIX.includes wasn't transpiled (see #3397)

    5.2.2
  • Make sure StyleSheetManager renders all styles in iframe / child windows (see #3159) thanks @eramdam!

    5.2.0
  • Rework how components self-reference in extension scenarios (see #3236); should fix a bunch of subtle bugs around patterns like & + &

    5.2.0
  • We no longer emit dynamic classNames for empty rulesets, so some className churn may occur in snapshots

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