Skip to content

Bump webpack-dev-middleware from 8.1.0 to 8.6.3 - #698

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/webpack-dev-middleware-8.3.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/webpack-dev-middleware-8.3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Bumps webpack-dev-middleware from 8.1.0 to 8.6.3.

Release notes

Sourced from webpack-dev-middleware's releases.

v8.6.3

Patch Changes

  • Clean the files writeToDisk writes when output.clean is set. webpack wrote the build to memory and cleaned only that, so the copies on disk were never cleaned: the previous session's files stayed, and every rebuild left another main.[contenthash].js behind. The middleware now gives webpack a file system that writes to memory and, for the files writeToDisk takes, to disk, and that removes and lists files on both, so output.clean cleans the disk too, honoring clean.keep and clean.dry, in plugin mode as in standalone mode, with every webpack 5 version and with Rspack. writeToDisk: true with a file system of your own, in outputFileSystem or on the compiler, now writes to disk too: it wrote nothing there before. (by @​alexander-akait in #2497)

v8.6.2

Patch Changes

  • Generate the precompiled options check with schema-utils precompile --minify, which makes it about a third of the size, so it loads faster. (by @​alexander-akait in #2511)

v8.6.1

Patch Changes

  • Close the built-in hot transport when the compiler shuts down, so in plugin mode compiler.close() no longer leaves a WebSocket endpoint and its heartbeat running. (by @​alexander-akait in #2507)

v8.6.0

Minor Changes

  • Answer a Range header with more than one range with 206 Partial Content and a multipart/byteranges body, instead of the whole file. Each part carries its own Content-Type and Content-Range; ranges that overlap or touch are merged first, and the parts come in the order the ranges were asked for. When the output file system can stream, each range is read on its own, so asking for a few slices of a large asset reads only those; without createReadStream, or when a strong ETag has already read the file, the parts are cut from the whole file. A request for more than 200 ranges gets the whole file, as before. modifyResponseData receives that body as a Readable, so its data (and the data it returns) is typed Buffer | Readable, which still includes a ReadStream. (by @​alexander-akait in #2496)

  • The overlay sends the client's token along when it asks openEditorEndpoint to open a file, so a server can tell the overlay's request from one another page made. Only to an endpoint on the page's own server (a rooted path), never to an absolute url, and only when the client was given a token. (by @​alexander-akait in #2488)

Patch Changes

  • Read the page's own url parameters without writing a property named after each one. A parameter such as __proto__ or constructor is now looked through like any other instead of becoming a property name to write; behavior is otherwise unchanged. (by @​alexander-akait in #2494)

  • Fix initialization with rspack, whose compiler.hooks throws when reading the validate hook it doesn't implement. (by @​Cherry in #2503)

  • Expose the existing devMiddleware property in the Koa and Hono wrapper return types, preserving custom request and response types. (by @​MehdiZare in #2489)

v8.5.0

Minor Changes

  • hot.token also takes { value, required }. With required: false a token is minted (or value used) and handed to the injected client as usual, but the endpoint does not refuse a client without it, so a server with policy of its own can compare it in onConnect alongside, say, the origins it already allows. The instance's new hot.tokenRequired says which applies. (by @​alexander-akait in #2486)

v8.4.0

Minor Changes

  • The client posts build events to the page the way webpack-dev-server's does (webpackOk, webpackErrors, webpackClose and the rest), logs Disconnected! when the connection drops and clears the build's problems from the overlay until it is back. progress accepts "circular" or "linear". Reloads skip a page that is already navigating away, use the nearest ancestor with a url of its own inside an about:blank iframe, and in apply: "reload" follow a sibling compilation's build too. (by @​alexander-akait in #2425)

  • HotModuleReplacementPlugin now goes to every compilation the middleware serves, including server bundles that hot-reload through webpack/hot/poll. hot.client.transport also accepts a module exporting a client class of your own, and the new hot.ws option is passed to the ws server (compression, verifyClient, or a port or server of its own), with hot.cors and hot.token still checked. The connection the runtime holds is exported as webpack-dev-middleware/client/socket for tooling that listens alongside it. (by @​alexander-akait in #2472)

  • Grouped etag, lastModified, cacheControl and cacheImmutable into cache.*, and mimeTypes and mimeTypeDefault into mime.*; the old names warn and keep working until the next major release, and the grouped name wins when both are set. Media types now resolve through mime-db directly, and mime.types belongs to its own middleware instead of being written into the table mime-types shares with the whole process. instance.context.options is a copy of the options passed, cache.control included. (by @​alexander-akait in #2455)

  • hot.client.apply ("hmr", "hmr-only", "reload" or "nothing") says what a build does to the page, so a project without HMR still reloads on a change; a single page can choose its own mode with ?webpack-dev-middleware-apply=, and publishing { action: "reload" } reloads every page. hot.client.connect (false, or { retries, timeout }) controls connecting and reconnecting, with retries honoured on both transports. The hot, liveReload, reload, autoConnect, reconnect and timeout query parameters they replace are still read until the next major release, with a deprecation warning for this package's own three. (by @​alexander-akait in #2458)

  • Added hot.client, which sets the browser runtime's options on the middleware under the same names the entry query takes, so a configuration no longer needs a hand-written query string. url accepts a url or its parts ({ port: 8080 }) and resolves the rest in the page, pageParamPrefix renames the per-page ?webpack-dev-middleware-apply= parameter, and logging accepts { level, name } so an embedding package can label the console with its own name. (by @​alexander-akait in #2436)

  • Added hot.cors to choose which origins may reach the hot endpoint: Server-Sent Events still allow every origin until the next major release, while the new WebSocket transport allows only local origins and refuses others with 403 before the handshake. Added hot.token, a secret the injected client carries and the endpoint requires, for the case where a browser sends no Origin; it is off by default. (by @​alexander-akait in #2444)

... (truncated)

Changelog

Sourced from webpack-dev-middleware's changelog.

8.6.3

Patch Changes

  • Clean the files writeToDisk writes when output.clean is set. webpack wrote the build to memory and cleaned only that, so the copies on disk were never cleaned: the previous session's files stayed, and every rebuild left another main.[contenthash].js behind. The middleware now gives webpack a file system that writes to memory and, for the files writeToDisk takes, to disk, and that removes and lists files on both, so output.clean cleans the disk too, honoring clean.keep and clean.dry, in plugin mode as in standalone mode, with every webpack 5 version and with Rspack. writeToDisk: true with a file system of your own, in outputFileSystem or on the compiler, now writes to disk too: it wrote nothing there before. (by @​alexander-akait in #2497)

8.6.2

Patch Changes

  • Generate the precompiled options check with schema-utils precompile --minify, which makes it about a third of the size, so it loads faster. (by @​alexander-akait in #2511)

8.6.1

Patch Changes

  • Close the built-in hot transport when the compiler shuts down, so in plugin mode compiler.close() no longer leaves a WebSocket endpoint and its heartbeat running. (by @​alexander-akait in #2507)

8.6.0

Minor Changes

  • Answer a Range header with more than one range with 206 Partial Content and a multipart/byteranges body, instead of the whole file. Each part carries its own Content-Type and Content-Range; ranges that overlap or touch are merged first, and the parts come in the order the ranges were asked for. When the output file system can stream, each range is read on its own, so asking for a few slices of a large asset reads only those; without createReadStream, or when a strong ETag has already read the file, the parts are cut from the whole file. A request for more than 200 ranges gets the whole file, as before. modifyResponseData receives that body as a Readable, so its data (and the data it returns) is typed Buffer | Readable, which still includes a ReadStream. (by @​alexander-akait in #2496)

  • The overlay sends the client's token along when it asks openEditorEndpoint to open a file, so a server can tell the overlay's request from one another page made. Only to an endpoint on the page's own server (a rooted path), never to an absolute url, and only when the client was given a token. (by @​alexander-akait in #2488)

Patch Changes

  • Read the page's own url parameters without writing a property named after each one. A parameter such as __proto__ or constructor is now looked through like any other instead of becoming a property name to write; behavior is otherwise unchanged. (by @​alexander-akait in #2494)

  • Fix initialization with rspack, whose compiler.hooks throws when reading the validate hook it doesn't implement. (by @​Cherry in #2503)

  • Expose the existing devMiddleware property in the Koa and Hono wrapper return types, preserving custom request and response types. (by @​MehdiZare in #2489)

8.5.0

Minor Changes

  • hot.token also takes { value, required }. With required: false a token is minted (or value used) and handed to the injected client as usual, but the endpoint does not refuse a client without it, so a server with policy of its own can compare it in onConnect alongside, say, the origins it already allows. The instance's new hot.tokenRequired says which applies. (by @​alexander-akait in #2486)

8.4.0

Minor Changes

  • The client posts build events to the page the way webpack-dev-server's does (webpackOk, webpackErrors, webpackClose and the rest), logs Disconnected! when the connection drops and clears the build's problems from the overlay until it is back. progress accepts "circular" or "linear". Reloads skip a page that is already navigating away, use the nearest ancestor with a url of its own inside an about:blank iframe, and in apply: "reload" follow a sibling compilation's build too. (by @​alexander-akait in #2425)

  • HotModuleReplacementPlugin now goes to every compilation the middleware serves, including server bundles that hot-reload through webpack/hot/poll. hot.client.transport also accepts a module exporting a client class of your own, and the new hot.ws option is passed to the ws server (compression, verifyClient, or a port or server of its own), with hot.cors and hot.token still checked. The connection the runtime holds is exported as webpack-dev-middleware/client/socket for tooling that listens alongside it. (by @​alexander-akait in #2472)

  • Grouped etag, lastModified, cacheControl and cacheImmutable into cache.*, and mimeTypes and mimeTypeDefault into mime.*; the old names warn and keep working until the next major release, and the grouped name wins when both are set. Media types now resolve through mime-db directly, and mime.types belongs to its own middleware instead of being written into the table mime-types shares with the whole process. instance.context.options is a copy of the options passed, cache.control included. (by @​alexander-akait in #2455)

... (truncated)

Commits
  • 1243e0c chore(release): new release (#2513)
  • de67b7b fix: clean the files writeToDisk writes when output.clean is set (#2497)
  • 67cc48d chore(release): new release (#2512)
  • c198ddc refactor: generate the options check with schema-utils precompile (#2511)
  • e9aee43 chore(deps): bump the dependencies group with 8 updates (#2510)
  • cc4cd5c chore(deps): bump the dependencies group across 1 directory with 11 updates (...
  • 00d506b chore(release): new release (#2508)
  • 09e699f fix: close the hot transport when the compiler shuts down (#2507)
  • 58ab8cc chore(deps): bump the dependencies group with 2 updates (#2505)
  • 6cd3d26 chore(deps): bump the dependencies group with 6 updates (#2504)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 29, 2026
@coveralls

coveralls commented Sep 29, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 31.628%. remained the same — dependabot/npm_and_yarn/webpack-dev-middleware-8.3.0 into main

@paulsmirnov

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 8.1.0 to 8.6.3.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/main/CHANGELOG.md)
- [Commits](webpack/webpack-dev-middleware@v8.1.0...v8.6.3)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-version: 8.3.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title Bump webpack-dev-middleware from 8.1.0 to 8.3.0 Bump webpack-dev-middleware from 8.1.0 to 8.6.3 Nov 27, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/webpack-dev-middleware-8.3.0 branch from 36cc8a4 to 918b712 Compare November 27, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants