Update dependency @symfony/webpack-encore to v6#29
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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→^6.0.0Release Notes
symfony/webpack-encore (@symfony/webpack-encore)
v6.0.0Compare Source
This is a new major version that contains several backwards-compatibility breaks, but for the best!
BC Breaks
The
[N]placeholder (regex capture groups in filename patterns) is no longer supported.If you were using patterns like
[1]or[2]in yourEncore.copyFiles()filename option, you will need to restructure your file organization or use a different naming strategy.--httpsflag anddevServerConfig.httpsoption for webpack-dev-server, use--server-type httpsorconfigureDevServerOptions()withserver: 'https'insteadFeatures
vue-jsxfeature,version: 2option, Vue 2 peer dependencies), which was forgotten during v5.0.0v5.3.1Compare Source
What's Changed
Full Changelog: symfony/webpack-encore@v5.3.0...v5.3.1
v5.3.0Compare Source
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:#1308 Drop Vue 2 support (End-Of-Life), only Vue 3 is supported (@Kocal)
#1309 Drop ESLint integration (@Kocal)
#1313 Drop
clean-webpack-pluginin favor of webpack'soutput.cleanconfiguration. Theconfiguration settings supported by
Encore.cleanupOutputBeforeBuildhave changed (@stof)#1324 Drop
css-minimizer-webpack-plugin5 support, onlycss-minimizer-webpack-plugin7 is supported (@Kocal)#1342 Replace
assets-webpack-plugindependency by an internal plugin, to generateentrypoints.jsonfile (@Kocal)#1317 Drop support of sass-loader ^13 and ^14, add support for sass-loader ^16 (@Kocal)
The sass-loader's options have changed, the
modernoptions are now used by default.Though not recommended,
you must specify the option
api: 'legacy'if you want to keep the
legacyoptions.For example:
Since
css-loader7.0.0,styles imports became named by default.
It means you should update your code from:
to:
There is also a possibility to keep the previous behavior by configuring the
css-loader'smodulesoption:chalkbypicocolors(@Kocal)Internal
#1325 Remove no-op argument (@stof)
#1327 Fix compat with configuring the devserver server as a string (@stof)
#1328 Remove non-existent option in our package-up utility (@stof)
#1329 Read the controllers.json as string rather than Buffer (@stof)
#1330 Add some types in the internal implementation of Encore (@stof)
#1331 test(deps): replace Zombie by Puppeteer (@Kocal)
#1332 Upgrade locked dependencies (@stof)
#1334 Upgrade the version of stylus used in dev (@stof)
#1335 Fix ESLint warning (@stof)
#1339 Add PR template (@Kocal)
#1343 Add tests for CSS Modules with React and Preact (@Kocal)
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):package.jsonand Babel configuration:@babel/plugin-syntax-dynamic-import @​babel/plugin-proposal-class-properties,since they are already included in
@babel/preset-env(#1150):and remove it from your Encore configuration:
Encore.configureBabel((options) => { - config.plugins.push('@​babel/plugin-proposal-class-properties'); + })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.0[Compare Source](https://redirect.github.com/symfony/webpack-encore/compare/v0.26.0
Configuration
📅 Schedule: (UTC)
🚦 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.