benjaminjonard / koillection

Koillection is a self-hosted service allowing users to manage any kind of collections.
https://github.com/koillection/koillection/wiki
MIT License
686 stars 30 forks source link

Update dependency @symfony/webpack-encore to v5 #1207

Closed benjaminjonard closed 1 month ago

benjaminjonard commented 1 month ago

This PR contains the following updates:

Package Type Update Change
@symfony/webpack-encore devDependencies major 4.7.0 -> 5.0.0

Release Notes

symfony/webpack-encore (@​symfony/webpack-encore) ### [`v5.0.0`](https://redirect.github.com/symfony/webpack-encore/blob/HEAD/CHANGELOG.md#500) [Compare Source](https://redirect.github.com/symfony/webpack-encore/compare/v4.7.0...v5.0.0) This is a new major version that contains several backwards-compatibility breaks. ##### Features - [#​1344](https://redirect.github.com/symfony/webpack-encore/issues/1344) Add options configuration callback to `Encore.enableReactPreset()` ([@​Kocal](https://redirect.github.com/Kocal)) - [#​1345](https://redirect.github.com/symfony/webpack-encore/issues/1345) Add support for integrity hashes when asset names contain a query string ([@​Kocal](https://redirect.github.com/Kocal)) ##### BC Breaks - [#​1321](https://redirect.github.com/symfony/webpack-encore/issues/1321) Drop support of Node.js 19 and 21 ([@​Kocal](https://redirect.github.com/Kocal)) - [#​1307](https://redirect.github.com/symfony/webpack-encore/issues/1307) Drop `webpack-cli` 4 support, only `webpack-cli` ^5.1.4 is supported ([@​Kocal](https://redirect.github.com/Kocal)) - [#​1318](https://redirect.github.com/symfony/webpack-encore/issues/1318) Drop webpack-dev-server 4 support, only webpack-dev-server 5 is supported ([@​Kocal](https://redirect.github.com/Kocal)) The dev-server options have changed between versions 4 and 5, see [the official migration guide to v5](https://redirect.github.com/webpack/webpack-dev-server/blob/master/migration-v5.md). For example: ```js // With webpack-dev-server 4: Encore.configureDevServerOptions((options) => { options.https = { ca: "./path/to/server.pem", pfx: "./path/to/server.pfx", key: "./path/to/server.key", cert: "./path/to/server.crt", passphrase: "webpack-dev-server", requestCert: true, }; }); // With webpack-dev-server 5 (now): Encore.configureDevServerOptions((options) => { options.server = { type: 'https', options: { ca: "./path/to/server.pem", pfx: "./path/to/server.pfx", key: "./path/to/server.key", cert: "./path/to/server.crt", passphrase: "webpack-dev-server", requestCert: true, } }; }); ``` - [#​1336](https://redirect.github.com/symfony/webpack-encore/issues/1336) Make `webpack-dev-server` dependency optional ([@​Kocal](https://redirect.github.com/Kocal)) The `webpack-dev-server` package is now an optional peer dependency. It has been removed because some projects may not use it, and it was installing a bunch of unnecessary dependencies. Removing the `webpack-dev-server` dependency from Encore reduces the number of dependencies from **626** to **295** (**-331**!), it helps to reduce the size of the `node_modules` directory and the number of possible vulnerabilities. To use the `webpack-dev-server` again, you need to install it manually: ```shell npm install webpack-dev-server --save-dev ```

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 this update again.



This PR has been generated by Renovate Bot.