Skip to content

Releases: webpack/webpack-dev-middleware

v8.1.1

Choose a tag to compare

@github-actions github-actions released this 01 Aug 18:35
be5fb38

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 in #2347)

v8.1.0

Choose a tag to compare

@github-actions github-actions released this 25 Jul 21:47
fa7b110

Minor Changes

  • Reuse an already active MultiCompiler watching session instead of starting a duplicate one (requires webpack >= 5.109). (by @bjohansebas in #2371)

v8.0.4

Choose a tag to compare

@github-actions github-actions released this 23 Jul 11:22
2677607

Patch Changes

  • Replace the on-finished dependency with Node.js built-in stream.finished. (by @bjohansebas in #2346)

v8.0.3

Choose a tag to compare

@github-actions github-actions released this 07 Apr 15:43
6fcaa48

Patch Changes

  • Respect req.url when modified by middleware such as connect-history-api-fallback. (by @bjohansebas in #2304)

v8.0.2

Choose a tag to compare

@github-actions github-actions released this 24 Mar 12:38

Patch Changes

v8.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Mar 17:49

Patch Changes

v8.0.0

Choose a tag to compare

@github-actions github-actions released this 20 Mar 16:15

Major Changes

  • The getFilenameFromUrl function is now asynchronous, returning a Promise that resolves to the object with the found filename (or undefined if the file was not found) or throws an error if the URL cannot be processed. Additionally, the object contains the extra property with stats (file system stats) and outputFileSystem (output file system where file was found) properties. (by @alexander-akait in #2284)

  • Minimum supported Node.js version is 20.9.0. (by @alexander-akait in #2284)

  • Minimum supported webpack version is 5.101.0. (by @alexander-akait in #2284)

Minor Changes

  • Added support for plugin usage, useful when the middleware will be used as a webpack plugin (no stats output, no extra actions). (by @alexander-akait in #2284)

  • Added the forwardError option to enable error forwarding to next middleware. (by @alexander-akait in #2284)

  • Enable cacheImmutable by default for immutable assets. (by @alexander-akait in #2284)

Patch Changes

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

7.4.5 (2025-09-24)

Bug Fixes

7.4.4 (2025-09-23)

Bug Fixes

7.4.3 (2025-09-05)

Bug Fixes

  • do not call the next middleware for 304 responses (#2155) (c26a326)
  • do not call the next middleware when request is finished or errored (#2156) (116c680)

7.4.2 (2024-08-21)

Bug Fixes

7.4.1 (2024-08-20)

Bug Fixes

v7.4.5

Choose a tag to compare

@alexander-akait alexander-akait released this 24 Sep 16:59

7.4.5 (2025-09-24)

Bug Fixes

v7.4.4

Choose a tag to compare

@alexander-akait alexander-akait released this 23 Sep 20:24

7.4.4 (2025-09-23)

Bug Fixes

v7.4.3

Choose a tag to compare

@alexander-akait alexander-akait released this 05 Sep 09:45

7.4.3 (2025-09-05)

Bug Fixes

  • do not call the next middleware for 304 responses (#2155) (c26a326)
  • do not call the next middleware when request is finished or errored (#2156) (116c680)