Repository navigation
fix(deps): update dependency styled-components to ^6.4.4 - #2409
Merged
Merged
Conversation
Co-authored-by: Cody Olsen <[email protected]>
styled-components 6.4.4 restructured its polymorphic call-site types (styled-components/styled-components#5768): plain call sites now relate against a single conditional signature that no longer lets required style props of a styled(Box) wrapper go unchecked. Flex applies flexItemStyle without passing $flex (its public flex prop is forwarded to the inner Box, which resolves it to $flex), so the prop must be optional. flexItemStyle already guards for the missing value at runtime. Co-authored-by: Cody Olsen <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
🦋 Changeset detectedLatest commit: a1b8516 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the workspace catalog entry for styled-components from
^6.4.3to^6.4.4(release notes), used bypackages/ui,apps/storybook, andapps/docs.Supersedes the Renovate PR #2397, whose
buildcheck fails: 6.4.4 restructures the polymorphic call-site types (styled-components/styled-components#5768), and the flattened call signature no longer lets required style props of astyled(Box)wrapper go unchecked.FlexappliesflexItemStylewithout passing$flex(its publicflexprop is forwarded to the innerBox, which resolves it to$flex), which now errors with TS2769 inflex.tsx. Fixed by making$flexoptional on the internalResponsiveFlexItemStyleProps—flexItemStylealready guards for the missing value at runtime, and the interface is not part of the public API.Verified locally:
pnpm lint(includes type checking; fails onmain+ 6.4.4 without the fix),pnpm build,pnpm test(125 unit tests),pnpm test:browser(239 storybook tests),pnpm knip, and a fullsanity-ui-docsNext.js production build (the Renovate PR's ui-docs Vercel deploy also failed). Storybook demo ofFlex/Box/Gridon 6.4.4:storybook_flex_box_grid_with_styled_components_6_4_4.mp4
To show artifacts inline, enable in settings.