Skip to content

Releases: webpack/webpack-dev-middleware

v4.0.0

28 Oct 14:44
Compare
Choose a tag to compare

4.0.0 (2020-10-28)

⚠ BREAKING CHANGES

  • export in CommonJS format

Bug Fixes

  • compatibility with new webpack@5 API (#737) (f6054a0)
  • handle the auto value of the publicPath option (9b4c5ec)
  • support webpack@5 (#702) (9ccc327)

v4.0.0-rc.3

14 Jul 17:01
Compare
Choose a tag to compare

4.0.0-rc.3 (2020-07-14)

  • internal improvements

v4.0.0-rc.2

30 Jun 15:28
Compare
Choose a tag to compare

4.0.0-rc.2 (2020-06-30)

Bug Fixes

  • prefer mime type option over built-in (#670) (7fa2c15)

v4.0.0-rc.1

20 Feb 09:34
Compare
Choose a tag to compare

4.0.0-rc.1 (2020-02-20)

Bug Fixes

v4.0.0-rc.0

19 Feb 12:03
ae2dec9
Compare
Choose a tag to compare

4.0.0-rc.0 (2020-02-19)

Bug Fixes

  • respect output.path and output.publicPath options from the configuration
  • respect the stats option from the configuration
  • respect the watchOptions option from the configuration
  • the writeToDisk option now correctly works in multi-compiler mode
  • the outputFileSystem option now correctly works in multi-compiler mode
  • respect [hash]/[fullhash] in output.path and output.publicPath
  • handle exceptions for filesystem operations
  • the Content-Type header doesn't have charset=utf-8 value for custom MIME types and MIME types which can be non utf-8

Features

  • validate options
  • migrate on the webpack logger
  • migrate on the memfs package
  • improve performance

BREAKING CHANGES

  • minimum supported Node.js version is 10.13.0
  • the default value of the option publicPath is taken from the value of the output.publicPath option from the configuration (webpack.config.js)
  • the stats option was removed, the default value of the stats option is taken from the value of the stats option from the configuration (webpack.config.js)
  • the watchOptions was removed, the default value of the watchOptions option is taken from the value of the watchOptions option from the configuration (webpack.config.js)
  • the Content-Type header doesn't have charset=utf-8 value for custom MIME types and MIME types which can be non utf-8
  • the fs option was renamed to the outputFileSystem option
  • the lazy option was removed without replacement
  • the logger, logLevel and logTime options were removed without replacement. You can setup the level value using { infrastructureLogging: { level: 'warn' } }, please read https://webpack.js.org/configuration/other-options/#infrastructurelogging. You can use the infrastructurelog (infrastructureLog in webpack@5) hook to customize logs. The log property in the middleware context was renamed to logger
  • the mimeTypes option first requires you to specify an extension and then a content-type - { mimeTypes: { phtml: 'text/html' } }
  • the force option from the mimeTypes option was removed without replacement
  • the reporter option was removed without replacement
  • the getFilenameFromUrl method was removed from the API
  • the middleware locals now under res.locals.webpack - use res.locals.webpack.stats for access stats and res.locals.webpack.outputFileSystem to access outputFileSystem

v3.7.2

28 Sep 15:32
Compare
Choose a tag to compare

3.7.2 (2019-09-28)

Bug Fixes

v3.7.1

03 Sep 10:39
Compare
Choose a tag to compare

3.7.1 (2019-09-03)

Bug Fixes

  • directly used mkdirp instead of through Webpack (#436) (dff39a1)
  • displayStats only logged (#427) (98deaf4)
  • the writeToFile option has compatibility with webpack@5 (#459) (5c90e1e)

v3.7.0

15 May 08:07
Compare
Choose a tag to compare

3.7.0 (2019-05-15)

Features

v3.6.2

03 Apr 12:34
Compare
Choose a tag to compare

3.6.2 (2019-04-03)

Bug Fixes

  • check existence of res.getHeader and set the correct Content-Type (#385) (56dc705)

v3.6.1

06 Mar 15:58
Compare
Choose a tag to compare

3.6.1 (2019-03-06)

Bug Fixes

  • do not overwrite Content-Type if header already exists (#377) (b2a6fed)