Skip to content

build(deps): bump styled-components from 6.6.0 to 6.7.0 - #3540

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/styled-components-6.7.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/styled-components-6.7.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Bumps styled-components from 6.6.0 to 6.7.0.

Release notes

Sourced from styled-components's releases.

styled-components@6.7.0

Minor Changes

  • f17f6c0: configureServerStyles({ stylisPlugins }) sets the plugins every server component is styled with, for the whole server process. Call it once, at the top level of a module every server render loads first. In Next.js that's the root layout file:

    // app/layout.tsx
    import { configureServerStyles, stylisPluginRSC } from 'styled-components';
    configureServerStyles({ stylisPlugins: [stylisPluginRSC] });
    export default function RootLayout({ children }: { children: React.ReactNode }) {
    // ...
    }

    It reaches every server-rendered page and nested layout, including pages prerendered at build time and pages reached by client-side navigation, which a StyleSheetManager in a shared layout does not reach. A StyleSheetManager in a server component starts from these plugins; its own stylisPlugins prop replaces them, and stylisPlugins={[]} drops them.

    It applies to server components only. Client components take their plugins from a StyleSheetManager rendered on the client, such as the one in your style registry. Make one call per app: a later call replaces an earlier one and applies to renders that start after it.

Patch Changes

  • 4bfc2cb: Referring to another component in a style (${Box}:hover { ... }) produces that component's selector for any styled component under preact/compat, and for a React.memo or function wrapper that has the styled component's statics hoisted onto it.

  • 1ddadee: Each createGlobalStyle applies its own CSS when two global styles differ only in what their functions return, including bodies that are only a function (createGlobalStyle`${() => 'html { --a: 1; }'}`). This is how a CSS reset and a color-mode style are often written together, for example xstyled's Preflight and ColorModeProvider. When both set the same property, the one mounted most recently wins, and a prop or theme update does not change which one that is.

    When several mounts of one dynamic global style render on the server, the collected styles include every one of them, not only the last.

  • 4eaf66b: A styled-components/native component will no longer cause TypeScript to show an error of TS2590 ("Expression produces a union type that is too complex to represent") on a Reanimated useAnimatedRef ref, which it did from 6.5.3. However, if a DOM element or web styled component is checked earlier in the code then this error can still show, like a normal <div> would without styled-components.

  • 4bfc2cb: A StyleSheetManager in a server component honors namespace and enableVendorPrefixes when they are passed together with stylisPlugins={[]}, matching client components.

  • ed7b199: Server components keep their StyleSheetManager settings when several requests render at the same time on one server. A server component that awaited data could lose settings such as stylisPlugins partway through its render, so stylisPluginRSC selectors like :first-child came out unrewritten at random under load.

    A StyleSheetManager in server components that reuses the same stylisPlugins array no longer picks up the namespace or enableVendorPrefixes setting of another manager rendered before it.

  • 7831e15: Server component styles keep child combinators (>), quotes, and ampersands as written on Next.js 13.5 and 14, whose bundled React 18.3 canary HTML-escaped them inside the inline <style> tag (for example .a &gt; .b), so the browser dropped those rules on first load. A style value still cannot close the <style> tag. Next.js 15 and later were not affected and render the same output as before.

  • f17f6c0: stylisPluginRSC keeps its name through a production bundle, so its class names match in development and production and it passes the plugin name check.

  • 2a285ac: A stylis plugin without a name passed to <StyleSheetManager stylisPlugins={[...]}> now throws the documented "not named" error (#15) again. The error was being created but never thrown, so an anonymous function was accepted silently and shared its class names with the same component rendered without plugins.

  • 6aab68b: Numbers for fontSizeAdjust, hyphenateLimitChars, initialLetter, mathDepth, shapeImageThreshold, maskBorderOutset, maskBorderSlice, and maskBorderWidth in object styles render without a unit:

    const Heading = styled.h1({
      fontSizeAdjust: 0.5,
      hyphenateLimitChars: 6,
      initialLetter: 3,
      mathDepth: 1,
      shapeImageThreshold: 0.7,
    });
    // font-size-adjust: 0.5; hyphenate-limit-chars: 6; initial-letter: 3; math-depth: 1; shape-image-threshold: 0.7;

    Components that set any of these properties to a number get a new class name on upgrade, since the emitted CSS changes.

... (truncated)

Commits
  • f77d47b Version Packages (6.x) (#5843)
  • 7e167a4 fix: harden 6.7.0 packaging, RSC stylis cache, and client-reference Proxy han...
  • 7831e15 fix(rsc): keep >, quotes and & as written in server component styles on React...
  • 6aab68b fix: treat fontSizeAdjust, initialLetter, mathDepth, shapeImageThreshold as u...
  • 4eaf66b fix(native): avoid TS2590 error on Reanimated refs after a styled component (...
  • f17f6c0 feat(rsc): add configureServerStyles to set plugins for every server componen...
  • 4bfc2cb fix: component selectors for memo, function wrappers and Preact, server manag...
  • 1ddadee fix(createGlobalStyle): keep each global style's CSS when two differ only in ...
  • ed7b199 fix(rsc): keep StyleSheetManager settings per request in server components (#...
  • 2a285ac fix: throw the unnamed stylis plugin error instead of discarding it (#5837)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 30, 2026
@changeset-bot

changeset-bot Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d15a103

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@odinr

odinr commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Greenkeeper decision: Hold · Raise version floor: No

Hold styled-components 6.6.0 → 6.7.0: complete upstream release restores throws for unnamed Stylis plugins, changes CSS/class names for newly unitless properties and global-style collection/ordering. Breaking runtime behavior signal in routine non-Fusion minor requires styling/SSR consumer assessment. MIT unchanged/not deprecated; complete discussion non-blocking, zero alerts. Exclude 6.7.0; no demonstrated local failure or runtime validation.

@odinr

odinr commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Greenkeeper decision: Hold · Raise version floor: No

Styled-components6.7.0 restores unnamed Stylis plugin throws, changes CSS/class output for newly unitless object-style numbers and global ordering/server collection. Local templates/static EdsTokens narrow impact, but published filter Styled component subpaths expose extension/interpolation contract, no export map restrictions. Routine non-Fusion minor has consumer-contract blocker requiring maintainer styling/SSR assessment. MIT/engines/peers unchanged/no deprecation/blocking review, zero alerts. No local failure claimed; preserve floors and exclude6.7.0 from refresh.

@dependabot
dependabot Bot force-pushed the dependabot/bun/styled-components-6.7.0 branch from f75c9c9 to 4c2625d Compare December 4, 2026 08:05
Bumps [styled-components](https://github.com/styled-components/styled-components) from 6.6.0 to 6.7.0.
- [Release notes](https://github.com/styled-components/styled-components/releases)
- [Commits](https://github.com/styled-components/styled-components/compare/styled-components@6.6.0...styled-components@6.7.0)

---
updated-dependencies:
- dependency-name: styled-components
  dependency-version: 6.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/bun/styled-components-6.7.0 branch from 4c2625d to d15a103 Compare December 4, 2026 08:44

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant