Update dependency @symfony/webpack-encore to v5 #876
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.2.0
->^5.0.0
Release Notes
symfony/webpack-encore (@symfony/webpack-encore)
v5.0.0
Compare Source
This is a new major version that contains several backwards-compatibility breaks.
Features
#1344 Add options configuration callback to
Encore.enableReactPreset()
(@Kocal)#1345 Add support for integrity hashes when asset names contain a query string (@Kocal)
BC Breaks
#1321 Drop support of Node.js 19 and 21 (@Kocal)
#1307 Drop
webpack-cli
4 support, onlywebpack-cli
^5.1.4 is supported (@Kocal)#1318 Drop webpack-dev-server 4 support, only webpack-dev-server 5 is supported (@Kocal)
The dev-server options have changed between versions 4 and 5, see the official migration guide to v5.
For example:
webpack-dev-server
dependency optional (@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:v4.7.0
Compare Source
Features
#1284 Improve ESLint and Babel help messages, when enabling ESLint integration (@Kocal)
#1285 Add support for PNPM for installation commands (@Kocal)
#1286 Add support for Node.js 22 (@Kocal)
#1299 Add support for less-loader 12 (@Kocal)
#1301 Add support for postcss-loader 8 (@Kocal)
#1302 Add support for stylus-loader 8 (@Kocal)
#1295 Add JSX support for Vue 3 (@Kocal)
Enabling JSX support for Vue 3 is done with the
Encore.enableVueLoader()
:If you don't have a custom Babel configuration, then you're all set!
But if you do, you may need to adjust it
to add
@vue/babel-plugin-jsx
plugin to your Babel configuration:Deprecations
#1278 Deprecate ESLint integration (@Kocal)
#1298 Deprecate Vue 2 support (@Kocal)
Internal
#1275 Update some dev-dependencies to fix vulnerability issues (@Kocal)
#1259 Update yarn used for test_apps to latest version (@karpilin)
#1297 Upgrade GitHub Actions in CI (@Kocal)
#1304 Replace
fast-levenshtein
byfastest-levenshtein
(@Kocal)#1303 Replace
pkg-up
by an inlined solution (@Kocal)v4.6.1
: Re-add support for Node 18Compare Source
Hey packagers!
It seems I was a bit too quick to drop support for Node 18. This re-adds it.
Upgrading
Run:
Changes: symfony/webpack-encore@v4.6.0...v4.6.1
Happy Packing!
v4.6.0
Compare Source
#1254 Increased minimum Node version to 20 (@weaverryan)
#1253 Allow sass-loader 14 (@cedric-anne)
#1247 Allow only configuring a plugin (@gimler)
v4.5.0
Compare Source
#1235 Dropping support for Node 14 (16 is new min) and allowing
svelte
4 (@weaverryan)#1185 Bump
babel-loader
from 8.2.5 to 9.1.2 (@dppanteon) - theCHANGELOG for babel 9
does not list any breaking changes besides increasing the minimum Node version.
#1224 Allow fork-ts-checker-webpack-plugin ^8.0 and ^9.0 (@buffcode)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.