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 dependency css-loader to v6 #367

Closed ScriptedAlchemy closed 3 years ago

ScriptedAlchemy commented 3 years ago

This PR contains the following updates:

Package Type Update Change
css-loader devDependencies major 5.2.7 -> 6.2.0

Release Notes

webpack-contrib/css-loader ### [`v6.2.0`](https://togithub.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md#​620-httpsgithubcomwebpack-contribcss-loadercomparev610v620-2021-07-19) [Compare Source](https://togithub.com/webpack-contrib/css-loader/compare/v6.1.0...v6.2.0) ##### Features - allow the `exportLocalsConvention` option can be a function useful for named export ([#​1351](https://togithub.com/webpack-contrib/css-loader/issues/1351)) ([3c4b357](https://togithub.com/webpack-contrib/css-loader/commit/3c4b35718273baaf9e0480db715b596fbe5d7453)) ### [`v6.1.0`](https://togithub.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md#​610-httpsgithubcomwebpack-contribcss-loadercomparev600v610-2021-07-17) [Compare Source](https://togithub.com/webpack-contrib/css-loader/compare/v6.0.0...v6.1.0) ##### Features - add `link` in schema ([#​1345](https://togithub.com/webpack-contrib/css-loader/issues/1345)) ([7d4e493](https://togithub.com/webpack-contrib/css-loader/commit/7d4e4931390f9e9356af45ae03057d1505d73109)) ##### Bug Fixes - respect the `localIdentRegExp` option ([#​1349](https://togithub.com/webpack-contrib/css-loader/issues/1349)) ([42f150b](https://togithub.com/webpack-contrib/css-loader/commit/42f150b429afad9b0851d2e6bd75cec120885aa4)) ### [`v6.0.0`](https://togithub.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md#​600-httpsgithubcomwebpack-contribcss-loadercomparev527v600-2021-07-14) [Compare Source](https://togithub.com/webpack-contrib/css-loader/compare/v5.2.7...v6.0.0) ##### Notes - using `~` is deprecated when the `esModules` option is enabled (enabled by default) and can be removed from your code (**we recommend it**) (`url(~package/image.png)` -> `url(package/image.png)`, `@import url(~package/style.css)` -> `@import url(package/style.css)`, `composes: import from '~package/one.css';` -> `composes: import from 'package/one.css';`), but we still support it for historical reasons. Why can you remove it? The loader will first try to resolve `@import`/`url()`/etc as relative, if it cannot be resolved, the loader will try to resolve `@import`/`url()`/etc inside [`node_modules` or modules directories](https://webpack.js.org/configuration/resolve/#resolvemodules). - `file-loader` and `url-loader` are deprecated, please migrate on [`asset modules`](https://webpack.js.org/guides/asset-modules/), since v6 `css-loader` is generating `new URL(...)` syntax, it enables by default built-in [`assets modules`](https://webpack.js.org/guides/asset-modules/), i.e. `type: 'asset'` for all `url()` ##### ⚠ BREAKING CHANGES - minimum supported `Node.js` version is `12.13.0` - minimum supported `webpack` version is `5`, we recommend to update to the latest version for better performance - for `url` and `import` options `Function` type was removed in favor `Object` type with the `filter` property, i.e. before `{ url: () => true }`, now `{ url: { filter: () => true } }` and before `{ import: () => true }`, now `{ import: { filter: () => true } }` - the `modules.compileType` option was removed in favor the `modules.mode` option with `icss` value, also the `modules` option can have `icss` string value - `new URL()` syntax used for `url()`, only when the `esModules` option is enabled (enabled by default), it means you can bundle CSS for libraries - [data URI](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) are handling in `url()`, it means you can register loaders for them, [example](https://webpack.js.org/configuration/module/#rulescheme) - aliases with `false` value for `url()` now generate empty data URI (i.e. `data:0,`), only when the `esModules` option is enabled (enabled by default) - `[ext]` placeholder don't need `.` (dot) before for the `localIdentName` option, i.e. please change `.[ext]` on `[ext]` (no dot before) - `[folder]` placeholder was removed without replacement for the `localIdentName` option, please use a custom function if you need complex logic - `[emoji]` placeholder was removed without replacement for the `localIdentName` option, please use a custom function if you need complex logic - the `localIdentHashPrefix` was removed in favor the `localIdentHashSalt` option ##### Features - supported [`resolve.byDependency.css`](https://webpack.js.org/configuration/resolve/#resolvebydependency) resolve options for `@import` - supported [`resolve.byDependency.icss`](https://webpack.js.org/configuration/resolve/#resolvebydependency) resolve CSS modules and ICSS imports (i.e. `composes`/etc) - added `modules.localIdentHashFunction`, `modules.localIdentHashDigest`, `modules.localIdentHashDigestLength` options for better class hashing controlling - less dependencies ##### Bug Fixes - better performance - fixed circular `@import` ##### Notes - **we strongly recommend not to add `.css` to `resolve.extensions`, it reduces performance and in most cases it is simply not necessary, alternative you can set resolve options [by dependency](https://webpack.js.org/configuration/resolve/#resolvebydependency)** ##### [5.2.7](https://togithub.com/webpack-contrib/css-loader/compare/v5.2.6...v5.2.7) (2021-07-13) ##### Bug Fixes - fix crash when source map is unavailable with external URL in `[@import](https://togithub.com/import)` ([bb76fe4](https://togithub.com/webpack-contrib/css-loader/commit/bb76fe48a198e74cacf29ad4b1c01d485f4db11f)) ##### [5.2.6](https://togithub.com/webpack-contrib/css-loader/compare/v5.2.5...v5.2.6) (2021-05-24) ##### Bug Fixes - always write locals export when css modules/icss enabled ([#​1315](https://togithub.com/webpack-contrib/css-loader/issues/1315)) ([075d9bd](https://togithub.com/webpack-contrib/css-loader/commit/075d9bd044a78543479cbf10ccd3c386a3e434e6)) ##### [5.2.5](https://togithub.com/webpack-contrib/css-loader/compare/v5.2.4...v5.2.5) (2021-05-20) ##### Bug Fixes - compatibility with named export and es5 ([#​1314](https://togithub.com/webpack-contrib/css-loader/issues/1314)) ([0cf8cde](https://togithub.com/webpack-contrib/css-loader/commit/0cf8cdedd8667b1ba13d3b4322087943a25176f6)) ##### [5.2.4](https://togithub.com/webpack-contrib/css-loader/compare/v5.2.3...v5.2.4) (2021-04-19) ##### Bug Fixes - do not crash on 'false' aliases ([#​1292](https://togithub.com/webpack-contrib/css-loader/issues/1292)) ([e913cb1](https://togithub.com/webpack-contrib/css-loader/commit/e913cb1d73a4f5c3c4464e0446a885e9f677a005)) ##### [5.2.3](https://togithub.com/webpack-contrib/css-loader/compare/v5.2.2...v5.2.3) (2021-04-19) ##### Bug Fixes - improve performance ##### [5.2.2](https://togithub.com/webpack-contrib/css-loader/compare/v5.2.1...v5.2.2) (2021-04-16) ##### Bug Fixes - avoid escape nonASCII characters in local names ([0722733](https://togithub.com/webpack-contrib/css-loader/commit/072273308a8ab4b7efdae31440689dc81978ca1d)) ##### [5.2.1](https://togithub.com/webpack-contrib/css-loader/compare/v5.2.0...v5.2.1) (2021-04-09) ##### Bug Fixes - do not crash on unescaped svg data uri ([#​1288](https://togithub.com/webpack-contrib/css-loader/issues/1288)) ([4f289c5](https://togithub.com/webpack-contrib/css-loader/commit/4f289c5e4df6c666fdf6dd3402560ae74d4bf7ee))

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.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Renovate Bot.

changeset-bot[bot] commented 3 years ago

⚠️ No Changeset found

Latest commit: c468096c94567163faa55da1ced3322cc5236260

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.

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

vercel[bot] commented 3 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/module-federation/federation-dashboard/6oSar39oRpB4h8EmPCjty2zDBbGm
✅ Preview: https://federation-dashboard-git-renovate-css-67039c-module-federation.vercel.app

ScriptedAlchemy commented 3 years ago

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 6.x releases. However, if you upgrade to 6.x manually then Renovate will then reenable updates for minor and patch updates automatically.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.