webpack-dev-middleware breaking changes
Updated December 4, 2026
On this page
Latest version 8.6.3, released November 21, 2026. Source repository
Its 8.0.0 release requires Node.js 20.9.0 or later. Node.js end of life dates.
- From 7.0.0 to 8.6.3: 54 breaking changes in 7 versions.
- From 2.0.0 to 8.6.3: 128 breaking changes in 13 versions.
webpack-dev-middleware 8.6.3 breaking changes
- Behavior changed
With output.clean set, the middleware now cleans the files written to disk as well as memory, honoring clean.keep and clean.dry. Users relying on old files on disk staying in place must adjust their clean settings. github.com
webpack-dev-middleware 8.6.0 breaking changes
- Behavior changed
A Range header with more than one range now gets 206 Partial Content with a multipart/byteranges body instead of the whole file. Code that expects the full file for multi-range requests must handle the multipart response. github.com - Signature changed
client/overlay:default
Was function configureOverlay(options: {ansiColors?: Record<string, string | string[]>; overlayStyles?: Record<string, string | number>; trustedTypesPolicyName?: string; catchRuntimeError?: boolean | ((error: Error) => boolean)... npmjs.com - Signature changed
honoWrapper
Was function honoWrapper<RequestInternal extends IncomingMessage = import("node:http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse>(compiler: Compiler | MultiCompiler, options?: Options<RequestInternal... npmjs.com - Signature changed
koaWrapper
Was function koaWrapper<RequestInternal extends IncomingMessage = import("node:http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse>(compiler: Compiler | MultiCompiler, options?: Options<RequestInternal... npmjs.com - Signature changed
modifyResponseData
The data passed to modifyResponseData, and the data it returns, is now Buffer | Readable rather than Buffer. Code that assumes a Buffer must check the type or handle a stream. github.com - Signature changed
ModifyResponseData
Was type ModifyResponseData<RequestInternal extends IncomingMessage = import("node:http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse> = (req: RequestInternal, res: ResponseInternal, data: Buffer | ReadStream... npmjs.com - Signature changed
ResponseData
Was type ResponseData = {data: Buffer | ReadStream; byteLength: number;}; now type ResponseData = {data: Buffer | Readable; byteLength: number;}. npmjs.com - Signature changed
ResponseData.data
Was data: Buffer | ReadStream; now data: Buffer | Readable. npmjs.com
webpack-dev-middleware 8.5.0 breaking changes
- Signature changed
HotOptions.token
Was token?: (boolean | string) | undefined; now token?: (boolean | string | HotTokenOptions) | undefined. npmjs.com
webpack-dev-middleware 8.4.0 breaking changes
- Behavior changed
getFilenameFromUrl
A dot-dot sequence that leaves the output root and comes back into it, such as /assets../dist/file.js, is now refused rather than served. github.com - Behavior changed
hot
Enabling hot adds the client and HotModuleReplacementPlugin to the compilation; use hot.inject to control what is added. The plugin is left out when hot.client.apply is reload or nothing. github.com - Behavior changed
instance.context.options
instance.context.options is a copy of the options passed, so changing it no longer changes the middleware's options. github.com - Behavior changed
mime.types
mime.types now belongs to this middleware instead of being written into the table mime-types shares with the whole process. github.com - Signature changed
AdditionalMethods
Was type AdditionalMethods<RequestInternal extends IncomingMessage, ResponseInternal extends ServerResponse> = {getFilenameFromUrl: GetFilenameFromUrl; waitUntilValid: WaitUntilValid; invalidate: Invalidate; close: Close; context... npmjs.com - Signature changed
Context
Was type Context<RequestInternal extends IncomingMessage = import("node:http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse> = {state: boolean; stats: Stats | MultiStats | undefined; callbacks: Callback[]... npmjs.com - Signature changed
Context.options
Was options: Options<RequestInternal, ResponseInternal>; now options: NormalizedOptions<RequestInternal, ResponseInternal>. npmjs.com - Signature changed
FilledContext.options
Was options: Options<RequestInternal, ResponseInternal>; now options: NormalizedOptions<RequestInternal, ResponseInternal>. npmjs.com - Signature changed
HotInstance.publish
Was publish: (payload: | Payload | {action: string;}) => void; now publish: (payload: Payload | CustomPayload) => void. npmjs.com - Signature changed
Options
Was type Options<RequestInternal extends IncomingMessage = import("node:http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse> = {mimeTypes?: | {[key: string]: string;} | undefined; mimeTypeDefault?: (string |... npmjs.com
webpack-dev-middleware 8.3.0 breaking changes
- Behavior changed
Requests whose resolved filename falls outside outputPath now get 403 Forbidden, including paths that shared a prefix with publicPath without a trailing slash. github.com - Behavior changed
hot.statsOptions
The hash, timings and children keys of hot.statsOptions are now ignored. Code relying on them will see different hot payload contents. github.com - Behavior changed
stats
The stats option now controls the diagnostics a hot payload carries, so stats: false or stats: "errors-only" also filter what the browser client shows. Use the client's logging or overlay query options to quiet the browser alone. github.com - Signature changed
API
Was type API<RequestInternal extends IncomingMessage = import("http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse> = Middleware<RequestInternal, ResponseInternal> & AdditionalMethods<RequestInternal... npmjs.com - Signature changed
Context
Was type Context<RequestInternal extends IncomingMessage = import("http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse> = {state: boolean; stats: Stats | MultiStats | undefined; callbacks: Callback[]; options... npmjs.com - Signature changed
default
Was function wdm<RequestInternal extends IncomingMessage = import("http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse>(compiler: Compiler | MultiCompiler, options?: Options<RequestInternal, ResponseInternal> |... npmjs.com - Signature changed
FilledContext
Was type FilledContext<RequestInternal extends IncomingMessage = import("http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse> = WithoutUndefined<Context<RequestInternal, ResponseInternal>, "watching">; now type... npmjs.com - Signature changed
HapiOptions.modifyResponseData
Was modifyResponseData?: | ModifyResponseData<RequestInternal, ResponseInternal> | undefined; now modifyResponseData?: ModifyResponseData<RequestInternal, ResponseInternal> | undefined. npmjs.com - Signature changed
Headers
Was type Headers<RequestInternal extends IncomingMessage = import("http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse> = | NormalizedHeaders | ((req: RequestInternal, res: ResponseInternal, context... npmjs.com - Signature changed
honoWrapper
Was function honoWrapper<RequestInternal extends IncomingMessage = import("http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse>(compiler: Compiler | MultiCompiler, options?: Options<RequestInternal... npmjs.com
And 6 more in this version. Sign up to see every change
webpack-dev-middleware 8.2.0 breaking changes
- Signature changed
Context
Was type Context<RequestInternal extends IncomingMessage = import("http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse> = {state: boolean; stats: Stats | MultiStats | undefined; callbacks: Callback[]; options... npmjs.com - Signature changed
Options
Was type Options<RequestInternal extends IncomingMessage = import("http").IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse> = {mimeTypes?: | {[key: string]: string;} | undefined; mimeTypeDefault?: (string |... npmjs.com
Older versions
8 older versions, each with its first changes. Sign up to see every change
Show 8 older versions
webpack-dev-middleware 8.0.0 breaking changes
- Removed
Extra
Extra was removed in webpack-dev-middleware 8.0.0 npmjs.com - Behavior changed
The package now requires Node.js 20.9.0 or later. Users on older Node.js versions must upgrade. github.com
And 14 more in this version.
webpack-dev-middleware 7.0.0 breaking changes
- Removed
The minimum supported Node.js version is now 18.12.0. Upgrade Node.js before using this release. github.com
webpack-dev-middleware 6.0.0 breaking changes
- Removed
The minimum supported webpack version is now 5.0.0. Projects on webpack 4 must upgrade webpack before using this release. github.com - Removed
The minimum supported Node.js version is now 14.15.0. Projects on older Node.js versions must upgrade Node.js before using this release. github.com
And 11 more in this version.
webpack-dev-middleware 5.0.0 breaking changes
- Removed
The minimum supported Node.js version is now 12.13.0. Upgrade Node.js to 12.13.0 or later before using this release. github.com - Signature changed
Options.headers
Was headers?: Record<string, string> | HeadersHandle; now headers?: Record<string, string> | HeadersHandle | undefined. npmjs.com
And 8 more in this version.
webpack-dev-middleware 4.0.0 breaking changes
- Removed
Logger
Logger was removed in webpack-dev-middleware 4.0.0 npmjs.com - Removed
Options.filename
Options.filename was removed in webpack-dev-middleware 4.0.0 npmjs.com
And 15 more in this version.
webpack-dev-middleware 4.0.0-rc.0 breaking changes
- Removed
Minimum supported Node.js version is now 10.13.0 in the 4.0.0 pre-release line; older Node.js runs must upgrade. github.com - Removed
mimeTypes.force
The force option under mimeTypes was removed and has no replacement. github.com
And 14 more in this version.
webpack-dev-middleware 3.0.0 breaking changes
- Removed
watchOffset
The watchOffset option is gone; use time-fix-plugin instead, as the README describes. github.com - Behavior changed
middleware.webpack
Code that performs further actions after calling middleware.webpack must handle the returned Promise with .then. github.com
And 15 more in this version.
webpack-dev-middleware 2.0.0 breaking changes
- Removed
Version 2 only supports Node.js 6.x and higher, so Node 4 users must stay on version 1 or upgrade Node. github.com - Removed
Options.error
Options.error was removed in webpack-dev-middleware 2.0.0 npmjs.com
And 13 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.