webpack-dev-server
Advanced tools
Comparing version 5.0.2 to 5.0.3
{ | ||
"name": "webpack-dev-server", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Serves a webpack app. Updates the browser on changes.", | ||
@@ -88,4 +88,4 @@ "bin": "bin/webpack-dev-server.js", | ||
"@babel/runtime": "^7.22.5", | ||
"@commitlint/cli": "^18.5.0", | ||
"@commitlint/config-conventional": "^18.5.0", | ||
"@commitlint/cli": "^19.0.3", | ||
"@commitlint/config-conventional": "^19.0.3", | ||
"@types/compression": "^1.7.2", | ||
@@ -122,3 +122,3 @@ "@types/default-gateway": "^3.0.1", | ||
"prettier": "^3.2.4", | ||
"puppeteer": "^22.0.0", | ||
"puppeteer": "^22.1.0", | ||
"readable-stream": "^4.5.2", | ||
@@ -125,0 +125,0 @@ "require-from-string": "^2.0.2", |
@@ -157,5 +157,2 @@ /// <reference types="node" /> | ||
/** | ||
* @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap | ||
*/ | ||
/** | ||
* @typedef {Object} OpenApp | ||
@@ -220,3 +217,3 @@ * @property {string} [name] | ||
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer] | ||
* @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy] | ||
* @property {ProxyConfigArray} [proxy] | ||
* @property {boolean | string | Open | Array<string | Open>} [open] | ||
@@ -328,65 +325,2 @@ * @property {boolean} [setupExitSignals] | ||
trustedTypesPolicyName: { | ||
/** | ||
* @typedef {Object} Open | ||
* @property {string | string[] | OpenApp} [app] | ||
* @property {string | string[]} [target] | ||
*/ | ||
/** | ||
* @typedef {Object} NormalizedOpen | ||
* @property {string} target | ||
* @property {import("open").Options} options | ||
*/ | ||
/** | ||
* @typedef {Object} WebSocketURL | ||
* @property {string} [hostname] | ||
* @property {string} [password] | ||
* @property {string} [pathname] | ||
* @property {number | string} [port] | ||
* @property {string} [protocol] | ||
* @property {string} [username] | ||
*/ | ||
/** | ||
* @typedef {boolean | ((error: Error) => void)} OverlayMessageOptions | ||
*/ | ||
/** | ||
* @typedef {Object} ClientConfiguration | ||
* @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging] | ||
* @property {boolean | { warnings?: OverlayMessageOptions, errors?: OverlayMessageOptions, runtimeErrors?: OverlayMessageOptions }} [overlay] | ||
* @property {boolean} [progress] | ||
* @property {boolean | number} [reconnect] | ||
* @property {"ws" | "sockjs" | string} [webSocketTransport] | ||
* @property {string | WebSocketURL} [webSocketURL] | ||
*/ | ||
/** | ||
* @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers | ||
*/ | ||
/** | ||
* @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware | ||
*/ | ||
/** | ||
* @typedef {Object} Configuration | ||
* @property {boolean | string} [ipc] | ||
* @property {Host} [host] | ||
* @property {Port} [port] | ||
* @property {boolean | "only"} [hot] | ||
* @property {boolean} [liveReload] | ||
* @property {DevMiddlewareOptions<Request, Response>} [devMiddleware] | ||
* @property {boolean} [compress] | ||
* @property {"auto" | "all" | string | string[]} [allowedHosts] | ||
* @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback] | ||
* @property {boolean | Record<string, never> | BonjourOptions} [bonjour] | ||
* @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles] | ||
* @property {boolean | string | Static | Array<string | Static>} [static] | ||
* @property {boolean | ServerOptions} [https] | ||
* @property {boolean} [http2] | ||
* @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server] | ||
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer] | ||
* @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy] | ||
* @property {boolean | string | Open | Array<string | Open>} [open] | ||
* @property {boolean} [setupExitSignals] | ||
* @property {boolean | ClientConfiguration} [client] | ||
* @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers] | ||
* @property {(devServer: Server) => void} [onListening] | ||
* @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares] | ||
*/ | ||
description: string; | ||
@@ -429,2 +363,31 @@ type: string; | ||
ClientWebSocketTransport: { | ||
/** | ||
* @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware | ||
*/ | ||
/** | ||
* @typedef {Object} Configuration | ||
* @property {boolean | string} [ipc] | ||
* @property {Host} [host] | ||
* @property {Port} [port] | ||
* @property {boolean | "only"} [hot] | ||
* @property {boolean} [liveReload] | ||
* @property {DevMiddlewareOptions<Request, Response>} [devMiddleware] | ||
* @property {boolean} [compress] | ||
* @property {"auto" | "all" | string | string[]} [allowedHosts] | ||
* @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback] | ||
* @property {boolean | Record<string, never> | BonjourOptions} [bonjour] | ||
* @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles] | ||
* @property {boolean | string | Static | Array<string | Static>} [static] | ||
* @property {boolean | ServerOptions} [https] | ||
* @property {boolean} [http2] | ||
* @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server] | ||
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer] | ||
* @property {ProxyConfigArray} [proxy] | ||
* @property {boolean | string | Open | Array<string | Open>} [open] | ||
* @property {boolean} [setupExitSignals] | ||
* @property {boolean | ClientConfiguration} [client] | ||
* @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers] | ||
* @property {(devServer: Server) => void} [onListening] | ||
* @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares] | ||
*/ | ||
anyOf: { | ||
@@ -523,2 +486,5 @@ $ref: string; | ||
type: string; | ||
/** | ||
* @type {FSWatcher[]} | ||
*/ | ||
additionalProperties: boolean; | ||
@@ -547,5 +513,2 @@ properties: { | ||
minItems: number; | ||
/** | ||
* @type {Socket[]} | ||
*/ | ||
instanceof?: undefined; | ||
@@ -650,7 +613,2 @@ } | ||
description: string; | ||
/** | ||
* @param {Port} port | ||
* @param {string} host | ||
* @returns {Promise<number | string>} | ||
*/ | ||
link: string; | ||
@@ -783,3 +741,3 @@ }; | ||
description: string; | ||
link: string; | ||
link: string /** @type {WebSocketURL} */; | ||
}; | ||
@@ -792,7 +750,8 @@ Proxy: { | ||
type: string; | ||
/** @type {WebSocketURL} */ instanceof?: undefined; | ||
instanceof?: undefined; | ||
} | ||
| { | ||
instanceof: string; | ||
/** @type {ClientConfiguration} */ type?: undefined; | ||
/** @type {{ type: WebSocketServerConfiguration["type"], options: NonNullable<WebSocketServerConfiguration["options"]> }} */ | ||
type?: undefined; | ||
} | ||
@@ -823,2 +782,3 @@ )[]; | ||
minLength: number; | ||
/** @type {string} */ | ||
cli: { | ||
@@ -1203,3 +1163,3 @@ exclude: boolean; | ||
type: string; | ||
/** @type {NormalizedStatic} */ minLength: number; | ||
minLength: number; | ||
}; | ||
@@ -1666,3 +1626,2 @@ WebSocketServer: { | ||
ProxyConfigArray, | ||
ProxyConfigMap, | ||
OpenApp, | ||
@@ -1825,5 +1784,2 @@ Open, | ||
)[]; | ||
type ProxyConfigMap = { | ||
[url: string]: string | ProxyConfigArrayItem; | ||
}; | ||
type OpenApp = { | ||
@@ -1919,3 +1875,3 @@ name?: string | undefined; | ||
webSocketServer?: string | boolean | WebSocketServerConfiguration | undefined; | ||
proxy?: ProxyConfigArrayItem | ProxyConfigMap | ProxyConfigArray | undefined; | ||
proxy?: ProxyConfigArray | undefined; | ||
open?: string | boolean | Open | (string | Open)[] | undefined; | ||
@@ -1922,0 +1878,0 @@ setupExitSignals?: boolean | undefined; |
Sorry, the diff of this file is too big to display
529704
15147