styled-components
6.6.0 · 12 Oct 2026MIT14.8M / weekRepositoryHomepagenpmAtom feed
Upgrading styled-components From 5.2.1 to 5.3.11
14 releases in betweennotes for 11
Reading releases, release notes and advisories…
- 1+
- change to make
- 0
- advisories fixed
- 3+
- new
- 8+
- fixes
Counted from 11 of 14 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
5.3.11nothing new or fixed in the note
- Fixed
Do not add px to unitless CSS variables
- Fixed
5.3.7 – 5.3.93 releases, nothing new or fixed; 1 without a note
- Deprecated
$asand$forwardedAswill be removed in the next major version, use the unprefixed props instead - Fixed
Fix statement on Ukraine
- Fixed
Fix/nonce in ssr
- Deprecated
5.3.2 – 5.3.54 releases, nothing new or fixed; 2 without a note
- 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)
- New
5.2.3nothing new or fixed in the note
6 other lines we could not sort, mostly version bumps
- 5.3.9
Make styled components work when the Object prototype is frozen
- 5.3.3
Backport #3568 (read from textContent rather than innerHTML during rehydrate) to v5
- 5.3.3
Generate more complete sourcemaps
- 5.3.0
Pass
elementToBeCreatedas a third parameter toshouldForwardPropso 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.2.2
For React Native based components, pass
testIDdown 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)
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.