Skip to content

Commit 064644a

Browse files
chore(release): 5.0.0
1 parent 4e4c97f commit 064644a

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
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+
## [5.0.0](https://github.com/webpack/webpack-dev-server/compare/v4.15.1...v5.0.0) (2024-02-12)
6+
7+
[Migration Guide and Changes](https://github.com/webpack/webpack-dev-server/blob/master/migration-v5.md).
8+
59
### [4.15.1](https://github.com/webpack/webpack-dev-server/compare/v4.15.0...v4.15.1) (2023-06-09)
610

711

Diff for: migration-v5.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ module.exports = {
198198
- The `--web-socket-server` cli option was removed in favor of the `--web-socket-server-type` option.
199199
- The `magicHtml` option was removed without replacement.
200200
- The value of the `WEBPACK_SERVE` environment variable was changed from `true`(boolean) to `'true'` (string).
201-
- [`webpack-dev-middleware`](https://github.com/webpack/webpack-dev-middleware) was update to v6.
201+
- [`webpack-dev-middleware`](https://github.com/webpack/webpack-dev-middleware) was update to v7.
202202
- The `constructor` arguments were changed, now the first argument is dev server options, the second is compiler.
203203

204204
v4:
@@ -215,7 +215,7 @@ module.exports = {
215215
const devServer = new Server(devServerOptions, compiler);
216216
```
217217

218-
- The `listen` method is deprecated in favor the [async `start`](https://webpack.js.org/api/webpack-dev-server/#start) or the [`startCallback`](https://webpack.js.org/api/webpack-dev-server/#startcallbackcallback) methods
218+
- The `listen` method was removed in favor the [async `start`](https://webpack.js.org/api/webpack-dev-server/#start) or the [`startCallback`](https://webpack.js.org/api/webpack-dev-server/#startcallbackcallback) methods
219219

220220
v4:
221221

@@ -311,6 +311,13 @@ module.exports = {
311311
onSocketMessage["static-changed"]();
312312
```
313313

314+
### Bug Fixes
315+
316+
- Clean `close` event listeners on socket server after generating new proxy config.
317+
- Improve error handling for WebsocketServer.
318+
- Set `WEBPACK_SERVE` to string value `'true'`.
319+
- Show warning using custom hostname and port with sockjs.
320+
314321
## Deprecations
315322

316323
- The `bypass` option is deprecated for proxy in favor of the `router` and the `context` options. [Read more here](https://github.com/chimurai/http-proxy-middleware/tree/v2.0.6#http-proxy-middleware-options).

Diff for: package-lock.json

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

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-dev-server",
3-
"version": "4.15.1",
3+
"version": "5.0.0",
44
"description": "Serves a webpack app. Updates the browser on changes.",
55
"bin": "bin/webpack-dev-server.js",
66
"main": "lib/Server.js",

0 commit comments

Comments
 (0)