From 064644ac9f070ed48661d9392a9dc065c7cf668f Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Mon, 12 Feb 2024 16:31:58 +0300 Subject: [PATCH] chore(release): 5.0.0 --- CHANGELOG.md | 4 ++++ migration-v5.md | 11 +++++++++-- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53b740e9a1..5f6f967b8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/migration-v5.md b/migration-v5.md index f52ea467e9..5fe9d853e5 100644 --- a/migration-v5.md +++ b/migration-v5.md @@ -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: @@ -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: @@ -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). diff --git a/package-lock.json b/package-lock.json index 5981338232..a9f36c8e89 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "webpack-dev-server", - "version": "4.15.1", + "version": "5.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "webpack-dev-server", - "version": "4.15.1", + "version": "5.0.0", "license": "MIT", "dependencies": { "@types/bonjour": "^3.5.13", diff --git a/package.json b/package.json index 652661d523..0ec052f495 100644 --- a/package.json +++ b/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",