styled-components
6.6.0 · 12 Oct 2026MIT14.8M / weekRepositoryHomepagenpmAtom feed
Upgrading styled-components From 3.1.4 to 3.4.10
24 releases in betweennotes for 22
Reading releases, release notes and advisories…
- 1+
- change to make
- 0
- advisories fixed
- 18+
- new
- 16+
- fixes
Counted from 22 of 24 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking3.2.0
Release by release
- New
Added a few iframe attributes to the valid attribute list:
allow,allowUserMedia,allowPaymentRequest,
- New
3.4.8 – 3.4.92 releases, nothing new or fixed in the notes
- New
Add warning for the upcoming removal of the
injectGlobalAPI in v4.0,
- New
3.4.4 – 3.4.63 releases, nothing new or fixed in the notes
- New
Add warning for the upcoming removal of the
extendAPI in v4.0, - Fixed
Fix the primitives build,
- New
- New
Add error system,
- Fixed
Fixed a bug in typings where
isStyledComponentwas defined using an undefined variable, - Fixed
Fix "stream" module not being properly eliminated by rollup,
- New
- New
Add first-class support for functions that return objects,
- New
Add support for the prop variants used by Preact (
autofocus,class,for), - New
Add benchmarking suite,
- New
14 other lines we could not sort, mostly version bumps
- 3.4.7
Backport from v4: Beef up the error message that sometimes occurs when multiple versions of styled components are used together and the StyleSheet instance can't be found,
- 3.4.5
Tone down the dev warnings for deprecated APIs (they were
console.error, nowconsole.warn), - 3.4.3
Throw Error if a React component was mistakenly interpolated within styles,
- 3.4.0
Various performance improvements,
- 3.4.0
Revert #1798,
- 3.3.3
Adjust how displayName is generated when not using Babel to properly preserve a displayName passed via
withConfig, - 3.3.2
Upgrade flow-bin to latest,
- 3.3.2
Update various CI bits,
- 3.3.2
Reimplement SSR stream handling as a transform stream rather than a second-order readable stream,
- 3.3.0
Hoist non-react static properties on wrapped classes,
3 internal lines (docs, tests, tooling) left out.
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.