chips-blockchain / pangea-poker

This is the reference GUI for Pangea Poker, blackchain based decentralised game.
https://chips.cash/
25 stars 16 forks source link

Update emotion monorepo to v11 (major) #462

Open renovate[bot] opened 3 years ago

renovate[bot] commented 3 years ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@emotion/babel-preset-css-prop (source) 10.2.1 -> 11.12.0 age adoption passing confidence
@emotion/core (source) 10.1.1 -> 11.0.0 age adoption passing confidence
@emotion/styled (source) ^10.0.27 -> ^11.0.0 age adoption passing confidence
babel-plugin-emotion (source) 10.2.2 -> 11.0.0 age adoption passing confidence
emotion (source) ^10.0.27 -> ^11.0.0 age adoption passing confidence

Release Notes

emotion-js/emotion (@​emotion/babel-preset-css-prop) ### [`v11.12.0`](https://togithub.com/emotion-js/emotion/compare/@emotion/babel-preset-css-prop@11.11.0...d57cfcb6daf48fc5458f91b4db2e072fbc2863e4) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/babel-preset-css-prop@11.11.0...@emotion/babel-preset-css-prop@11.12.0) ### [`v11.11.0`](https://togithub.com/emotion-js/emotion/releases/tag/%40emotion/eslint-plugin%4011.11.0) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/babel-preset-css-prop@11.10.0...@emotion/babel-preset-css-prop@11.11.0) ##### Patch Changes - [#​3029](https://togithub.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://togithub.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@​Andarist](https://togithub.com/Andarist)! - Fixed importing in Node ESM ### [`v11.10.0`](https://togithub.com/emotion-js/emotion/releases/tag/%40emotion/babel-plugin%4011.10.0) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/babel-preset-css-prop@11.2.0...@emotion/babel-preset-css-prop@11.10.0) ##### Minor Changes - [#​2819](https://togithub.com/emotion-js/emotion/pull/2819) [`bbad8c79`](https://togithub.com/emotion-js/emotion/commit/bbad8c79937f8dfd5d93bf485c1e9ec44124d228) Thanks [@​nicksrandall](https://togithub.com/nicksrandall)! - `exports` field has been added to the `package.json` manifest. It limits what files can be imported from a package but we've tried our best to allow importing all the files that were considered to be a part of the public API. ##### Patch Changes - Updated dependencies \[[`bbad8c79`](https://togithub.com/emotion-js/emotion/commit/bbad8c79937f8dfd5d93bf485c1e9ec44124d228)]: - [@​emotion/hash](https://togithub.com/emotion/hash)[@​0](https://togithub.com/0).9.0 - [@​emotion/memoize](https://togithub.com/emotion/memoize)[@​0](https://togithub.com/0).8.0 - [@​emotion/serialize](https://togithub.com/emotion/serialize)[@​1](https://togithub.com/1).1.0 ### [`v11.2.0`](https://togithub.com/emotion-js/emotion/releases/tag/%40emotion/babel-plugin%4011.2.0) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/babel-preset-css-prop@11.0.0...@emotion/babel-preset-css-prop@11.2.0) ##### Patch Changes - [`c9b57f36`](https://togithub.com/emotion-js/emotion/commit/c9b57f36e99f8cfe86c971ddb29c7a5d70644bc1) [#​2157](https://togithub.com/emotion-js/emotion/pull/2157) Thanks [@​Andarist](https://togithub.com/Andarist)! - Fixed an issue with `styled` transformer not respecting `autoLabel: 'dev-only'` setting. ### [`v11.0.0`](https://togithub.com/emotion-js/emotion/releases/tag/%40emotion/styled%4011.0.0) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/babel-preset-css-prop@10.2.1...@emotion/babel-preset-css-prop@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
emotion-js/emotion (@​emotion/core) ### [`v11.0.0`](https://togithub.com/emotion-js/emotion/releases/tag/%40emotion/core%4011.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/tag/%40emotion/core%4010.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/tag/%40emotion/core%4010.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.

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

šŸ”• Ignore: Close this PR and you won't be reminded about these updates again.



This PR was generated by Mend Renovate. View the repository job log.