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…
- 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
- 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_SPEEDYvariable, - New
Add pixels to unitless numbers when object interpolation is used,
- Deprecated
3 other lines we could not sort, mostly version bumps
- 4.1.0
Performance optimization for fully static (no function interpolation) styled-components by avoiding using
ThemeConsumersince 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)
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.