diff --git a/.changeset/plugin-mode-close.md b/.changeset/plugin-mode-close.md deleted file mode 100644 index 5ad413429..000000000 --- a/.changeset/plugin-mode-close.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"webpack-dev-middleware": patch ---- - -Fixed a crash when calling `close()` in plugin mode (`isPlugin = true`). Since the host (webpack-cli, webpack-dev-server, etc.) owns `compiler.watch()`, the middleware has no `watching` of its own to close, so `close()` now just calls the callback instead of throwing. diff --git a/CHANGELOG.md b/CHANGELOG.md index fa776b966..e366e672e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 8.1.1 + +### Patch Changes + +- Fixed a crash when calling `close()` in plugin mode (`isPlugin = true`). Since the host (webpack-cli, webpack-dev-server, etc.) owns `compiler.watch()`, the middleware has no `watching` of its own to close, so `close()` now just calls the callback instead of throwing. (by [@bjohansebas](https://github.com/bjohansebas) in [#2347](https://github.com/webpack/webpack-dev-middleware/pull/2347)) + ## 8.1.0 ### Minor Changes diff --git a/package.json b/package.json index 94fce55bc..03aacd3f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpack-dev-middleware", - "version": "8.1.0", + "version": "8.1.1", "description": "A development middleware for webpack", "keywords": [ "webpack",