Packages

styled-components

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

Upgrading styled-components From 6.3.8 to 6.3.9

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 6.3.8Newest 6.x, Latest6.6.0
  1. 6.3.8yours
  2. 6.3.9target
0
changes to make
0
advisories fixed
1
new
6
fixes

Release by release

  1. 6.3.9

    8 Feb 20261 new · 6 fixes
    • New

      Optimize internal style processing hot paths: cached GroupedTag index lookups, string fast path in flatten, direct string concatenation in dynamic style generation, pre-built stylis middleware chain with lazy RegExp creation, single-lookup Map operations, VirtualTag append fast-path, and manual string concat in SSR output.

    • Fixed

      Fix CSS block comments containing // (e.g. URLs) causing subsequent styles to not be applied.

    • Fixed

      Fix createGlobalStyle styles not being removed when unmounted in RSC environments. React 19's precedence attribute on style tags makes them persist as permanent resources; global styles now render without precedence so they follow normal component lifecycle.

    • Fixed

      In RSC environments, theme is now undefined instead of {} for styled components, matching the existing behavior of withTheme and createGlobalStyle. This ensures accessing theme properties without a ThemeProvider correctly throws rather than silently returning undefined.

    • Fixed

      Fix withTheme HOC types: ref now correctly resolves to the component instance type instead of the constructor, and theme is properly optional in the wrapped component's props.

    • Fixed

      Fix SSR styles hydration and global style cleanup in Shadow DOM

    • Fixed

      Revert exports field and restore browser/server build split with browser field in package.json. Fixes require('stream') resolution errors in browser bundlers like webpack 5.

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.