samisbakedham / candletokenweb-restored

website
0 stars 1 forks source link

Update emotion monorepo (major) #42

Open rewind-backups-for-github-restore[bot] opened 2 years ago

rewind-backups-for-github-restore[bot] commented 2 years ago

37 pull request by renovate[bot],

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@emotion/core ^10.0.28 -> 11.0.0 age adoption passing confidence
@emotion/styled ^10.0.27 -> 11.6.0 age adoption passing confidence

Release Notes

emotion-js/emotion (@​emotion/core) ### [`v11.0.0`](https://togithub.com/emotion-js/emotion/releases/@​emotion/core@11.0.0) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/core@10.3.1...@emotion/core@11.0.0) ##### Major Changes - [`b8476e08`](https://togithub.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#​1675](https://togithub.com/emotion-js/emotion/pull/1675) Thanks [@​mitchellhamilton](https://togithub.com/mitchellhamilton)! - Rename `@emotion/core` to `@emotion/react`. Please change any imports of `@emotion/core` to import `@emotion/react` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. ### [`v10.3.1`](https://togithub.com/emotion-js/emotion/releases/@​emotion/core@10.3.1) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/core@10.3.0...@emotion/core@10.3.1) ##### Patch Changes - [#​2576](https://togithub.com/emotion-js/emotion/pull/2576) [`33c01578`](https://togithub.com/emotion-js/emotion/commit/33c015780edc4f812d36ac7f0d228cd339873736) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Export `Keyframes` type to avoid TypeScript inserting `import("@​emotion/serialize").Keyframes` references into declaration files emitted based on a source files exporting `keyframes` result. This avoids issues with strict package managers that don't allow accessing undeclared dependencies. ### [`v10.3.0`](https://togithub.com/emotion-js/emotion/releases/@​emotion/core@10.3.0) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/core@10.1.1...@emotion/core@10.3.0) ##### Minor Changes - [#​2566](https://togithub.com/emotion-js/emotion/pull/2566) [`122e9f11`](https://togithub.com/emotion-js/emotion/commit/122e9f11bf3aec2100dd55cee00b74170abe1ec9) Thanks [@​eps1lon](https://togithub.com/eps1lon), [@​Andarist](https://togithub.com/Andarist)! - Fixed hydration mismatches if `React.useId` (an upcoming API in React 18) is used within a tree below our components. - [#​2560](https://togithub.com/emotion-js/emotion/pull/2560) [`b5a26619`](https://togithub.com/emotion-js/emotion/commit/b5a26619b158703e9bc653f6297b33350c9e7b40) Thanks [@​eps1lon](https://togithub.com/eps1lon)! - Dropped usage of a deprecated `SFC` React type in favor of `FC`. The `FC` type has been introduced in `@types/react@16.7.2` so this version of this package is now a minimum requirement for TypeScript users.
emotion-js/emotion (@​emotion/styled) ### [`v11.6.0`](https://togithub.com/emotion-js/emotion/blob/HEAD/packages/styled/CHANGELOG.md#​1160) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/styled@11.3.0...@emotion/styled@11.6.0) ##### Minor Changes - [#​2542](https://togithub.com/emotion-js/emotion/pull/2542) [`eb013d25`](https://togithub.com/emotion-js/emotion/commit/eb013d25722f4fd9af9acf699789bf6b8afac871) Thanks [@​eps1lon](https://togithub.com/eps1lon)! - Fixed hydration mismatches if `React.useId` (an upcoming API in React 18) is used within a tree below our components. ##### Patch Changes - Updated dependencies \[[`9861a18b`](https://togithub.com/emotion-js/emotion/commit/9861a18bbf4a9480fad7f21a833ddfcf814cc893)]: - [@​emotion/is-prop-valid](https://togithub.com/emotion/is-prop-valid)[@​1](https://togithub.com/1).1.1 ### [`v11.3.0`](https://togithub.com/emotion-js/emotion/blob/HEAD/packages/styled/CHANGELOG.md#​1130) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/styled@11.1.5...@emotion/styled@11.3.0) ##### Patch Changes - [`734b36bf`](https://togithub.com/emotion-js/emotion/commit/734b36bf113032a7e4ac96741f81ebd12a6244d4) [#​2199](https://togithub.com/emotion-js/emotion/pull/2199) Thanks [@​FezVrasta](https://togithub.com/FezVrasta)! - Improved Flow type inference of props for inline functions passed to the `styled` factory. - Updated dependencies \[[`36a51c27`](https://togithub.com/emotion-js/emotion/commit/36a51c273d9dd5ab95367fbcf95cd809bb625f28), [`662f0e0f`](https://togithub.com/emotion-js/emotion/commit/662f0e0f888c8e80cf6b2d68b52ff1bb84cbdde5), [`36a51c27`](https://togithub.com/emotion-js/emotion/commit/36a51c273d9dd5ab95367fbcf95cd809bb625f28), [`830dd0e6`](https://togithub.com/emotion-js/emotion/commit/830dd0e6d071c98bc0b4b0ecc99dd21a93f057b9)]: - [@​emotion/babel-plugin](https://togithub.com/emotion/babel-plugin)[@​11](https://togithub.com/11).3.0 - [@​emotion/serialize](https://togithub.com/emotion/serialize)[@​1](https://togithub.com/1).0.2 ### [`v11.1.5`](https://togithub.com/emotion-js/emotion/blob/HEAD/packages/styled/CHANGELOG.md#​1115) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/styled@11.0.0...@emotion/styled@11.1.5) ##### Patch Changes - [`d0293508`](https://togithub.com/emotion-js/emotion/commit/d0293508016dc07c5ad502b9eb0bec99ede1d37b) [#​2240](https://togithub.com/emotion-js/emotion/pull/2240) Thanks [@​wolszczak96](https://togithub.com/wolszczak96)! - `as` prop has been removed from TypeScript declarations for composite components. This prop has not actually been handled by default by `styled` for those components - to make `styled` handle it you need to provide a custom `shouldForwardProp` that doesn't forward the `as` prop. - Updated dependencies \[[`f3c2e81d`](https://togithub.com/emotion-js/emotion/commit/f3c2e81d10b63811ebbc6c5b11fa3553a2605f44)]: - [@​emotion/is-prop-valid](https://togithub.com/emotion/is-prop-valid)[@​1](https://togithub.com/1).1.0 ### [`v11.0.0`](https://togithub.com/emotion-js/emotion/blob/HEAD/packages/styled/CHANGELOG.md#​1100) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/styled@10.3.0...@emotion/styled@11.0.0) ##### Major Changes - [`f9feab1a`](https://togithub.com/emotion-js/emotion/commit/f9feab1a5d1ca88e53c3f7a063be5d5871cc93e8) [#​1575](https://togithub.com/emotion-js/emotion/pull/1575) Thanks [@​mitchellhamilton](https://togithub.com/mitchellhamilton)! - Removed support for `@emotion/styled-base` package. It has been moved to `@emotion/styled` and is available as `@emotion/styled/base`. This simplifies how the regular and base versions relate to each other and eliminates problems with stricter package managers when `@emotion/styled-base` was not installed explicitly by a user. - [`79036056`](https://togithub.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#​967](https://togithub.com/emotion-js/emotion/pull/967) Thanks [@​mitchellhamilton](https://togithub.com/mitchellhamilton)! - Remove support for deprecated `innerRef` prop - [`a72e6dc`](https://togithub.com/emotion-js/emotion/commit/a72e6dc0f326b7d3d6067698d433018ee8c4cbf1) [#​1501](https://togithub.com/emotion-js/emotion/pull/1501) Thanks [@​JakeGinnivan](https://togithub.com/JakeGinnivan)! - TypeScript types have been significantly restructured. These changes: - reduce build times when using Emotion, especially in larger projects - it's no longer necessary to manually specify generic parameters for your Emotion components in many cases - union types as props are better supported and should be inferred properly - the `css` function has been restricted to prevent passing invalid types - `styled`'s generic parameter has been changed, if you were specifying the `ComponentType` you will need to remove that generic parameter - `styled` no longer takes a second `ExtraProps` parameter - instead of that move it to after the `styled` call. So instead of writing `styled(MyComponent)({})` you should now be writing `styled(MyComponent)({})` If you encounter build issues after upgrade, try removing any manually specified generic types and let them be inferred. - [`c6431074`](https://togithub.com/emotion-js/emotion/commit/c6431074cf52a4bb64587c86ce5d42fe2d49230b) [#​1609](https://togithub.com/emotion-js/emotion/pull/1609) Thanks [@​tomsseisums](https://togithub.com/tomsseisums)! - It's now easier to provide a type for `Theme`. Instead of creating custom instances (like before) you can augment the builtin `Theme` interface like this: ```ts import '@​emotion/react' declare module '@​emotion/react' { export interface Theme { primaryColor: string secondaryColor: string } } ``` - [`105de5c8`](https://togithub.com/emotion-js/emotion/commit/105de5c8752be0983c000e1e26462dc8fcf0708d) [#​1572](https://togithub.com/emotion-js/emotion/pull/1572) Thanks [@​Andarist](https://togithub.com/Andarist)! - `[data-emotion]` attribute on SSRed styled has changed. You should never rely on it though. - [`79036056`](https://togithub.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#​967](https://togithub.com/emotion-js/emotion/pull/967) Thanks [@​mitchellhamilton](https://togithub.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools - [`9e998e37`](https://togithub.com/emotion-js/emotion/commit/9e998e3755c217027ad1be0af4c64644fe14c6bf) [#​1817](https://togithub.com/emotion-js/emotion/pull/1817) Thanks [@​Andarist](https://togithub.com/Andarist)! - The parser we use ([Stylis](https://togithub.com/thysultan/stylis.js)) got upgraded. It fixes some long-standing parsing edge cases while being smaller and faster πŸš€ It has been completely rewritten and comes with some breaking changes. The most notable ones that might affect Emotion users are: - plugins written for the former Stylis v3 are not compatible with the new version. To learn more on how to write a plugin for Stylis v4 you can check out its [README](https://togithub.com/thysultan/stylis.js#middleware) and the source code of core plugins. - vendor-prefixing was previously customizable using `prefix` option. This was always limited to turning off all of some of the prefixes as all available prefixes were on by default. The `prefix` option is gone and to customize which prefixes are applied you need to fork (copy-paste) the prefixer plugin and adjust it to your needs. While this being somewhat more problematic to setup at first we believe that the vast majority of users were not customizing this anyway. By not including the possibility to customize this through an extra option the final solution is more performant because there is no extra overhead of checking if a particular property should be prefixed or not. - the prefixer is now just a plugin which happens to be included in the default `stylisPlugins`. If you plan to use custom `stylisPlugins` and you want to have your styles prefixed automatically you must include prefixer in your custom `stylisPlugins`. You can import `prefixer` from the `stylis` module to do that. - `@import` rules are no longer special-cased. The responsibility to put them first has been moved to the author of the styles. They also can't be nested within other rules now. It's only possible to write them at the top level of global styles. - [`cf56694`](https://togithub.com/emotion-js/emotion/commit/cf56694d54d0b2bd6208f561d8ce829da4918952) [#​2088](https://togithub.com/emotion-js/emotion/pull/2088) Thanks [@​Andarist](https://togithub.com/Andarist)! - UMD filenames have been changed. ##### Minor Changes - [`4d3b60d0`](https://togithub.com/emotion-js/emotion/commit/4d3b60d0d448a61d762ee150e6cb7a2c995ccc2f) [#​1874](https://togithub.com/emotion-js/emotion/pull/1874) Thanks [@​connor-baer](https://togithub.com/connor-baer)! - Added basic TS type support for `as` prop on styled components. It's possible to pass any component to it but it has no effect on other accepted props. This means that it's not 100% type-safe so use it sparingly and with care. - [`ad77ed24`](https://togithub.com/emotion-js/emotion/commit/ad77ed24b4bfe62d6c80f0498cd7e76863e2f28e) [#​1624](https://togithub.com/emotion-js/emotion/pull/1624) Thanks [@​JakeGinnivan](https://togithub.com/JakeGinnivan)! - Added `CreateStyled` overload to handle when `shouldForwardProp` is a custom type guard for intrinsic props. As an example, if you want to override the type of the `color` prop: ```ts export const Box = styled('div', { shouldForwardProp: ( propName ): propName is Exclude => propName !== 'color' })<{ color: Array }>(props => ({ color: props.color[0] })) ; ``` - [`18c0d5f4`](https://togithub.com/emotion-js/emotion/commit/18c0d5f4fbe59545c335eab2e0a28d414db33a36) [#​1668](https://togithub.com/emotion-js/emotion/pull/1668) Thanks [@​animecyc](https://togithub.com/animecyc)! - Custom `shouldForwardProp` is being preserved now when using `.withComponent`. Also, when passing an additional `shouldForwardProp` in `.withComponent`'s options (like this: `SomeComponent.withComponent('span', { shouldForwardProp })`) it's being composed with the potentially existing `shouldForwardProp`. - [`5d692a6a`](https://togithub.com/emotion-js/emotion/commit/5d692a6a8102b3faabefb773dd0145b123668a07) [#​1956](https://togithub.com/emotion-js/emotion/pull/1956) Thanks [@​eps1lon](https://togithub.com/eps1lon)! - Upgraded [`csstype`](https://www.npmjs.com/package/csstype) dependency to its v3. This is what we use to provide TypeScript typings for object styles. The upgrade should not affect any consuming code but it's worth mentioning if any edge case scenarios arise. ##### Patch Changes - [`22935470`](https://togithub.com/emotion-js/emotion/commit/2293547000ce78d044d054d17564f6c2aa670687) [#​1588](https://togithub.com/emotion-js/emotion/pull/1588) Thanks [@​FezVrasta](https://togithub.com/FezVrasta)! - `StyledComponent` Flow type is now polymorphic, that means you can now define the component prop types to get better type safety. - [`58dc08a6`](https://togithub.com/emotion-js/emotion/commit/58dc08a6a013fb5cfa10bb85e06e53a8ff7eeb51) [#​1837](https://togithub.com/emotion-js/emotion/pull/1837) Thanks [@​arcanis](https://togithub.com/arcanis)! - Fixed TS compatibility under [PnP](https://classic.yarnpkg.com/en/docs/pnp/) environments by making `@types/react` an optional peer dependency. - Updated dependencies \[[`c672175b`](https://togithub.com/emotion-js/emotion/commit/c672175b52e86de43b3d4092a8fe34b2023ceae8), [`923ded01`](https://togithub.com/emotion-js/emotion/commit/923ded01e2399a242206d590f6646f13aba110e4), [`e3d7db87`](https://togithub.com/emotion-js/emotion/commit/e3d7db87deaac95817404760112417ac1fa1b56d), [`8a896a31`](https://togithub.com/emotion-js/emotion/commit/8a896a31434a1d2f69e1f1467c446c884c929387), [`c5b12d90`](https://togithub.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1), [`5e803106`](https://togithub.com/emotion-js/emotion/commit/5e803106d391b7c036bdf634318b80337a1d9b70), [`b8476e08`](https://togithub.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1), [`debaad9a`](https://togithub.com/emotion-js/emotion/commit/debaad9ab4bd6c80312092826d9146f3d29c0899), [`0a4a22ff`](https://togithub.com/emotion-js/emotion/commit/0a4a22ffcfaa49d09a88856ef2d51e0d53e31b6d), [`5c55fd17`](https://togithub.com/emotion-js/emotion/commit/5c55fd17dcaec84d1f5d5d13ae90dd336d7e4403), [`b0ad4f0c`](https://togithub.com/emotion-js/emotion/commit/b0ad4f0c628813a42c4637857be9a969429db6f0), [`9e998e37`](https://togithub.com/emotion-js/emotion/commit/9e998e3755c217027ad1be0af4c64644fe14c6bf), [`c65c5d88`](https://togithub.com/emotion-js/emotion/commit/c65c5d887002d76557eaefcb98091d795b13f9a9), [`5c7ec859`](https://togithub.com/emotion-js/emotion/commit/5c7ec85904633a11185066fa591dc8969f3f2ff2), [`a085003d`](https://togithub.com/emotion-js/emotion/commit/a085003d4c8ca284c116668d7217fb747802ed85), [`c7850e61`](https://togithub.com/emotion-js/emotion/commit/c7850e61211d6aa26a3388399889a6072ee2f1fe), [`b7d21373`](https://togithub.com/emotion-js/emotion/commit/b7d21373d967d0f958dd59aaaa650047e23e8e8b), [`5d692a6a`](https://togithub.com/emotion-js/emotion/commit/5d692a6a8102b3faabefb773dd0145b123668a07), [`c5b12d90`](https://togithub.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1), [`c6431074`](https://togithub.com/emotion-js/emotion/commit/c6431074cf52a4bb64587c86ce5d42fe2d49230b), [`828111cd`](https://togithub.com/emotion-js/emotion/commit/828111cd32d3fe8c984231201e518d1b6000bffd), [`9e998e37`](https://togithub.com/emotion-js/emotion/commit/9e998e3755c217027ad1be0af4c64644fe14c6bf), [`69446cb5`](https://togithub.com/emotion-js/emotion/commit/69446cb5bfb644beb877a1edb00ee46c014636d5)]: - [@​emotion/babel-plugin](https://togithub.com/emotion/babel-plugin)[@​11](https://togithub.com/11).0.0 - [@​emotion/is-prop-valid](https://togithub.com/emotion/is-prop-valid)[@​1](https://togithub.com/1).0.0 - [@​emotion/serialize](https://togithub.com/emotion/serialize)[@​1](https://togithub.com/1).0.0 - [@​emotion/utils](https://togithub.com/emotion/utils)[@​1](https://togithub.com/1).0.0 ### [`v10.3.0`](https://togithub.com/emotion-js/emotion/releases/@​emotion/styled@10.3.0) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/styled@10.0.27...@emotion/styled@10.3.0) ##### Minor Changes - [#​2566](https://togithub.com/emotion-js/emotion/pull/2566) [`122e9f11`](https://togithub.com/emotion-js/emotion/commit/122e9f11bf3aec2100dd55cee00b74170abe1ec9) Thanks [@​eps1lon](https://togithub.com/eps1lon), [@​Andarist](https://togithub.com/Andarist)! - Fixed hydration mismatches if `React.useId` (an upcoming API in React 18) is used within a tree below our components. - [#​2560](https://togithub.com/emotion-js/emotion/pull/2560) [`b5a26619`](https://togithub.com/emotion-js/emotion/commit/b5a26619b158703e9bc653f6297b33350c9e7b40) Thanks [@​eps1lon](https://togithub.com/eps1lon)! - Dropped usage of a deprecated `SFC` React type in favor of `FC`. The `FC` type has been introduced in `@types/react@16.7.2` so this version of this package is now a minimum requirement for TypeScript users. ##### Patch Changes - Updated dependencies \[[`122e9f11`](https://togithub.com/emotion-js/emotion/commit/122e9f11bf3aec2100dd55cee00b74170abe1ec9), [`b5a26619`](https://togithub.com/emotion-js/emotion/commit/b5a26619b158703e9bc653f6297b33350c9e7b40)]: - [@​emotion/styled-base](https://togithub.com/emotion/styled-base)[@​10](https://togithub.com/10).3.0

Configuration

πŸ“… Schedule: 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.

πŸ‘» 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.

rewind-backups-for-github-restore[bot] commented 2 years ago

Comment by netlify[bot]:

❌ Deploy Preview for distracted-edison-97708a failed.

πŸ”¨ Explore the source changes: c11611697ef7625b3f91231565ca48e0ab8c111d

πŸ” Inspect the deploy log: https://app.netlify.com/sites/distracted-edison-97708a/deploys/61cf9baed877d100095e5c3e