Packages

styled-components

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

Upgrading styled-components From 4.0.2 to 4.0.3

1 release in betweenevery note read

Reading releases, release notes and advisories…

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

Release by release

  1. 4.0.3

    30 Oct 20183 new
    • New

      Add suppressClassNameWarning prop to disable warning when wrapping a React component with styled() and the className isn't used,

    • New

      Expose ThemeContext to enable static contextType support for React 16.6,

    • New

      Add warning if an attrs prop is a function that returns an element,

2 other lines we could not sort, mostly version bumps
  • Interpolating a styled component into a string now returns the static component selector (emotion cross-compat)

    4.0.3
  • Filter out invalid HTML attributes from attrs,

    4.0.3

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.