Skip to content

Commit 5300e33

Browse files
committed
fix: update description for --web-socket-server option
1 parent 35a527f commit 5300e33

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Options:
109109
--client-web-socket-url-protocol <value> Tells clients connected to devServer to use the provided protocol.
110110
--client-web-socket-url-username <value> Tells clients connected to devServer to use the provided username to authenticate.
111111
--client-web-socket-url-password <value> Tells clients connected to devServer to use the provided password to authenticate.
112-
--web-socket-server <value> Allows to set web socket server and options (by default 'ws').
112+
--web-socket-server <value> Deprecated: please use '--web-socket-server-type' option. Allows to set web socket server and options (by default 'ws').
113113
--no-web-socket-server Negative 'web-socket-server' option.
114114
--web-socket-server-type <value> Allows to set web socket server and options (by default 'ws').
115115
--compress Enables gzip compression for everything served.

bin/cli-flags.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,15 @@ module.exports = {
321321
configs: [
322322
{
323323
description:
324-
"Allows to set web socket server and options (by default 'ws').",
324+
"Deprecated: please use '--web-socket-server-type' option.",
325325
multiple: false,
326326
path: "webSocketServer",
327327
type: "enum",
328328
values: [false],
329329
},
330330
{
331331
description:
332-
"Allows to set web socket server and options (by default 'ws').",
332+
"Deprecated: please use '--web-socket-server-type' option.",
333333
multiple: false,
334334
path: "webSocketServer",
335335
type: "enum",
@@ -345,7 +345,7 @@ module.exports = {
345345
],
346346

347347
description:
348-
"Allows to set web socket server and options (by default 'ws').",
348+
"Deprecated: please use '--web-socket-server-type' option. Allows to set web socket server and options (by default 'ws').",
349349
simpleType: "string",
350350
multiple: false,
351351
},

lib/options.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,8 @@
10261026
{
10271027
"$ref": "#/definitions/WebSocketServerType"
10281028
}
1029-
]
1029+
],
1030+
"description": "Deprecated: please use '--web-socket-server-type' option."
10301031
},
10311032
"WebSocketServerFunction": {
10321033
"instanceof": "Function"

test/cli/__snapshots__/basic.test.js.snap.webpack4

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Options:
7878
--client-web-socket-url-protocol <value> Tells clients connected to devServer to use the provided protocol.
7979
--client-web-socket-url-username <value> Tells clients connected to devServer to use the provided username to authenticate.
8080
--client-web-socket-url-password <value> Tells clients connected to devServer to use the provided password to authenticate.
81-
--web-socket-server <value> Allows to set web socket server and options (by default 'ws').
81+
--web-socket-server <value> Deprecated: please use '--web-socket-server-type' option. Allows to set web socket server and options (by default 'ws').
8282
--no-web-socket-server Negative 'web-socket-server' option.
8383
--web-socket-server-type <value> Allows to set web socket server and options (by default 'ws').
8484
--compress Enables gzip compression for everything served.

test/cli/__snapshots__/basic.test.js.snap.webpack5

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Options:
147147
--static-public-path-reset Clear all items provided in 'static.publicPath' configuration. The static files will be available in the browser under this public path.
148148
--watch-files <value...> Allows to configure list of globs/directories/files to watch for file changes.
149149
--watch-files-reset Clear all items provided in 'watchFiles' configuration. Allows to configure list of globs/directories/files to watch for file changes.
150-
--web-socket-server <value> Allows to set web socket server and options (by default 'ws').
150+
--web-socket-server <value> Deprecated: please use '--web-socket-server-type' option. Allows to set web socket server and options (by default 'ws').
151151
--no-web-socket-server Negative 'web-socket-server' option.
152152
--web-socket-server-type <value> Allows to set web socket server and options (by default 'ws').
153153

0 commit comments

Comments
 (0)