Urigo / WhatsApp-Clone-Client-React

https://www.tortilla.academy/Urigo/WhatsApp-Clone-Tutorial
https://tortilla.academy
614 stars 144 forks source link

Update dependency styled-components to v5 (master-step6) #1499

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.3.2 -> 5.0.1
@types/styled-components dependencies major 4.1.18 -> 5.0.1

Release Notes

styled-components/styled-components ### [`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 ### [`v4.4.1`](https://togithub.com/styled-components/styled-components/blob/master/CHANGELOG.md#v441---2019-10-30) [Compare Source](https://togithub.com/styled-components/styled-components/compare/v4.4.0...v4.4.1) - Fix `styled-components`'s `react-native` import for React Native Web, by [@​fiberjw](https://togithub.com/fiberjw) (see [#​2797](https://togithub.com/styled-components/styled-components/pull/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`](https://togithub.com/styled-components/styled-components/blob/master/CHANGELOG.md#v440---2019-09-23) [Compare Source](https://togithub.com/styled-components/styled-components/compare/v4.3.2...v4.4.0) - Fix to use `ownerDocument` instead of global `document`, by [@​yamachig](https://togithub.com/yamachig) (see [#​2721](https://togithub.com/styled-components/styled-components/pull/2721)) - Backport fix for SSR classname mismatches in development mode for some environments like next.js (see [#​2701](https://togithub.com/styled-components/styled-components/pull/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](https://togithub.com/styled-components/styled-components/pull/2760)) - Fix add check for style tag detached - sheet in the style tag is null in this case, by [@​newying61](https://togithub.com/newying61) (see [#​2707](https://togithub.com/styled-components/styled-components/pull/2707))

Renovate configuration

:date: Schedule: At any time (no schedule defined).

:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.

:recycle: Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

:ghost: Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR has been generated by WhiteSource Renovate. View repository job log here.