Closed renovate[bot] closed 4 years ago
This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/spences10/scottspenceme/76899pjar ✅ Preview: https://scottspenceme-git-renovate-styled-components-5x.spences10.now.sh
This PR contains the following updates:
4.4.1
->5.1.0
Release Notes
styled-components/styled-components
### [`v5.1.0`](https://togithub.com/styled-components/styled-components/blob/master/CHANGELOG.md#v510---2020-04-07) [Compare Source](https://togithub.com/styled-components/styled-components/compare/v5.0.1...v5.1.0) ##### New Functionality - Add `shouldForwardProp` API (almost the same as emotion's, just a slightly different usage pattern); [#3006](https://togithub.com/styled-components/styled-components/pull/3006) Sometimes when composing multiple higher-order components together, it's possible to get into scenarios when multiple layers consume props by the same name. In the past we've introduced various workarounds for popular props like `"as"` but this power-user API allows for more granular customization of what props are passed down to descendant component children when using the `styled()` HOC wrapper. When combined with other APIs like `.attrs()` this becomes a very powerful constellation of abilities. Here's how you use it: ```jsx const Comp = styled('div').withConfig({ shouldForwardProp: (prop, defaultValidatorFn) => !['filterThis'].includes(prop), })` color: red; `; render(Renovate configuration
:date: Schedule: "before 8am on Monday" (UTC).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.