|  | 
| 2 | 2 | 
 | 
| 3 | 3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | 
| 4 | 4 | 
 | 
|  | 5 | +### [4.0.0-rc.0](https://github.com/webpack/webpack-dev-middleware/compare/v3.7.2...v4.0.0-rc.0) (2020-02-19) | 
|  | 6 | + | 
|  | 7 | +### Bug Fixes | 
|  | 8 | + | 
|  | 9 | +* respect `output.path` and `output.publicPath` options from the configuration | 
|  | 10 | +* respect the `stats` option from the configuration | 
|  | 11 | +* respect the `watchOptions` option from the configuration | 
|  | 12 | +* the `writeToDisk` option now correctly works in multi-compiler mode | 
|  | 13 | +* the `outputFileSystem` option now correctly works in multi-compiler mode | 
|  | 14 | +* respect `[hash]`/`[fullhash]` in `output.path` and `output.publicPath` | 
|  | 15 | +* handle exceptions for filesystem operations | 
|  | 16 | +* the `Content-Type` header doesn't have `charset=utf-8` value for custom MIME types and MIME types which can be non `utf-8` | 
|  | 17 | + | 
|  | 18 | +### Features | 
|  | 19 | + | 
|  | 20 | +* validate options | 
|  | 21 | +* migrate on the `webpack` logger | 
|  | 22 | +* migrate on the `memfs` package | 
|  | 23 | +* improve performance | 
|  | 24 | + | 
|  | 25 | +### BREAKING CHANGES | 
|  | 26 | + | 
|  | 27 | +* minimum supported Node.js version is `10.13.0` | 
|  | 28 | +* the default value of the option `publicPath` is taken from the value of the `output.publicPath` option from the configuration (`webpack.config.js`) | 
|  | 29 | +* 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`) | 
|  | 30 | +* 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`) | 
|  | 31 | +* the `Content-Type` header doesn't have `charset=utf-8` value for custom MIME types and MIME types which can be non `utf-8` | 
|  | 32 | +* the `fs` option was renamed to the `outputFileSystem` option | 
|  | 33 | +* the `lazy` option was removed without replacement | 
|  | 34 | +* 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` | 
|  | 35 | +* the `mimeTypes` option first requires you to specify an extension and then a content-type - `{ mimeTypes: { phtml: 'text/html' } }` | 
|  | 36 | +* the `force` option from the `mimeTypes` option was removed without replacement  | 
|  | 37 | +* the `reporter` option was removed without replacement | 
|  | 38 | +* the `getFilenameFromUrl` method was removed from the API | 
|  | 39 | +* the middleware `locals` now under `res.locals.webpack` - use `res.locals.webpack.stats` for access `stats` and `res.locals.webpack.outputFileSystem` to access `outputFileSystem` | 
|  | 40 | + | 
| 5 | 41 | ### [3.7.2](https://github.com/webpack/webpack-dev-middleware/compare/v3.7.1...v3.7.2) (2019-09-28) | 
| 6 | 42 | 
 | 
| 7 | 43 | 
 | 
|  | 
0 commit comments