Releases: symfony/webpack-encore
Fixing version typo in 4.1.0
Hey packagers!
A tiny release to fix a typo in 4.1.0 that made the package uninstallable.
Upgrading
Run:
npm install "@symfony/webpack-encore@^4.1.1" --save-dev
Or:
yarn upgrade "@symfony/webpack-encore@^4.1.1"
Changes: v4.1.0..v4.1.1
Happy Packing!
Svelte Support and Vue 2 Support Fix
Hey packagers!
This release adds first-class support for Svelte and fixes Vue 2 support, which was accidentally lost in version 4.0.
Upgrading
Run:
npm install "@symfony/webpack-encore@^4.1.0" --save-dev
Or:
yarn upgrade "@symfony/webpack-encore@^4.1.0"
Highlights
Features
- Add support for Svelte - #781 thanks to @zairigimad
Bug Fixes
Changes: v4.0.0..v4.1.0
Happy Packing!
4.0! Goodbye "peer dependency" Warnings
Hey packagers!
This new major release is actually smaller and has an easy upgrade path. What changed? We have moved certain dependencies (like webpack
itself) out of Encore and into your project. This means 2 things:
- You'll need to install a few extra packages after upgrading (see notes below)
- You can say goodbye to those "has unmet peer dependency" warnings!
This release also makes Encore compatible with Yarn Plug'n'Play and pnpm.
Upgrading
Run:
npm install "@symfony/webpack-encore@^4.0.0" webpack webpack-cli @babel/core @babel/preset-env --save-dev
Or:
yarn upgrade "@symfony/webpack-encore@^4.0.0"
yarn add webpack webpack-cli @babel/core @babel/preset-env --dev
And note the following BC breaks:
- The following dependencies must be added in your
package.json
:webpack webpack-cli @babel/core @babel/preset-env
(#1142 and #1150):
npm install webpack webpack-cli @babel/core @babel/preset-env --save-dev
# or via yarn
yarn add webpack webpack-cli @babel/core @babel/preset-env --dev
- The following dependencies must be removed from your
package.json
and Babel configuration:@babel/plugin-syntax-dynamic-import @babel/plugin-proposal-class-properties
,
since they are already included in@babel/preset-env
(#1150):
npm remove @babel/plugin-syntax-dynamic-import @babel/plugin-proposal-class-properties
# or via yarn
yarn remove @babel/plugin-syntax-dynamic-import @babel/plugin-proposal-class-properties
and remove it from your Encore configuration:
Encore.configureBabel((options) => {
- config.plugins.push('@babel/plugin-proposal-class-properties');
+
})
Changes: v3.1.0..v4.0.0
Happy Packing!
Support for Vue 2.7 and dropping vue-template-compiler
Hi Webpackers!
This is a tiny release that adds better support specifically for Vue 2.7.
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^3.1.0"
Changes: v3.0.0..v3.1.0
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
Features
Happy Packing!
3.0 - Dropping Node 12 support and upgrading dependencies
Hey packagers!
This new major release is actually quite smaller: including increasing the new Node minimum version from 12 to 14 and upgrading a few dependencies across major versions. Upgrading should be easy.
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^3.0.0"
Changes: v2.1.0..v3.0.0
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
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 -> 11postcss-loader
6 -> 7sass-loader
12 -> 13stylus
0.57 -> 0.58stylus-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
- #1133 - Increasing dependencies - @weaverryan
- #1125 - Changing to support the "server" options object for webpack-dev-server - @weaverryan
- #1122 - Allow sass-loader:^13.0.0, require node >= 14 - @jmsche
- #1118 - Use cli param server-type to define devServer https mode - @thegillou
Happy Packing!
Allowing sass-embedded
Hey packagers!
This is a small releasing that adds the possibility to use the sass-embedded
package with enableSassLoader()
, which is a faster alternative to sass
.
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^2.1.0"
Changes: v2.0.0..v2.1.0
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
Feature
Encore v2! Many Upgraded Dependencies
Hi bundlers!
This is a new major release. In Encore itself, nothing really changed. However, we upgraded many of our dependencies across new major versions. Upgrading should be easy, unless you're integrating more deeply into any of the upgraded dependencies.
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^2.0.0"
Changes: v1.8.2..v2.0.0
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
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
Version3
to4
: dropped old Node & Webpack version supportcss-loader
Version5
to6
: dropped old Node version support & CHANGELOGcss-minimizer-webpack-plugin
Version2
to3
: dropped old Node version supportloader-utils
REMOVEDmini-css-extract-plugin
Version1.5
to2.2.1
: dropped old Node & Webpack version support & CHANGELOGpretty-error
Version3.0
to4.0
: dropped old Node version supportresolve-url-loader
Version3.0
to5.0
: dropped old Node version support, requires postcss^8.0
, removerework
engine & CHANGELOGstyle-loader
Version2
to3
: dropped old Node and Webpack version support & CHANGELOGyargs-parser
Version20.2
to21
: 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 from7
to8
-
eslint-webpack-plugin
Minimum version increased from2.5
to3
-
fork-ts-checker-webpack-plugin
Minimum version increased from5
to6
CHANGELOG -
less-loader
Minimum version increased from7
to10
-
postcss-loader
Minimum version increased from4
to6
-
preact
Minimum version increased from8
to10
CHANGELOG -
sass-loader
Minimum version increased from9
to12
-
stylus
Minimum version increased from0.54
to0.56
-
stylus-loader
Minimum version increased from3
to6
CHANGELOG -
vue-loader
Minimum version increased from16
to17
CHANGELOG -
Removed
Encore.enableEslintLoader()
: useEncore.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()
, theoptions['process.env']
key format
passed to the callback has changed (see #960). If you are usingconfigureDefinePlugin()
to add more items toprocess.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');
})
Re-add --public option for dev-server
Hey Webpackers!
This release re-adds the --public
option, which can be useful for the dev-server, especially with Docker. WIP docs can be found at: symfony/symfony-docs#16622
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^1.8.2"
Changes: v1.8.1..v1.8.2
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
Bug Fix
- #1095 - bug #1095 Revert removing public option from dev-server - @louismariegaborit
Happy packing!
Fix for incorrectly requiring eslint-webpack-plugin
Hey Webpackers!
This release fixes 1.8.0, which incorrectly requires the eslint-webpack-plugin
package in all situations.
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^1.8.1"
Changes: v1.8.0..v1.8.1
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
Bug Fix
Happy packing!
eslint-webpack-plugin & AVIF image support
Hey Webpackers!
A new release with some nice features, provided by the community!
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^1.8.0"
Changes: v1.7.1..v1.8.0
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
Feature
- #985 - Move from eslint-loader to eslint-webpack-plugin - @Kocal
- #1070 - New Encore method for adding multiple entries at once - @shmolf
- #1074 - Support AVIF images - @benbankes
Happy packing!