spences10 / scottspence.me

Personal portfolio built with Gatsby
https://scottspence.me
MIT License
17 stars 2 forks source link

fix(deps): update dependency styled-components to v5 #1713

Closed renovate[bot] closed 4 years ago

renovate[bot] commented 4 years ago

This PR contains the following updates:

Package Type Update Change
styled-components (source) dependencies major 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(); ``` ### [`v5.0.1`](https://togithub.com/styled-components/styled-components/blob/master/CHANGELOG.md#v501---2020-02-04) [Compare Source](https://togithub.com/styled-components/styled-components/compare/v5.0.0...v5.0.1) - Added useTheme hook to named exports for react native - Performance enhancements - Refactored hashing function that is a bit faster in benchmarks - Fixed a bitwise math issue that was causing SSR performance degradations due to how we allocate typed arrays under the hood - Added some helpful new dev-time warnings for antipatterns - Recommending against usage of css `@import` inside `createGlobalStyle` and what to do instead - Catching and warning against dynamic creation of styled-components inside other component render paths ### [`v5.0.0`](https://togithub.com/styled-components/styled-components/blob/master/CHANGELOG.md#v500---2020-01-13) [Compare Source](https://togithub.com/styled-components/styled-components/compare/v4.4.1...v5.0.0) Read the [v5 release announcement](https://medium.com/styled-components/announcing-styled-components-v5-beast-mode-389747abd987)! - 19% smaller bundle size - 18% faster client-side mounting - 17% faster updating of dynamic styles - 45% faster server-side rendering - RTL support **NOTE: At this time we recommend not using `@import` inside of `createGlobalStyle`. We're working on better behavior for this functionality but it just doesn't really work at the moment and it's better if you just embed these imports in your HTML index file, etc.** - `StyleSheetManager` enhancements - you can now supply stylis plugins like [stylis-plugin-rtl](https://www.npmjs.com/package/stylis-plugin-rtl); `...` - `disableVendorPrefixes` removes autoprefixing if you don't need legacy browser support; `...` - `disableCSSOMInjection` forces using the slower injection mode if other integrations in your runtime environment can't parse CSSOM-injected styles; `...` - **Remove deprecated attrs "subfunction" syntax variant** ```js styled.div.attrs({ color: p => p.color }); ``` should become ```js styled.div.attrs(p => ({ color: p.color })); ``` You can still pass objects to `attrs` but individual properties shouldn't have functions that receive props anymore. - Fix attrs not taking precedence over props when overriding a given prop - (ReactNative) upgrade css-to-react-native to v3 ([changelog](https://togithub.com/styled-components/css-to-react-native/releases/tag/v3.0.0)) - Removed support for unitless line height in font shorthand - Replace `merge-anything` with `mixin-deep` to save some bytes (this is what handles merging of `defaultProps` between folded styled components); this is inlined into since the library is written in IE-incompatible syntax - Fix certain adblockers messing up styling by purposefully not emitting the substring "ad" (case-insensitive) when generating dynamic class names - Fix regressed behavior between v3 and v4 where className was not correctly aggregated between folded `.attrs` invocations

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.

vercel[bot] commented 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