module-federation / federation-dashboard

Dashboard service to command, control, and visualize module federation based systems
federation-dashboard-alpha.vercel.app
Apache License 2.0
19 stars 5 forks source link

Update emotion monorepo (major) - autoclosed #328

Closed renovate[bot] closed 3 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

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

Release Notes

emotion-js/emotion ### [`v11.0.0`](https://togithub.com/emotion-js/emotion/releases/@​emotion/styled@11.0.0) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/core@10.1.1...@emotion/core@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

Configuration

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

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

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

👻 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.

changeset-bot[bot] commented 3 years ago

⚠️ No Changeset found

Latest commit: a1e4f8fd20011f49e1cd25e4bb3c5cfe8a38f7d7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR