Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 30, 2024

This PR contains the following updates:

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

Release Notes

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

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

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: [
        '@​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 "@​symfony/webpack-encore@^4.1.2" --save-dev

Or:

yarn upgrade "@​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 "@​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!

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 @​babel/core @​babel/preset-env (#​1142 and #​1150):
npm install webpack webpack-cli @​babel/core @​babel/preset-env --save-dev

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

  • [Behavior Change] The Babel configuration sourceType default was
    changed from not being specified (so, the default module was used)
    to unambiguous. This is to help Babel's useBuiltIns functionality
    properly determine if a require or import should be automatically
    added 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.js to add better docs and better
    IDE auto-completion - #​550 thank sto @​Lyrkan.

v0.26.0

Compare Source

  • [Behavior change] The Babel useBuiltIns option default value changed
    from entry to false, which means that polyfills may no longer be
    provided 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:

    Encore.configureBabel(() => {}, {
        useBuiltIns: 'entry', // or try "usage"
        corejs: 3
    })

    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 sass or style
    attribute 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 sass attribute from the bootstrap package.json
    file to find which file to load. #​474 thanks to @​deAtog.

  • Added a new Encore.enableIntegrityHashes(), which will cause a new
    integrity key to be added to entrypoints.json with integrity values
    that can be included in the script or link tag for that asset - #​522
    thanks to @​Lyrkan.

  • Allow some parts of configureBabel() to be used, even if there is
    an external .babelrc configuration file - #​544 thanks to @​Lyrkan.

v0.25.0

Compare Source

  • [BC BREAK] Various dependency versions were updated, including
    css-loader updated from ^1.0.0 to ^2.1.1 and resolve-url-loader
    updated from ^2.3.0 to ^3.0.1. The minimum Node version was
    also bumped from 6 to 8. See #​540 for more details.

  • Added Encore.disableCssExtraction() if you prefer your CSS to
    be output via the style-loader - #​539 thank to @​Lyrkan.

  • Added Encore.configureLoaderRule() as a way to configure the
    loader 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.0

Compare Source

v0.23.0

Compare Source

v0.22.4: - Fixing Vue + Typescript bug & other minor things

Compare Source

Yes! A new release - but just some minor fixes.

To upgrade: yarn upgrade

Changes: v0.22.3..v0.22.4

Documentation: http://symfony.com/doc/current/frontend.html

Highlights:

  • #​483 Add new methods isDev() and isDevServer() - thanks to @​Kocal
  • #​484 Allow to import .vue files when using TypeScript - thanks to @​Lyrkan
  • #​485 Fix small mistakes in shared-entry-concat-plugin.js and validator.js - thanks to @​Lyrkan

v0.22.3: - Security release

Compare Source

A quick security release!

To upgrade: yarn upgrade

Changes: 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-server that does not contain the security issue.

v0.22.2: : Important bug fixes to versioning & caching

Compare Source

This bug fix release includes several important changes that fix some versioning bugs and improve caching.

To upgrade: yarn upgrade

Changes: 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() - #​462

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


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

1 participant