Skip to content

Update dependency @symfony/webpack-encore to v6#29

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/symfony-webpack-encore-6.x
Open

Update dependency @symfony/webpack-encore to v6#29
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/symfony-webpack-encore-6.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 14, 2026

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@symfony/webpack-encore ^0.9.1^6.0.0 age confidence

Release Notes

symfony/webpack-encore (@​symfony/webpack-encore)

v6.0.0

Compare Source

This is a new major version that contains several backwards-compatibility breaks, but for the best!

BC Breaks
  • Remove support of Node.js <22.13.0
  • Remove support of babel-loader@^9.1.3, see possible BC breaks in 10.0.0 release notes
  • Remove support of style-loader@^3.3.0, see possible BC breaks in 4.0.0 release notes
  • Remove support of less-loader@^11.0.0, see possible BC breaks in 12.0.0 release notes
  • Remove support of postcss-loader@^7.0.0, see possible BC breaks in 8.0.0 release notes
  • Remove support of stylus-loader@^7.0.0, see possible BC breaks in 8.0.0 release notes
  • Remove support of webpack-cli@^5.0.0, see possible BC breaks in 6.0.0 release notes
  • Remove unmaintained file-loader dependency
    The [N] placeholder (regex capture groups in filename patterns) is no longer supported.
    If you were using patterns like [1] or [2] in your Encore.copyFiles() filename option, you will need to restructure your file organization or use a different naming strategy.
  • Remove deprecated --https flag and devServerConfig.https option for webpack-dev-server, use --server-type https or configureDevServerOptions() with server: 'https' instead
Features

v5.3.1

Compare Source

What's Changed

  • Declare svelte and svelte-loader as optional dependencies by @​stof in #​1387

Full Changelog: symfony/webpack-encore@v5.3.0...v5.3.1

v5.3.0

Compare Source

  • Add support for Svelte 5

v5.2.0

Compare 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!

  • Re-add webpack-manifest-plugin dependency, which was previously embedded in #​921

v5.1.0

Compare Source

Features

v5.0.1

Compare Source

  • #​1349 Fix issue between Encore.enableIntegrityHashes() and filenames with a query-string (@​Kocal)

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

The dev-server options have changed between versions 4 and 5, see the official migration guide to v5.
For example:

// 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,
      }
   };
});

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:

npm install webpack-dev-server --save-dev

# or 
yarn add webpack-dev-server --dev

# or 
pnpm install webpack-dev-server --save-dev
  • #​1308 Drop Vue 2 support (End-Of-Life), only Vue 3 is supported (@​Kocal)

  • #​1309 Drop ESLint integration (@​Kocal)

  • #​1313 Drop clean-webpack-plugin in favor of webpack's output.clean configuration. The
    configuration settings supported by Encore.cleanupOutputBeforeBuild have changed (@​stof)

  • #​1324 Drop css-minimizer-webpack-plugin 5 support, only css-minimizer-webpack-plugin 7 is supported (@​Kocal)

  • #​1342 Replace assets-webpack-plugin dependency by an internal plugin, to generate entrypoints.json file (@​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 modern options are now used by default.
Though not recommended,
you must specify the option api: 'legacy'
if you want to keep the legacy options.
For example:

// With the legacy API:
Encore.enableSassLoader((options) => {
    options.api = 'legacy';
    options.includePaths = [/*...*/];
});

// With the modern API (default):
Encore.enableSassLoader((options) => {
   options.loadPaths = [/*...*/];
});
  • #​1319 Drop support of css-loader ^6, add support for css-loader ^7.1 (@​Kocal)

Since css-loader 7.0.0,
styles imports became named by default.
It means you should update your code from:

import style from "./style.css";

console.log(style.myClass);

to:

import * as style from "./style.css";

console.log(style.myClass);

There is also a possibility to keep the previous behavior by configuring the css-loader's modules option:

config.configureCssLoader(options => {
   if (options.modules) {
       options.modules.namedExport = false;
       options.modules.exportLocalsConvention = 'as-is';
   } 
});

[!IMPORTANT]
If you use CSS Modules inside .vue files,
until vuejs/vue-loader#1909 is merged and released, you will need to restore the previous
behavior by configuring Encore with the code above.

Internal

v4.7.0

Compare Source

Features

Enabling JSX support for Vue 3 is done with the Encore.enableVueLoader():

Encore.enableVueLoader(() => {}, { 
    useJsx: true,
    version: 3,
});

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:

// babel.config.js
module.exports = {
    plugins: [
        '@&#8203;vue/babel-plugin-jsx'
    ]
};
Deprecations
Internal

v4.6.1

Compare Source

v4.6.0

Compare Source

v4.5.0

Compare Source

Features

v4.4.0

Compare Source

Features
  • #​1203 upgrade css-minimizer-webpack-plugin from 4 to 5

v4.3.0

Compare Source

Features
Bugs

v4.2.0

Compare Source

Features
  • Allow webpack-cli version 5 to be used in your package.json file

v4.1.2: 4.1.2 - fixes Vue 2 version problem

Compare Source

Hey packagers!

This release fixes an incompatibility when using @vue/compiler-sfc with Vue 2.7. Thanks to @​dmaicher in #​1166 for the fix!

Upgrading

Run:

npm install "@&#8203;symfony/webpack-encore@^4.1.2" --save-dev

Or:

yarn upgrade "@&#8203;symfony/webpack-encore@^4.1.2"

Changes: v4.1.1..v4.1.1

Happy Packing!

v4.1.1: Fixing version typo in 4.1.0

Compare Source

Hey packagers!

A tiny release to fix a typo in 4.1.0 that made the package uninstallable.

Upgrading

Run:

npm install "@&#8203;symfony/webpack-encore@^4.1.1" --save-dev

Or:

yarn upgrade "@&#8203;symfony/webpack-encore@^4.1.1"

Changes: v4.1.0..v4.1.1

Happy Packing!

v4.1.0

Compare Source

October 17th, 2022

Features
Bug Fixes
  • Support for Vue 2 was accidentally dropped in 4.0.0, and was re-added - #​1157 thanks to @​Kocal.

v4.0.0

Compare Source

This major release makes Encore compatible with Yarn Plug'n'Play and pnpm.

BC Breaks
  • The following dependencies must be added in your package.json: webpack webpack-cli @&#8203;babel/core @&#8203;babel/preset-env (#​1142 and #​1150):
npm install webpack webpack-cli @&#8203;babel/core @&#8203;babel/preset-env --save-dev

# or via yarn
yarn add webpack webpack-cli @&#8203;babel/core @&#8203;babel/preset-env --dev
  • The following dependencies must be removed from your package.json and Babel configuration: @babel/plugin-syntax-dynamic-import @&#8203;babel/plugin-proposal-class-properties,
    since they are already included in @babel/preset-env (#​1150):
npm remove @&#8203;babel/plugin-syntax-dynamic-import @&#8203;babel/plugin-proposal-class-properties

# or via yarn
yarn remove @&#8203;babel/plugin-syntax-dynamic-import @&#8203;babel/plugin-proposal-class-properties

and remove it from your Encore configuration:

Encore.configureBabel((options) => {
-    config.plugins.push('@&#8203;babel/plugin-proposal-class-properties');
+
})

v3.1.0

Compare Source

August 24th, 2022

v3.0.0

Compare 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-plugin 3.4 -> 4.0 (4.0 just drops Node 12 support)
    • less-loader 10 -> 11
    • postcss-loader 6 -> 7
    • sass-loader 12 -> 13
    • stylus 0.57 -> 0.58
    • stylus-loader 6 -> 7

If you're using any of these (all are optional except for css-minimizer-webpack-plugin
and are extended them with custom configuration, check the CHANGELOG of each for
any possible BC breaks).

Feature

v2.1.0

Compare Source

May 5th, 2022

Feature

v2.0.0

Compare 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-plugin Version 3 to 4: dropped old Node & Webpack version support
  • css-loader Version 5 to 6: dropped old Node version support & CHANGELOG
  • css-minimizer-webpack-plugin Version 2 to 3: dropped old Node version support
  • loader-utils REMOVED
  • mini-css-extract-plugin Version 1.5 to 2.2.1: dropped old Node & Webpack version support & CHANGELOG
  • pretty-error Version 3.0 to 4.0: dropped old Node version support
  • resolve-url-loader Version 3.0 to 5.0: dropped old Node version support, requires postcss ^8.0, remove rework engine & CHANGELOG
  • style-loader Version 2 to 3: dropped old Node and Webpack version support & CHANGELOG
  • yargs-parser Version 20.2 to 21: dropped old Node version support

Additionally, Encore changed the supported versions of the following packages,
which you may have installed to enable extra features:

  • eslint Minimum version increased from 7 to 8

  • eslint-webpack-plugin Minimum version increased from 2.5 to 3

  • fork-ts-checker-webpack-plugin Minimum version increased from 5 to 6 CHANGELOG

  • less-loader Minimum version increased from 7 to 10

  • postcss-loader Minimum version increased from 4 to 6

  • preact Minimum version increased from 8 to 10 CHANGELOG

  • sass-loader Minimum version increased from 9 to 12

  • stylus Minimum version increased from 0.54 to 0.56

  • stylus-loader Minimum version increased from 3 to 6 CHANGELOG

  • vue-loader Minimum version increased from 16 to 17 CHANGELOG

  • Removed Encore.enableEslintLoader(): use Encore.enableEslintPlugin().

  • If using enableEslintPlugin() with the @babel/eslint-parser parser,
    you may now need to create an external Babel configuration file. To see
    an example, temporarily delete your .eslintrc.js file and run Encore.
    The error will show you a Babel configuration file you can use.

  • With configureDefinePlugin(), the options['process.env'] key format
    passed 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.2

Compare Source

Mar 17th, 2022

Bug Fix

v1.8.1

Compare Source

Jan 21st, 2022

Bug Fix

v1.8.0

Compare Source

Jan 20th, 2022

Feature

v1.7.1

Compare Source

Jan 20th, 2022

Bug Fix

v1.7.0

Compare Source

Dec 2nd, 2021

Dependency changes:

  • Official support for ts-loader 8 was dropped.
  • Official support for typescript 3 was dropped and minimum increased to 4.2.2.
  • Official support for vue was bumped to 3.2.14 or higher.
  • Official support for vue-loader was bumped to 16.7.0 or higher.
Feature
Bug Fix

v1.6.1

Compare Source

Sep 3rd, 2021

Bug Fix

v1.6.0

Compare Source

Aug 31st, 2021

Feature

v1.5.0

Compare Source

June 18th, 2021

Feature

v1.4.0

Compare Source

May 31st, 2021

Feature
Bug Fix

v1.3.0

Compare Source

May 11th, 2021

Feature
  • #​976 - Change friendly-errors-webpack-plugin to @nuxt/friendly-errors-webpack-plugin - @​hailwood
Bug Fix

v1.2.0

Compare Source

May 3rd, 2021

Feature
Bug Fix

v1.1.2

Compare Source

March 1st, 2021

Bug Fix

v1.1.1

Compare Source

February 19th, 2021

Bug Fix

v1.1.0

Compare Source

February 12th, 2021

Feature

v1.0.6

Compare Source

February 12th, 2021

Bug Fix
  • #​921 - Fixing manifest paths (by temporarily embedding webpack-manifest-plugin fix) - @​weaverryan

v1.0.5

Compare Source

February 6th, 2021

Bug Fix

v1.0.4

Compare Source

February 2nd, 2021

Bug Fix

v1.0.3

Compare Source

January 31st, 2021

Bug Fix

v1.0.2

Compare Source

January 29th, 2021

Bug Fix

v1.0.1

Compare Source

January 29th, 2021

Bug Fix

v1.0.0

Compare Source

January 27th, 2021

Feature

v0.33.0

Compare Source

December 3rd, 2020

Feature

v0.32.1

Compare Source

December 3rd, 2020

Bug Fix
  • #​863 - fix(stimulus): don't require an optional dependency if it's not used - @​Kocal

v0.32.0

Compare Source

December 3rd, 2020

Feature

v0.31.1

Compare Source

December 3rd, 2020

Bug Fix

v0.31.0

Compare Source

September 10th, 2020

Bug Fix

v0.30.2

Compare Source

May 14th, 2020

Bug Fix

v0.30.1

Compare Source

May 13th, 2020

Bug Fix

v0.30.0

Compare Source

May 11th, 2020

Feature
Bug Fix

v0.29.1

Compare Source

April 18th, 2020

Bug Fix

v0.29.0

Compare Source

April 17th, 2020

Feature
Bug Fix

v0.28.3

Compare Source

February 24th, 2020

Bug Fix

v0.28.2: Various bug fixes, minor feature

Compare Source

Yes! New Release!

This release adds some missing documentation and removes some deprecations.

  • #​671 Add Encore.configureBabelPresetEnv() to the public API (thanks to @​Lyrkan)
  • #​651 Add .babelrc error to configureBabelPresetEnv and remove 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 feature

Compare Source

Yes! New Release!

  • #​669 Fixing postcss error: newer versions seem to have a "Syntax Error: name - this PR also removed 2 unused dependencies: lodash and fs-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.0

Compare Source

  • Don't make @babel/preset-env use forceAllTransforms option
    in 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 files
    ending in .postcss or using lang="postcss" in Vue - #​594
    thanks to @​Lyrkan.

  • Allow resolve-url-loader to be configured via enableSassLoader() -
    #​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] in
    configureFilenames(), which was already deprecated and
    no longer reliable - #​608 thanks to @​Lyrkan.

v0.27.0

[Compare Source](https://redirect.github.com/symfony/webpack-encore/compare/v0.26.0

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants