Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency grunt-webpack to v5 #527

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mend-for-github-com[bot]
Copy link

@mend-for-github-com mend-for-github-com bot commented Nov 7, 2021

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
grunt-webpack ^1.0.11 -> ^5.0.0 age adoption passing confidence

Release Notes

webpack-contrib/grunt-webpack

v5.0.0

Compare Source

Bug Fixes
  • Try to load plugin from webpack 5 first (2256754)
Features
  • Allow options to be an array too (a13305d)
  • Require Node.JS version 12.13.0 as minimum (05cd9d2)
  • Support Promises as config (312a1fc)
  • webpack-dev-server: Support only version 4 of webpack-dev-server (4d4bbf0)
BREAKING CHANGES
  • Require Node.JS version 12.13.0 as minimum
  • webpack-dev-server: webpack-dev-server version 4 or newer is now required. Of course only if you use it.
  • webpack-dev-server: The config layout is now the same as if webpack-dev-server is used without grunt. This should make it easier to follow the regular webpack-dev-server documentation about configuration.

Before:

grunt.initConfig({
  webpack-dev-server: {
    myConfig: {
      port: 8080,
      host: "localhost",
      webpack: { /* webpack config here */ }
    },
  },
});

After:

grunt.initConfig({
  webpack-dev-server: {
    myConfig: {
      devServer: {
        port: 8080,
        host: "localhost",
      },
      /* webpack config here */
    },
  },
});
  • webpack-dev-server: port and static.directory are not set by default anymore. Uses the webpack-dev-server default now.
  • webpack-dev-server: the keepalive option does not exist anymore for the webpack-dev-server task. It didn't make sense at all, because if set to false the webpack-dev-server would be killed before it even finished.

v4.0.3

Compare Source

Bug Fixes
  • Allow webpack 5 in peer dependencies (ac730f1), closes #​189
  • Do not provide watch option to webpack to fix deprecation warning (5decc0d), closes #​188

v4.0.2

Compare Source

Bug Fixes
  • webpack-dev-server: Remove version check for webpack-dev-server (f1ac3ff)

v4.0.1

Compare Source

Bug Fixes
  • webpack-dev-server: Fix check for webpack-dev-server version (f262abf)

v4.0.0

Compare Source

Bug Fixes
  • deps: Upgrade dependencies (f6ca1c3)
  • Drop support for node < 6.11.5 and webpack < 4 (36aba57)
  • Ensure correct version of webpack-dev-server is installed (e40dbe9)
  • Read raw config in tasks to avoid circular dependency (570f378)
  • remove adding of HMR plugin, since addDevServerEntrypoints already does it (4b2fbf8)
  • Remove handling of templates in Plugins (e2cf0cd)
  • Update lodash (5836231)
  • Require node 10 (3b218ab)
Features
  • Add support for webpack 5 (920c6d9)
BREAKING CHANGES
  • Ensure you use node 10.13.0 or newer before upgrading to this grunt-webpack version
  • Requires webpack-dev-server 3.2.0 or newer
  • Grunt templates will not be evaluated in Plugins anymore. Use lazy config loading instead.

v3.1.3

Compare Source

Bug Fixes
  • dev-server: compatibility with webpack-dev-server 3.1.7+ (#​166) (218f46b)
  • Correctly create a function wrapper for plugins to be able to replace grunt templates (a1ee19e), closes #​163
  • Display proper error when no config was found. (6326a10), closes #​164

v3.1.2

Compare Source

v3.1.1

Compare Source

v3.1.0

Compare Source

v3.0.2

Compare Source

🐛 Bug Fixes

  • Ensure that the cache default function gets correctly executed in watch mode (#​150) (Daniel Tschinder)
  • Fix hanging of grunt when using options key (#​149) (Daniel Tschinder)

v3.0.1

Compare Source

🐛 Bug Fixes

  • Only process plugins directly related to webpack, not loader plugins (#​145) (Marek Suscak)
  • Allow webpack 3 as peer, use webpack 3 as devDep (#​144) (Suneil Nyamathi)
  • fix multi target for webpack-dev-server task (#​143) (Remi Liu)
  • fix multi target in webpack task (#​140) (Remi Liu)

v3.0.0

Compare Source

💥 Breaking changes

webpack-dev-server
  • The option inline now defaults to true
webpack
  • The option cache now defaults to true if watch is set to true
  • The option failOnError now defaults to false if watch is set to true

🚀 New Features

  • Allow callbacks to be supplied as options
webpack-dev-server
  • Added support for option public
  • Added support for option hotOnly

🐛 Bug Fixes

  • Preload HMR plugin into compiler options. (#​126) (@​joaovieira)
  • Fix plugins for every plugin configuration. (#​129) (@​joaovieira)
  • Fix progress to output the same numbers as webpack cli does
  • Copy all plugin fields to preserve shared caches.
  • Correctly load config without grunt multitask (#​133)

📝 Documentation

  • Started rewriting README to contain more information about configuration and new examples.

v2.0.1

Compare Source

🐛 Bugfix

  • Fix default options for webpack-dev-server

v2.0.0

Compare Source

Final version for webpack 2.2.0

Changes since last beta version:

🐛 Bugfix

  • Correctly handle plugins in webpack-dev-server #​116 (@​PatelHub)
  • Correctly enable cache in watch mode

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/grunt-webpack-5.x branch from 1e05b79 to db78383 Compare January 26, 2022 14:03
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/grunt-webpack-5.x branch from db78383 to 97e5fa1 Compare January 26, 2022 14:53
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