Skip to content

Commit ae2dec9

Browse files
chore(release): 4.0.0-rc.0 (#586)
1 parent eb9f31c commit ae2dec9

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

CHANGELOG.md

+36
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,42 @@
22

33
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.
44

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+
541
### [3.7.2](https://github.com/webpack/webpack-dev-middleware/compare/v3.7.1...v3.7.2) (2019-09-28)
642

743

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-dev-middleware",
3-
"version": "3.7.2",
3+
"version": "4.0.0-rc.0",
44
"description": "A development middleware for webpack",
55
"license": "MIT",
66
"repository": "webpack/webpack-dev-middleware",

0 commit comments

Comments
 (0)