Update dependency @symfony/webpack-encore to v5 #25
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:
^0.9.1->^5.0.0Release Notes
symfony/webpack-encore (@symfony/webpack-encore)
v5.2.0Compare Source
Add support for Webpack CLI ^6.0.0
Add support for babel-loader ^10.0.0
Add support for style-loader ^4.0.0
If you manually specified the option
insert, now it can only be a selector or the path to the module.Follow the style-loader migration guide to upgrade!
webpack-manifest-plugindependency, which was previously embedded in #921v5.1.0Compare Source
Features
v5.0.1Compare Source
Encore.enableIntegrityHashes()and filenames with a query-string (@Kocal)v5.0.0Compare 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-cli4 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-serverdependency optional (@Kocal)The
webpack-dev-serverpackage 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-serverdependency from Encore reduces the number of dependencies from 626 to 295 (-331!),it helps to reduce the size of the
node_modulesdirectory and the number of possible vulnerabilities.To use the
webpack-dev-serveragain, you need to install it manually:v4.7.0Compare 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-jsxplugin 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-levenshteinbyfastest-levenshtein(@Kocal)#1303 Replace
pkg-upby an inlined solution (@Kocal)v4.6.1Compare Source
v4.6.0Compare 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.0Compare Source
Features
#1235 Dropping support for Node 14 (16 is new min) and allowing
svelte4 (@weaverryan)#1185 Bump
babel-loaderfrom 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)
v4.4.0Compare Source
Features
v4.3.0Compare Source
Features
Bugs
v4.2.0Compare Source
Features
v4.1.2: 4.1.2 - fixes Vue 2 version problemCompare Source
Hey packagers!
This release fixes an incompatibility when using
@vue/compiler-sfcwith Vue 2.7. Thanks to @dmaicher in #1166 for the fix!Upgrading
Run:
Changes: v4.1.1..v4.1.1
Happy Packing!
v4.1.1: Fixing version typo in 4.1.0Compare Source
Hey packagers!
A tiny release to fix a typo in 4.1.0 that made the package uninstallable.
Upgrading
Run:
Changes: v4.1.0..v4.1.1
Happy Packing!
v4.1.0Compare Source
October 17th, 2022
Features
Bug Fixes
v4.0.0Compare Source
This major release makes Encore compatible with Yarn Plug'n'Play and pnpm.
BC Breaks
package.json:webpack webpack-cli @​babel/core @​babel/preset-env(#1142 and #1150):v3.1.0Compare Source
August 24th, 2022
vue-template-compiler- #1134 thanks to @billyctv3.0.0Compare Source
July 8th, 2022
This major release drops support for Node 12 (minimum is now Node 14) and
also bumps some dependencies up a new major version.
BC Breaks
In #1122 support for Node 12 was dropped.
In #1133, the following dependencies were bumped a major version:
css-minimizer-webpack-plugin3.4 -> 4.0 (4.0 just drops Node 12 support)less-loader10 -> 11postcss-loader6 -> 7sass-loader12 -> 13stylus0.57 -> 0.58stylus-loader6 -> 7If you're using any of these (all are optional except for
css-minimizer-webpack-pluginand are extended them with custom configuration, check the CHANGELOG of each for
any possible BC breaks).
Feature
v2.1.0Compare Source
May 5th, 2022
Feature
v2.0.0Compare Source
May 3rd, 2022
This is a new major version that contains several backwards-compatibility breaks.
BC Breaks
The following dependencies were upgraded a major version. It's unlikely
these will cause problems, unless you were further configuring this part
of Encore:
clean-webpack-pluginVersion3to4: dropped old Node & Webpack version supportcss-loaderVersion5to6: dropped old Node version support & CHANGELOGcss-minimizer-webpack-pluginVersion2to3: dropped old Node version supportloader-utilsREMOVEDmini-css-extract-pluginVersion1.5to2.2.1: dropped old Node & Webpack version support & CHANGELOGpretty-errorVersion3.0to4.0: dropped old Node version supportresolve-url-loaderVersion3.0to5.0: dropped old Node version support, requires postcss^8.0, removereworkengine & CHANGELOGstyle-loaderVersion2to3: dropped old Node and Webpack version support & CHANGELOGyargs-parserVersion20.2to21: dropped old Node version supportAdditionally, Encore changed the supported versions of the following packages,
which you may have installed to enable extra features:
eslintMinimum version increased from7to8eslint-webpack-pluginMinimum version increased from2.5to3fork-ts-checker-webpack-pluginMinimum version increased from5to6CHANGELOGless-loaderMinimum version increased from7to10postcss-loaderMinimum version increased from4to6preactMinimum version increased from8to10CHANGELOGsass-loaderMinimum version increased from9to12stylusMinimum version increased from0.54to0.56stylus-loaderMinimum version increased from3to6CHANGELOGvue-loaderMinimum version increased from16to17CHANGELOGRemoved
Encore.enableEslintLoader(): useEncore.enableEslintPlugin().If using
enableEslintPlugin()with the@babel/eslint-parserparser,you may now need to create an external Babel configuration file. To see
an example, temporarily delete your
.eslintrc.jsfile and run Encore.The error will show you a Babel configuration file you can use.
With
configureDefinePlugin(), theoptions['process.env']key formatpassed to the callback has changed (see #960). If you are using
configureDefinePlugin()to add more items to
process.env, your code will need to change:Encore.configureDefinePlugin((options) => { - options['process.env']['SOME_VAR'] = JSON.stringify('the value'); + options['process.env.SOME_VAR'] = JSON.stringify('the value'); })v1.8.2Compare Source
Mar 17th, 2022
Bug Fix
v1.8.1Compare Source
Jan 21st, 2022
Bug Fix
v1.8.0Compare Source
Jan 20th, 2022
Feature
v1.7.1Compare Source
Jan 20th, 2022
Bug Fix
v1.7.0Compare Source
Dec 2nd, 2021
Dependency changes:
ts-loader8 was dropped.typescript3 was dropped and minimum increased to 4.2.2.vuewas bumped to 3.2.14 or higher.vue-loaderwas bumped to 16.7.0 or higher.Feature
Bug Fix
v1.6.1Compare Source
Sep 3rd, 2021
Bug Fix
v1.6.0Compare Source
Aug 31st, 2021
Feature
v1.5.0Compare Source
June 18th, 2021
Feature
v1.4.0Compare Source
May 31st, 2021
Feature
Bug Fix
v1.3.0Compare Source
May 11th, 2021
Feature
@nuxt/friendly-errors-webpack-plugin - @hailwoodBug Fix
v1.2.0Compare Source
May 3rd, 2021
Feature
Bug Fix
v1.1.2Compare Source
March 1st, 2021
Bug Fix
v1.1.1Compare Source
February 19th, 2021
Bug Fix
v1.1.0Compare Source
February 12th, 2021
Feature
v1.0.6Compare Source
February 12th, 2021
Bug Fix
v1.0.5Compare Source
February 6th, 2021
Bug Fix
v1.0.4Compare Source
February 2nd, 2021
Bug Fix
v1.0.3Compare Source
January 31st, 2021
Bug Fix
v1.0.2Compare Source
January 29th, 2021
Bug Fix
v1.0.1Compare Source
January 29th, 2021
Bug Fix
v1.0.0Compare Source
January 27th, 2021
Feature
v0.33.0Compare Source
December 3rd, 2020
Feature
v0.32.1Compare Source
December 3rd, 2020
Bug Fix
v0.32.0Compare Source
December 3rd, 2020
Feature
v0.31.1Compare Source
December 3rd, 2020
Bug Fix
v0.31.0Compare Source
September 10th, 2020
Bug Fix
v0.30.2Compare Source
May 14th, 2020
Bug Fix
v0.30.1Compare Source
May 13th, 2020
Bug Fix
v0.30.0Compare Source
May 11th, 2020
Feature
Bug Fix
v0.29.1Compare Source
April 18th, 2020
Bug Fix
v0.29.0Compare Source
April 17th, 2020
Feature
Bug Fix
v0.28.3Compare Source
February 24th, 2020
Bug Fix
v0.28.2: Various bug fixes, minor featureCompare Source
Yes! New Release!
This release adds some missing documentation and removes some deprecations.
To upgrade, run
yarn upgrade!Changes: v0.28.1..v0.28.2
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
v0.28.1: Various bug fixes, minor featureCompare Source
Yes! New Release!
#669 Fixing postcss error: newer versions seem to have a "Syntax Error: name - this PR also removed 2 unused dependencies:
lodashandfs-extra.#642 Allow to configure babel env preset (thanks to @ihmels)
#639 bug #638 sass-loader should not do css minification (thanks to @wimhendrikx)
#627 Allow to overwrite pre-defined aliases using addAliases() (thanks to @Lyrkan)
To upgrade, run
yarn upgrade!Changes: v0.28.0..v0.28.1
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
v0.28.0Compare Source
Don't make
@babel/preset-envuseforceAllTransformsoptionin production - this will reduce build size in production
for environments that only need to support more modern
browsers - #612 thanks to @Lyrkan.
Added support with
enablePostCssLoader()to process filesending in
.postcssor usinglang="postcss"in Vue - #594thanks to @Lyrkan.
Allow
resolve-url-loaderto be configured viaenableSassLoader()-#603 thanks to @diegocardoso93.
Support was removed from Node 9 (a no-longer-supported version
of Node) - #585 thanks to @weaverryan
[BC Break] Removed the ability to use
[chunkhash]inconfigureFilenames(), which was already deprecated andno longer reliable - #608 thanks to @Lyrkan.
v0.27.0Compare Source
[Behavior Change] The Babel configuration
sourceTypedefault waschanged from not being specified (so, the default
modulewas used)to
unambiguous. This is to help Babel'suseBuiltInsfunctionalityproperly determine if a
requireorimportshould be automaticallyadded to your files, based on that file's style - #555 thanks to @Lyrkan.
Added JSX support to Vue! #553 thanks to @Kocal.
Cleaned up the jsdoc in
index.jsto add better docs and betterIDE auto-completion - #550 thank sto @Lyrkan.
v0.26.0Compare Source
[Behavior change] The Babel
useBuiltInsoption default value changedfrom
entrytofalse, which means that polyfills may no longer beprovided in the same way. This is due to a change in Babel and core-js.
To get the same functionality back, run
yarn add core-js --dev, then use:This comes from #545 thanks to @Lyrkan.
Added the ability to "resolve" CSS and Sass files without specifying
the file extension and by taking advantage of the
sassorstyleattribute in an npm package. For example, you can now import the main
Bootstrap SASS file from within a SASS file by saying
@import ~bootstrap.This will use the
sassattribute from the bootstrappackage.jsonfile to find which file to load. #474 thanks to @deAtog.
Added a new
Encore.enableIntegrityHashes(), which will cause a newintegritykey to be added toentrypoints.jsonwith integrity valuesthat can be included in the
scriptorlinktag for that asset - #522thanks to @Lyrkan.
Allow some parts of
configureBabel()to be used, even if there isan external
.babelrcconfiguration file - #544 thanks to @Lyrkan.v0.25.0Compare Source
[BC BREAK] Various dependency versions were updated, including
css-loaderupdated from^1.0.0to^2.1.1andresolve-url-loaderupdated from
^2.3.0to^3.0.1. The minimum Node version wasalso bumped from 6 to 8. See #540 for more details.
Added
Encore.disableCssExtraction()if you prefer your CSS tobe output via the
style-loader- #539 thank to @Lyrkan.Added
Encore.configureLoaderRule()as a way to configure theloader config that Encore normally handles - #509 thanks to @Kocal.
Babel cache is no longer used for production builds to avoid a
bug where the cache prevents browserslist from being used - #516
thanks to @Lyrkan.
v0.24.0Compare Source
Add CSS modules support in Vue.js for Sass/Less/Stylus - #511
thanks to @Lyrkan
Allow to use Dart Sass instead of Node Sass - #517 thanks to
@Lyrkan
Allow to set a custom context in copyFiles - #518 thanks to
@Lyrkan
Improve 'Install x to use y' and 'Unrecognized method' error
messages - #520 thanks to @Lyrkan
Allow to set @babel/preset-env's useBuiltIns option - #521
thanks to @Lyrkan
Allow setOutputPath to create nested directories - #525 thanks
to @Lyrkan
v0.23.0Compare Source
Add support for CSS modules in Vue - #508 thanks to @Lyrkan
Store externals in an array - #495 thanks to @deAtog
Add
Encore.isRuntimeEnvironmentConfigured()- #500 thanksto @stof.
Add the ability to configure watch options - #486 thanks
to @Kocal
Enabled cache and parallelism for terser for faster builds -
#497 thanks to @Kocal
v0.22.4: - Fixing Vue + Typescript bug & other minor thingsCompare Source
Yes! A new release - but just some minor fixes.
To upgrade:
yarn upgradeChanges: v0.22.3..v0.22.4
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
isDev()andisDevServer()- thanks to @Kocalv0.22.3: - Security releaseCompare Source
A quick security release!
To upgrade:
yarn upgradeChanges: v0.22.2..v0.22.3
Documentation: http://symfony.com/doc/current/frontend.html
See #481 - this release guarantees that you are using a version of
webpack-dev-serverthat does not contain the security issue.v0.22.2: : Important bug fixes to versioning & cachingCompare Source
This bug fix release includes several important changes that fix some versioning bugs and improve caching.
To upgrade:
yarn upgradeChanges: v0.22.1..v0.22.2
Highlights:
Fix an issue where JavaScript files might change, but their versioning hash filename would NOT change - causing problems where users would use out-of-date cached assets, instead of dowloading the new ones. This works by, internall, using the names of modules in compiled files. This bug only affected users using
enableSingleRuntimeChunk()- #462Fixed a bug where certain content changes to a JavaScript file would not cause the versioning hash to update
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 was generated by Mend Renovate. View the repository job log.