Skip to content

Commit

Permalink
chore(release): 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Feb 12, 2024
1 parent 4e4c97f commit 064644a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

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.

## [5.0.0](https://github.com/webpack/webpack-dev-server/compare/v4.15.1...v5.0.0) (2024-02-12)

[Migration Guide and Changes](https://github.com/webpack/webpack-dev-server/blob/master/migration-v5.md).

### [4.15.1](https://github.com/webpack/webpack-dev-server/compare/v4.15.0...v4.15.1) (2023-06-09)


Expand Down
11 changes: 9 additions & 2 deletions migration-v5.md
Expand Up @@ -198,7 +198,7 @@ module.exports = {
- The `--web-socket-server` cli option was removed in favor of the `--web-socket-server-type` option.
- The `magicHtml` option was removed without replacement.
- The value of the `WEBPACK_SERVE` environment variable was changed from `true`(boolean) to `'true'` (string).
- [`webpack-dev-middleware`](https://github.com/webpack/webpack-dev-middleware) was update to v6.
- [`webpack-dev-middleware`](https://github.com/webpack/webpack-dev-middleware) was update to v7.
- The `constructor` arguments were changed, now the first argument is dev server options, the second is compiler.

v4:
Expand All @@ -215,7 +215,7 @@ module.exports = {
const devServer = new Server(devServerOptions, compiler);
```

- 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
- 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

v4:

Expand Down Expand Up @@ -311,6 +311,13 @@ module.exports = {
onSocketMessage["static-changed"]();
```

### Bug Fixes

- Clean `close` event listeners on socket server after generating new proxy config.
- Improve error handling for WebsocketServer.
- Set `WEBPACK_SERVE` to string value `'true'`.
- Show warning using custom hostname and port with sockjs.

## Deprecations

- 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).
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "webpack-dev-server",
"version": "4.15.1",
"version": "5.0.0",
"description": "Serves a webpack app. Updates the browser on changes.",
"bin": "bin/webpack-dev-server.js",
"main": "lib/Server.js",
Expand Down

0 comments on commit 064644a

Please sign in to comment.