Skip to content

chore(deps): bump styled-components from 6.4.4 to 6.5.0 - #5240

Merged
odinr merged 1 commit into
mainfrom
dependabot/npm_and_yarn/styled-components-6.5.0
Aug 10, 2026
Merged

chore(deps): bump styled-components from 6.4.4 to 6.5.0#5240
odinr merged 1 commit into
mainfrom
dependabot/npm_and_yarn/styled-components-6.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 7, 2026

Copy link
Copy Markdown
Contributor

Bumps styled-components from 6.4.4 to 6.5.0.

Release notes

Sourced from styled-components's releases.

styled-components@6.5.0

Minor Changes

  • dfe4baf: React Native components now check style against React Native's own style types. Web-only CSS such as float, and CSS custom properties such as --brand, were previously accepted even though React Native has never done anything with them at runtime. They now surface as a type error where you write them instead of silently doing nothing.

    const Card = styled.View``;
    <Card style={{ padding: 16 }} />; // unchanged
    <Card style={{ float: 'left' }} />; // now a type error

    Web components are unaffected and still accept custom properties.

  • dfe4baf: Declaring your own style prop type now constrains the fields you name while leaving the rest of CSS alone. Previously a declaration like styled.div<{ style?: { width: number } }> was quietly ignored, because the built-in style type was applied after your props, so any CSS value was still accepted. Now width has to be a number, while color, custom properties, and everything else you did not mention keep working as before.

    To remove a field rather than constrain it, declare it as never. To make your type the only thing accepted, wrap it in the new CustomStyle helper, which removes every field you did not list:

    const Box = styled.div<{ style?: CustomStyle<{ width: number }> }>``;

    The constraint holds when the component is rendered through as or forwardedAs, so it cannot be sidestepped by rendering the same component as a different tag. Note that CustomStyle removes CSS custom properties too, since they are among the fields you did not list.

    One thing to know if you use exactOptionalPropertyTypes: on a component that declares its own style, passing style={undefined} explicitly is now rejected. Leaving the prop off is unaffected. Write style?: { width: number } | undefined in your declaration if you need to pass it explicitly.

    Relatedly, reading the style type back off a component (for example with React.ComponentProps) now reports that CSS custom properties are accepted, which matches what was already allowed when rendering.

  • 2949923: Large TypeScript projects type-check dramatically faster. On a 500-component app, tsc check time drops to under a quarter of what 6.4.4 takes and peak memory to under a third, which resolves the out-of-memory failures some projects hit after upgrading past 6.4.2. Both are now better than 6.4.2 was, so there is no longer a reason to pin to it. Editor responsiveness improves by the same margin, and autocomplete on as targets is unchanged.

Patch Changes

  • dfe4baf: Fixed ref being rejected on React Native components created with the shorthand syntax, such as styled.TextInput. Passing a ref, or a ref callback whose parameter you have not annotated, now works the same way it does with styled(TextInput).

    Also fixed a type error when a component's attrs callback is given an explicit parameter type, as in styled.div.attrs<MyProps>(props => props).

  • dfe4baf: Fixed components built on targets whose props cannot be inspected, such as Mantine's polymorphic components, rejecting children and the target's own props once you added a prop of your own:

    const Styled = styled(MantineButton)<{ $variant: 'a' | 'b' }>``;
    <Styled $variant="a" variant="filled">
    this now works
    </Styled>;

    Wrapping such a target without adding props already worked; adding one turned the permissiveness off. Your own declared props stay strictly typed either way.

styled-components@6.5.0-prerelease-20260804151232

Minor Changes

... (truncated)

Commits
  • ef5142a Version Packages (6.x) (#5786)
  • dfe4baf feat(types): derive target props once per target, and merge a declared style ...
  • 2949923 fix(types): cut consumer type-check cost for polymorphic components (#5783)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 7, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner August 7, 2026 17:09
@changeset-bot

changeset-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c70fe93

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

@github-actions github-actions Bot added the 🚧 chore maintaines work, (update deps, workflos ...) label Aug 7, 2026
Bumps [styled-components](https://github.com/styled-components/styled-components) from 6.4.4 to 6.5.0.
- [Release notes](https://github.com/styled-components/styled-components/releases)
- [Commits](https://github.com/styled-components/styled-components/compare/styled-components@6.4.4...styled-components@6.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@odinr
odinr force-pushed the dependabot/npm_and_yarn/styled-components-6.5.0 branch from 0835fa1 to c70fe93 Compare August 10, 2026 07:18
@odinr

odinr commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Dependency PR Review — automated

Update: styled-components 6.4.4 → 6.5.0 (minor)

Scope: lockfile-only change. Consumers (packages/dev-portal, packages/react/components/bookmark) declare ^6.3.11, already satisfying 6.5.0 — no manifest change, no changeset required.

Validation:

  • Rebased cleanly onto main, no conflicts.
  • pnpm install --frozen-lockfile
  • pnpm build:affected — 84/84 tasks ✓
  • pnpm test — 763 passed. 3 pre-existing failures in @equinor/fusion-framework-module-state (native leveldown/PouchDB binding missing on this platform) — confirmed identical on main, unrelated to this bump.
  • pnpm check (Biome) — clean, 1 unrelated info-level schema-version notice.

Verdict: High confidence — merging.

@odinr
odinr merged commit 46cdcc2 into main Aug 10, 2026
9 checks passed
@odinr
odinr deleted the dependabot/npm_and_yarn/styled-components-6.5.0 branch August 10, 2026 07:20
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.13% 3931 / 5855
🔵 Statements 66.87% 4697 / 7024
🔵 Functions 53.54% 1361 / 2542
🔵 Branches 55.77% 2063 / 3699
File CoverageNo changed files found.
Generated in workflow #15209 for commit c70fe93 by the Vitest Coverage Report Action

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

Labels

🚧 chore maintaines work, (update deps, workflos ...) 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