fix(deps): update dependency styled-components to v6 #67
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.
This PR contains the following updates:
5.3.9→6.3.5Release Notes
styled-components/styled-components (styled-components)
v6.3.5Compare Source
v6.3.4Compare Source
Patch Changes
8e8c282: FixedcreateGlobalStyleto not useuseLayoutEffecton the server, which was causing a warning and broken styles in v6.3.x. The checktypeof React.useLayoutEffect === 'function'is not reliable for detecting server vs client environments in React 18+, so we now use the__SERVER__build constant instead.v6.3.3Compare Source
Patch Changes
6e4d1e7: fix: suppress false "created dynamically" warnings in React Server ComponentsThe dynamic creation warning check now properly detects RSC environments and skips validation when
IS_RSCis true. This eliminates false warnings for module-level styled components in server components, which were incorrectly flagged due to RSC's different module evaluation context. Module-level styled components in RSC files no longer trigger warnings since they cannot be created inside render functions by definition.v6.3.2Compare Source
Patch Changes
a4b4a6b: fix: include TypeScript declaration files in npm packageFixed Rollup TypeScript plugin configuration to override tsconfig.json's noEmit setting, ensuring TypeScript declaration files are generated during build.
a4b4a6b: fix: resolve TypeScript error blocking type declaration emissionFixed TypeScript error in StyledComponent when merging style attributes from attrs. Added explicit type cast to React.CSSProperties to safely merge CSS property objects. This error was preventing TypeScript declaration files from being generated during build.
v6.3.1Compare Source
Patch Changes
046e880: Ensure TypeScript declaration files are included in npm package, needed to tweak a Rollup setting.v6.3.0Compare Source
Minor Changes
28fd502: Add React Server Components (RSC) supportstyled-components now automatically detects RSC environments and handles CSS delivery appropriately:
'use client'directive required: Components work in RSC without any wrapper or directive<style>tags that React 19 automatically hoists and deduplicatesServerStyleSheetcontinue to work unchangedRSC best practices:
&[data-size='lg'])style, and cascade to children:ThemeProvideris a no-op in RSCTechnical details:
typeof React.createContext === 'undefined'ThemeProviderandStyleSheetManagerbecome no-ops in RSC (children pass-through)856cf06: feat: update built-in element aliases to include modern HTML and SVG elementsAdded support for modern HTML and SVG elements that were previously missing:
HTML elements:
search- HTML5 search elementslot- Web Components slot elementtemplate- HTML template elementSVG filter elements:
fe*filter primitive elements (feBlend, feColorMatrix, feComponentTransfer, etc.)clipPath,linearGradient,radialGradient- gradient and clipping elementstextPath- SVG text path elementswitch,symbol,use- SVG structural elementsThis ensures styled-components has comprehensive coverage of all styleable HTML and SVG elements supported by modern browsers and React.
Patch Changes
418adbe: fix(types): add CSS custom properties (variables) support to style propCSS custom properties (CSS variables like
--primary-color) are now fully supported in TypeScript without errors:.attrs({ style: { '--var': 'value' } })- CSS variables in attrs<Component style={{ '--var': 'value' }} />- CSS variables in component propsaef2ad6: Update shared css property handling tools to latest versions.v6.2.0Compare Source
v6.1.19Compare Source
Patch Changes
aa997d8: fix for React Native >=0.79 crashes when using unsupported web-only CSS values (e.g., fit-content, min-content, max-content). The fix emits a warning and ignores the property using those values, instead of causing crashes.v6.1.18Compare Source
Patch Changes
76b18a4: fix react 19 compatibilitybdac7af: Quickfix to support expo sdk >= 53 and react-native >=0.79.v6.1.17Compare Source
Patch Changes
47a4dcb: Fix for looseDefaultThemetype definitiona8c0f5b: fix: add info link to consolev6.1.16Compare Source
Patch Changes
246c77b: Resolve TS error related toExoticComponentWithDisplayNameAPI from React.4757191: Native typings weren't on the correct folder, which caused issues on React Native projects using this libraryv6.1.15Compare Source
Patch Changes
b9688ae: chore: update postcss to version 8.4.49 and nanoid to version 3.3.8v6.1.14Compare Source
Patch Changes
6908326: Add changesets for release management18ebf6d: Prevent styled() from injecting an undefined ref prop in React 19v6.1.13Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.1.12...v6.1.13
v6.1.12Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.1.11...v6.1.12
v6.1.11Compare Source
What's Changed
Full Changelog: styled-components/styled-components@v6.1.10...v6.1.11
v6.1.10Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.1.9...v6.1.10
v6.1.9Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.1.8...v6.1.9
v6.1.8Compare Source
Revert adding
peerDependenciesfrom v6.1.7; apparently some package managers have differing behaviors aroundpeerDependenciesMeta[package].optionalwhich is causing issues. Will revisit at a later date if possible.Full Changelog: styled-components/styled-components@v6.1.7...v6.1.8
v6.1.7Compare Source
What's Changed
chore: add all missing peer dependency statements by @quantizor in #4243
NOTE: this change may cause some installed dependency duplication until this NPM bug is addressed but yarn and pnpm have correct behavior. Bun also has a similar bug.
Overall these changes ensure that styled-components is specifying a known working version of all utilized libraries, while instructing the client package manager that higher semver-compliant versions are permissible and should work, assuming the relevant libraries are compliant in practice.
Full Changelog: styled-components/styled-components@v6.1.6...v6.1.7
v6.1.6Compare Source
What's Changed
Full Changelog: styled-components/styled-components@v6.1.5...v6.1.6
v6.1.5Compare Source
What's Changed
Full Changelog: styled-components/styled-components@v6.1.4...v6.1.5
v6.1.4Compare Source
What's Changed
attrsto provide a customthemeprop to child components by @quantizor in #4242Full Changelog: styled-components/styled-components@v6.1.3...v6.1.4
v6.1.3Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.1.2...v6.1.3
v6.1.2What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.1.1...v6.1.2
v6.1.1What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.1.0...v6.1.1
v6.1.0Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.0.9...v6.1.0
v6.0.9Compare Source
fix bundling to not hardcode
window(should fix some testing use cases that were incorrectly assuming a server environment when JSDOM and similar are in use)Full Changelog: styled-components/styled-components@v6.0.8...v6.0.9
v6.0.8Compare Source
What's Changed
toStyleSheetfunction by @krudos in #4124StyleSheetManagerupdating context on every render by @keeganstreet in #4159JSX.IntrinsicElementsfor the supported element list by @RJWadley in #4149StyleFunction,Interpolationby @bcole808 in #4140CSSProperties,CSSObject,CSSPseudosandCSSKeyframesby @takurinton in #4117New Contributors
Full Changelog: styled-components/styled-components@v6.0.7...v6.0.8
v6.0.7Compare Source
What's Changed
exactOptionalPropertyTypescheck by @aspirisen in #3993New Contributors
Full Changelog: styled-components/styled-components@v6.0.6...v6.0.7
v6.0.6Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.0.5...v6.0.6
v6.0.5Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.0.4...v6.0.5
v6.0.4Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.0.3...v6.0.4
v6.0.3Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/styled-components@v6.0.2...v6.0.3
v6.0.2Compare Source
What's Changed
displayNamein production to save bytes, it's already present in the static className if you're using the babel plugin or equivalentflatMapandatwith ES5-compliant variantsNew Contributors
Full Changelog: styled-components/styled-components@v6.0.1...v6.0.2
v6.0.1Compare Source
Fixed an issue where a dev-time warning was being triggered too eagerly.
Full Changelog: styled-components/styled-components@v6.0.0...v6.0.1
v6.0.0Compare Source
Changed in this version
c0f8015)e6c4f0a)fa58875)Breaking changes in v6
Migration guide → https://styled-components.com/docs/faqs#what-do-i-need-to-do-to-migrate-to-v6
stylisv4 (if usingstylis-plugin-rtlyou'll need to upgrade to the newer version)@types/styled-componentsin the past, you'll want to remove it$asand$forwardedAsprops (useasorforwardedAs)$prefix) for stuff you don't want to be passed to child component / HTMLStyleSheetManagerdisableVendorPrefixeswithenableVendorPrefixespropwithComponentAPI (87f511a); use "as" prop insteadFull Changelog: styled-components/styled-components@v5.3.7...v6.0.0
v5.3.11Compare Source
Removed use of the
useDebugValuehook to rectify older React support.Full Changelog: styled-components/styled-components@v5.3.10...v5.3.11
v5.3.10Compare Source
What's Changed
Full Changelog: styled-components/styled-components@v5.3.9...v5.3.10
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.