Skip to content

Update dependency styled-components to v4.4.1

RenovateBot requested to merge renovate/styled-components-4.x into development

This MR contains the following updates:

Package Type Update Change
styled-components (source) devDependencies minor 4.2.1 -> 4.4.1

Release Notes

styled-components/styled-components (styled-components)

v4.4.1

Compare Source

  • Fix styled-components's react-native import for React Native Web, by @​fiberjw (see #​2797)

  • Remove dev-time warning if referencing a theme prop without an outer ThemeProvider, the check for it isn't smart enough to handle cases with "or" or ternary fallbacks and creates undesirable noise in various third party integrations

v4.4.0

Compare Source

This is the last minor release before v5, please start using the beta and give us feedback!

This is a minor release not a patch release due to this change: #​2738. Apologies if this causes some code churn in your projects, it was a long-standing bug that needed fixing.

  • Fix to use ownerDocument instead of global document, by @​yamachig (see #​2721)

  • Backport fix for SSR classname mismatches in development mode for some environments like next.js (see #​2701)

  • Fix attrs not properly taking precedence over props

  • Backport fix where classnames are composed in the wrong order if custom class names are passed in (see #​2760)

  • Fix add check for style tag detached - sheet in the style tag is null in this case, by @​newying61 (see #​2707)

v4.3.2

Compare Source

Fix usage of the "css" prop with the styled-components babel macro (relevant to CRA 2.x users), by @​jamesknelson (see #​2633)

v4.3.1

Compare Source

  • Revert #​2586; breaks rehydration in dev for certain runtimes like next.js

We'll explore reintroducing it in v5 but better safe than sorry.

v4.3.0

Compare Source

  • Make it possible to initialize SC_ATTR and SC_DISABLE_SPEEDY via REACT_APP_* .env variables for easier integration with CRA applications (see #​2501)

  • Fix components being folded inappropriately when an interim HOC is present (see #​2586)

  • Fix theme prop for styled native components, also fixes theme in defaultProps for them (see #​2576)

  • Add "forwardedAs" prop to allow deeply passing a different "as" prop value to underlying components when using styled() as a higher-order component (see #​2580)

  • Implement defaultProps folding (see #​2597)


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 MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by RenovateBot

Merge request reports