Skip to content

Bump styled-components from 6.1.1 to 6.4.2 in /graylog2-web-interface/packages/graylog-web-plugin#26132

Open
dependabot[bot] wants to merge 6 commits into
masterfrom
dependabot/npm_and_yarn/graylog2-web-interface/packages/graylog-web-plugin/styled-components-6.4.2
Open

Bump styled-components from 6.1.1 to 6.4.2 in /graylog2-web-interface/packages/graylog-web-plugin#26132
dependabot[bot] wants to merge 6 commits into
masterfrom
dependabot/npm_and_yarn/graylog2-web-interface/packages/graylog-web-plugin/styled-components-6.4.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 27, 2026

Bumps styled-components from 6.1.1 to 6.4.2.

Release notes

Sourced from styled-components's releases.

styled-components@6.4.2

Patch Changes

  • 9945904: Restore TypeScript prop autocomplete inside the JSX of a styled component once the first attribute is typed.
  • 9945904: Apply all chain levels' styles when an extended styled component renders with the as prop under Preact's react-compat.
  • 9945904: Respect a custom toString on plain value objects (e.g. design tokens) when interpolated into a styled component, rather than walking the object's keys as CSS declarations.
  • 9945904: Fix a TypeScript error when wrapping a component whose props include an as prop with a non-string type (such as Next.js Link's as?: Url). The styled component now accepts either the styled-components polymorphism value or the wrapped component's own as type, so spreading the wrapped component's props onto the styled component is assignable again.
  • 9945904: Restore reliable styling in production browser bundles built without a runtime process global.

styled-components@6.4.2-prerelease-20260516150535

d20b88e9bc16e234f5f2c2b3a7c7d7c0472d0edd Fix a TypeScript error when wrapping a component whose props include an as prop with a non-string type (such as Next.js Link's as?: Url). The styled component now accepts either the styled-components polymorphism value or the wrapped component's own as type, so spreading the wrapped component's props onto the styled component is assignable again.

Full Changelog: styled-components/styled-components@styled-components@6.4.2-prerelease-20260514185513...styled-components@6.4.2-prerelease-20260516150535

styled-components@6.4.2-prerelease-20260514185513

Internal changes only.

Full Changelog: styled-components/styled-components@styled-components@6.4.2-prerelease-20260514184932...styled-components@6.4.2-prerelease-20260514185513

styled-components@6.4.2-prerelease-20260514184932

No new changes since the previous release. (Debugging the changelog generation in the prerelease builds.)

Full Changelog: styled-components/styled-components@styled-components@6.4.2-prerelease-20260514182414...styled-components@6.4.2-prerelease-20260514184932

styled-components@6.4.2-prerelease-20260514182414

Patch Changes

  • 9945904e: Restore TypeScript prop autocomplete inside the JSX of a styled component once the first attribute is typed.

  • 9945904e: Apply all chain levels' styles when an extended styled component renders with the as prop under Preact's react-compat.

  • 9945904e: Respect a custom toString on plain value objects (e.g. design tokens) when interpolated into a styled component, rather than walking the object's keys as CSS declarations.

  • 9945904e: Fix a TypeScript error when wrapping a component whose props include an as prop with a non-string type (such as Next.js Link's as?: Url). The styled-components as and forwardedAs props now consistently override the wrapped component's same-named props instead of colliding with them.

  • 9945904e: Restore reliable styling in production browser bundles built without a runtime process global.

Full Changelog: styled-components/styled-components@styled-components@6.4.1...styled-components@6.4.2-prerelease-20260514182414

styled-components@6.4.1

Patch Changes

  • 49d09ae: Fix a performance regression in 6.4.0 where dynamic createGlobalStyle components caused significant re-render slowdowns. Also restores pre-6.4 cascade ordering when multiple instances of the same createGlobalStyle coexist.
  • eca95b2: Fix outdated dev-mode error messages for keyframes-in-untagged-strings and component-selector references that still pointed at www.styled-components.com and described behavior from styled-components v3.

styled-components@6.4.1-prerelease-20260417184545

Full Changelog: https://github.com/styled-components/styled-components/compare/styled-components@6.4.1-prerelease-20260417184031...styled-components@6.4.1-prerelease-20260417184545

styled-components@6.4.1-prerelease-20260417184031

What's Changed

... (truncated)

Commits
  • f9f6546 Version Packages
  • 1794522 fix: include changesets re-touched since the last prerelease [skip ci]
  • 0097cdb ci: branch-scoped Version Packages PR title
  • d20b88e fix(types): accept wrapped component's own as type when spreading props (#5...
  • 786cd8b fix: don't double-count changesets already posted in a prior prerelease
  • 0dd1325 chore: adjust release script
  • 4f2923a chore: get 6.x prereleases working properly
  • 9945904 6.x bugfixes (#5746)
  • f7cddb5 chore: run workflows for 6.x
  • 499664e chore: prep to allow 6.x point releases
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for styled-components since your current version.


Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [styled-components](https://github.com/styled-components/styled-components) from 6.1.1 to 6.4.2.
- [Release notes](https://github.com/styled-components/styled-components/releases)
- [Commits](https://github.com/styled-components/styled-components/compare/v6.1.1...styled-components@6.4.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
dennisoelkers and others added 5 commits May 27, 2026 08:38
styled-components 6.4.2 no longer accepts transient ($-prefixed) props
on a styled component unless they are declared via the `<{ ... }>`
generic. Move the prop declarations out of the surrounding
`React.ComponentType` annotation, and replace the `style` derivation
through StyledButton — which now resolves to the empty Mantine prop
set — with a plain `React.CSSProperties`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
In 6.4.2 the styled component's `as` prop is typed as `WebTarget`
(which includes class components), incompatible with the
`Validator<string>` that `React.ComponentType<Props>.propTypes.as`
expects. Drop the redundant cast; inference produces the right type.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
styled-components 6.4.2 puts `AsTarget` in the first generic slot of
the call signature, which swallows Mantine SegmentedControl's value
type generic. JSX usage like `<StyledSegmentedControl<DetailsSegment>>`
then matches the with-`as` overload and demands an `as` prop, while
the `onChange` parameter widens to `string`.

Annotate the styled component as `typeof SegmentedControl` so the
generic-value pass-through keeps working at the call sites.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The styled component's `color` prop carries the value returned by
`mapStyle`, which is a CSS color string from the theme (e.g.
`theme.colors.variant[style]`), not a `ColorVariant` name. Older
styled-components let the inner Mantine `color: MantineColor` (≈ any
string) pass through; 6.4.2 substitutes the explicit generic and now
flags the mismatch. Type the slot as `string` to match reality.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
react-ace's prop union is wide enough that styled-components 6.4.2's
extra `OverrideStyle<NoInfer<Substitute<...>>>` layers push TypeScript
past its recursion budget, producing "type too deep" / "union too
complex" errors at every JSX use site of StyledAceEditor.

Cast AceEditor to a plain `React.ComponentType<ComponentProps<typeof
AceEditor>>` first so styled-components only has to wrap one component
type instead of resolving the polymorphic class with its own generics.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dennisoelkers
Copy link
Copy Markdown
Member

Blocked by styled-components/styled-components#5756

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant