webpack-dev-server 4.7.3 → 4.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/options.json CHANGED
@@ -37,7 +37,10 @@
37
37
  }
38
38
  ],
39
39
  "description": "Allows to broadcasts dev server via ZeroConf networking on start.",
40
- "link": " https://webpack.js.org/configuration/dev-server/#devserverbonjour"
40
+ "link": " https://webpack.js.org/configuration/dev-server/#devserverbonjour",
41
+ "cli": {
42
+ "negatedDescription": "Disallows to broadcasts dev server via ZeroConf networking on start."
43
+ }
41
44
  },
42
45
  "Client": {
43
46
  "description": "Allows to specify options for client script in the browser or disable client script.",
@@ -82,7 +85,10 @@
82
85
  {
83
86
  "description": "Enables a full-screen overlay in the browser when there are compiler errors or warnings.",
84
87
  "link": "https://webpack.js.org/configuration/dev-server/#overlay",
85
- "type": "boolean"
88
+ "type": "boolean",
89
+ "cli": {
90
+ "negatedDescription": "Disables a full-screen overlay in the browser when there are compiler errors or warnings."
91
+ }
86
92
  },
87
93
  {
88
94
  "type": "object",
@@ -103,7 +109,10 @@
103
109
  "ClientProgress": {
104
110
  "description": "Prints compilation progress in percentage in the browser.",
105
111
  "link": "https://webpack.js.org/configuration/dev-server/#progress",
106
- "type": "boolean"
112
+ "type": "boolean",
113
+ "cli": {
114
+ "negatedDescription": "Does not print compilation progress in percentage in the browser."
115
+ }
107
116
  },
108
117
  "ClientReconnect": {
109
118
  "description": "Tells dev-server the number of times it should try to reconnect the client.",
@@ -116,7 +125,10 @@
116
125
  "type": "number",
117
126
  "minimum": 0
118
127
  }
119
- ]
128
+ ],
129
+ "cli": {
130
+ "negatedDescription": "Tells dev-server to not to try to connect the client."
131
+ }
120
132
  },
121
133
  "ClientWebSocketTransport": {
122
134
  "anyOf": [
@@ -197,7 +209,10 @@
197
209
  "Compress": {
198
210
  "type": "boolean",
199
211
  "description": "Enables gzip compression for everything served.",
200
- "link": "https://webpack.js.org/configuration/dev-server/#devservercompress"
212
+ "link": "https://webpack.js.org/configuration/dev-server/#devservercompress",
213
+ "cli": {
214
+ "negatedDescription": "Disables gzip compression for everything served."
215
+ }
201
216
  },
202
217
  "DevMiddleware": {
203
218
  "description": "Provide options to 'webpack-dev-middleware' which handles webpack assets.",
@@ -208,12 +223,18 @@
208
223
  "HTTP2": {
209
224
  "type": "boolean",
210
225
  "description": "Allows to serve over HTTP/2 using SPDY. Deprecated, use the `server` option.",
211
- "link": "https://webpack.js.org/configuration/dev-server/#devserverhttp2"
226
+ "link": "https://webpack.js.org/configuration/dev-server/#devserverhttp2",
227
+ "cli": {
228
+ "negatedDescription": "Does not serve over HTTP/2 using SPDY."
229
+ }
212
230
  },
213
231
  "HTTPS": {
214
232
  "anyOf": [
215
233
  {
216
- "type": "boolean"
234
+ "type": "boolean",
235
+ "cli": {
236
+ "negatedDescription": "Disallows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP)."
237
+ }
217
238
  },
218
239
  {
219
240
  "type": "object",
@@ -225,7 +246,10 @@
225
246
  },
226
247
  "requestCert": {
227
248
  "type": "boolean",
228
- "description": "Request for an SSL certificate. Deprecated, use the `server.options.requestCert` option."
249
+ "description": "Request for an SSL certificate. Deprecated, use the `server.options.requestCert` option.",
250
+ "cli": {
251
+ "negatedDescription": "Does not request for an SSL certificate."
252
+ }
229
253
  },
230
254
  "ca": {
231
255
  "anyOf": [
@@ -458,7 +482,10 @@
458
482
  }
459
483
  ],
460
484
  "description": "Enables Hot Module Replacement.",
461
- "link": "https://webpack.js.org/configuration/dev-server/#devserverhot"
485
+ "link": "https://webpack.js.org/configuration/dev-server/#devserverhot",
486
+ "cli": {
487
+ "negatedDescription": "Disables Hot Module Replacement."
488
+ }
462
489
  },
463
490
  "IPC": {
464
491
  "anyOf": [
@@ -477,11 +504,17 @@
477
504
  "LiveReload": {
478
505
  "type": "boolean",
479
506
  "description": "Enables reload/refresh the page(s) when file changes are detected (enabled by default).",
507
+ "cli": {
508
+ "negatedDescription": "Disables reload/refresh the page(s) when file changes are detected (enabled by default)."
509
+ },
480
510
  "link": "https://webpack.js.org/configuration/dev-server/#devserverlivereload"
481
511
  },
482
512
  "MagicHTML": {
483
513
  "type": "boolean",
484
514
  "description": "Tells dev-server whether to enable magic HTML routes (routes corresponding to your webpack output, for example '/main' for 'main.js').",
515
+ "cli": {
516
+ "negatedDescription": "Disables magic HTML routes (routes corresponding to your webpack output, for example '/main' for 'main.js')."
517
+ },
485
518
  "link": "https://webpack.js.org/configuration/dev-server/#devservermagichtml"
486
519
  },
487
520
  "OnAfterSetupMiddleware": {
@@ -528,7 +561,10 @@
528
561
  "link": "https://webpack.js.org/configuration/dev-server/#devserveropen"
529
562
  },
530
563
  "OpenBoolean": {
531
- "type": "boolean"
564
+ "type": "boolean",
565
+ "cli": {
566
+ "negatedDescription": "Does not open the default browser."
567
+ }
532
568
  },
533
569
  "OpenObject": {
534
570
  "type": "object",
@@ -581,7 +617,10 @@
581
617
  {
582
618
  "type": "string",
583
619
  "minLength": 1,
584
- "description": "Open specified browser. Deprecated: please use '--open-app-name'."
620
+ "description": "Open specified browser.",
621
+ "cli": {
622
+ "description": "Open specified browser. Deprecated: please use '--open-app-name'."
623
+ }
585
624
  }
586
625
  ],
587
626
  "description": "Open specified browser."
@@ -931,6 +970,9 @@
931
970
  }
932
971
  ],
933
972
  "description": "Tells dev server to use serveIndex middleware when enabled.",
973
+ "cli": {
974
+ "negatedDescription": "Does not tell dev server to use serveIndex middleware."
975
+ },
934
976
  "link": "https://webpack.js.org/configuration/dev-server/#serveindex"
935
977
  },
936
978
  "watch": {
@@ -945,6 +987,9 @@
945
987
  }
946
988
  ],
947
989
  "description": "Watches for files in static content directory.",
990
+ "cli": {
991
+ "negatedDescription": "Does not watch for files in static content directory."
992
+ },
948
993
  "link": "https://webpack.js.org/configuration/dev-server/#watch"
949
994
  }
950
995
  }
@@ -1043,7 +1088,9 @@
1043
1088
  "$ref": "#/definitions/WebSocketServerType"
1044
1089
  }
1045
1090
  ],
1046
- "description": "Deprecated: please use '--web-socket-server-type' option."
1091
+ "cli": {
1092
+ "description": "Deprecated: please use '--web-socket-server-type' option."
1093
+ }
1047
1094
  },
1048
1095
  "WebSocketServerFunction": {
1049
1096
  "instanceof": "Function"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack-dev-server",
3
- "version": "4.7.3",
3
+ "version": "4.7.4",
4
4
  "description": "Serves a webpack app. Updates the browser on changes.",
5
5
  "bin": "bin/webpack-dev-server.js",
6
6
  "main": "lib/Server.js",
@@ -37,12 +37,13 @@
37
37
  "dependencies": {
38
38
  "@types/bonjour": "^3.5.9",
39
39
  "@types/connect-history-api-fallback": "^1.3.5",
40
+ "@types/express": "^4.17.13",
40
41
  "@types/serve-index": "^1.9.1",
41
42
  "@types/sockjs": "^0.3.33",
42
43
  "@types/ws": "^8.2.2",
43
44
  "ansi-html-community": "^0.0.8",
44
45
  "bonjour": "^3.5.0",
45
- "chokidar": "^3.5.2",
46
+ "chokidar": "^3.5.3",
46
47
  "colorette": "^2.0.10",
47
48
  "compression": "^1.7.4",
48
49
  "connect-history-api-fallback": "^1.6.0",
@@ -62,18 +63,18 @@
62
63
  "sockjs": "^0.3.21",
63
64
  "spdy": "^4.0.2",
64
65
  "strip-ansi": "^7.0.0",
65
- "webpack-dev-middleware": "^5.3.0",
66
- "ws": "^8.1.0"
66
+ "webpack-dev-middleware": "^5.3.1",
67
+ "ws": "^8.4.2"
67
68
  },
68
69
  "devDependencies": {
69
70
  "@babel/cli": "^7.14.5",
70
- "@babel/core": "^7.14.6",
71
+ "@babel/core": "^7.16.10",
71
72
  "@babel/eslint-parser": "^7.14.7",
72
73
  "@babel/plugin-transform-object-assign": "^7.14.5",
73
74
  "@babel/plugin-transform-runtime": "^7.14.5",
74
- "@babel/preset-env": "^7.14.5",
75
+ "@babel/preset-env": "^7.16.11",
75
76
  "@babel/runtime": "^7.14.5",
76
- "@commitlint/cli": "^16.0.1",
77
+ "@commitlint/cli": "^16.1.0",
77
78
  "@commitlint/config-conventional": "^16.0.0",
78
79
  "@types/compression": "^1.7.2",
79
80
  "@types/default-gateway": "^3.0.1",
@@ -82,9 +83,9 @@
82
83
  "babel-jest": "^27.4.4",
83
84
  "babel-loader": "^8.2.2",
84
85
  "body-parser": "^1.19.1",
85
- "core-js": "^3.12.1",
86
+ "core-js": "^3.21.0",
86
87
  "css-loader": "^5.2.4",
87
- "eslint": "^8.0.1",
88
+ "eslint": "^8.8.0",
88
89
  "eslint-config-prettier": "^8.3.0",
89
90
  "eslint-config-webpack": "^1.2.5",
90
91
  "eslint-plugin-import": "^2.23.2",
@@ -97,12 +98,12 @@
97
98
  "klona": "^2.0.4",
98
99
  "less": "^4.1.1",
99
100
  "less-loader": "^7.3.0",
100
- "lint-staged": "^12.0.2",
101
+ "lint-staged": "^12.3.3",
101
102
  "marked": "^3.0.0",
102
103
  "memfs": "^3.2.2",
103
104
  "npm-run-all": "^4.1.5",
104
105
  "prettier": "^2.3.1",
105
- "puppeteer": "^13.0.0",
106
+ "puppeteer": "^13.1.3",
106
107
  "require-from-string": "^2.0.2",
107
108
  "rimraf": "^3.0.2",
108
109
  "sockjs-client": "^1.5.1",
@@ -113,7 +114,7 @@
113
114
  "tcp-port-used": "^1.0.2",
114
115
  "typescript": "^4.2.4",
115
116
  "url-loader": "^4.1.1",
116
- "webpack": "^5.64.0",
117
+ "webpack": "^5.68.0",
117
118
  "webpack-cli": "^4.7.2",
118
119
  "webpack-merge": "^5.8.0"
119
120
  },
@@ -35,10 +35,10 @@ declare const _exports: {
35
35
  type: string;
36
36
  multiple: boolean;
37
37
  description: string;
38
+ negatedDescription: string;
38
39
  path: string;
39
40
  }[];
40
41
  description: string;
41
- negatedDescription: string;
42
42
  simpleType: string;
43
43
  multiple: boolean;
44
44
  };
@@ -71,10 +71,10 @@ declare const _exports: {
71
71
  type: string;
72
72
  multiple: boolean;
73
73
  description: string;
74
+ negatedDescription: string;
74
75
  path: string;
75
76
  }[];
76
77
  description: string;
77
- negatedDescription: string;
78
78
  simpleType: string;
79
79
  multiple: boolean;
80
80
  };
@@ -105,10 +105,10 @@ declare const _exports: {
105
105
  type: string;
106
106
  multiple: boolean;
107
107
  description: string;
108
+ negatedDescription: string;
108
109
  path: string;
109
110
  }[];
110
111
  description: string;
111
- negatedDescription: string;
112
112
  simpleType: string;
113
113
  multiple: boolean;
114
114
  };
@@ -117,10 +117,10 @@ declare const _exports: {
117
117
  type: string;
118
118
  multiple: boolean;
119
119
  description: string;
120
+ negatedDescription: string;
120
121
  path: string;
121
122
  }[];
122
123
  description: string;
123
- negatedDescription: string;
124
124
  simpleType: string;
125
125
  multiple: boolean;
126
126
  };
@@ -235,10 +235,10 @@ declare const _exports: {
235
235
  type: string;
236
236
  multiple: boolean;
237
237
  description: string;
238
+ negatedDescription: string;
238
239
  path: string;
239
240
  }[];
240
241
  description: string;
241
- negatedDescription: string;
242
242
  simpleType: string;
243
243
  multiple: boolean;
244
244
  };
@@ -279,6 +279,7 @@ declare const _exports: {
279
279
  type: string;
280
280
  multiple: boolean;
281
281
  description: string;
282
+ negatedDescription: string;
282
283
  path: string;
283
284
  }
284
285
  | {
@@ -286,11 +287,11 @@ declare const _exports: {
286
287
  values: string[];
287
288
  multiple: boolean;
288
289
  description: string;
290
+ negatedDescription: string;
289
291
  path: string;
290
292
  }
291
293
  )[];
292
294
  description: string;
293
- negatedDescription: string;
294
295
  simpleType: string;
295
296
  multiple: boolean;
296
297
  };
@@ -299,10 +300,10 @@ declare const _exports: {
299
300
  type: string;
300
301
  multiple: boolean;
301
302
  description: string;
303
+ negatedDescription: string;
302
304
  path: string;
303
305
  }[];
304
306
  description: string;
305
- negatedDescription: string;
306
307
  simpleType: string;
307
308
  multiple: boolean;
308
309
  };
@@ -311,10 +312,10 @@ declare const _exports: {
311
312
  type: string;
312
313
  multiple: boolean;
313
314
  description: string;
315
+ negatedDescription: string;
314
316
  path: string;
315
317
  }[];
316
318
  description: string;
317
- negatedDescription: string;
318
319
  simpleType: string;
319
320
  multiple: boolean;
320
321
  };
@@ -466,10 +467,10 @@ declare const _exports: {
466
467
  type: string;
467
468
  multiple: boolean;
468
469
  description: string;
470
+ negatedDescription: string;
469
471
  path: string;
470
472
  }[];
471
473
  description: string;
472
- negatedDescription: string;
473
474
  simpleType: string;
474
475
  multiple: boolean;
475
476
  };
@@ -498,10 +499,10 @@ declare const _exports: {
498
499
  type: string;
499
500
  multiple: boolean;
500
501
  description: string;
502
+ negatedDescription: string;
501
503
  path: string;
502
504
  }[];
503
505
  description: string;
504
- negatedDescription: string;
505
506
  simpleType: string;
506
507
  multiple: boolean;
507
508
  };
@@ -510,22 +511,30 @@ declare const _exports: {
510
511
  type: string;
511
512
  multiple: boolean;
512
513
  description: string;
514
+ negatedDescription: string;
513
515
  path: string;
514
516
  }[];
515
517
  description: string;
516
- negatedDescription: string;
517
518
  simpleType: string;
518
519
  multiple: boolean;
519
520
  };
520
521
  open: {
521
- configs: {
522
- type: string;
523
- multiple: boolean;
524
- description: string;
525
- path: string;
526
- }[];
522
+ configs: (
523
+ | {
524
+ type: string;
525
+ multiple: boolean;
526
+ description: string;
527
+ path: string;
528
+ }
529
+ | {
530
+ type: string;
531
+ multiple: boolean;
532
+ description: string;
533
+ negatedDescription: string;
534
+ path: string;
535
+ }
536
+ )[];
527
537
  description: string;
528
- negatedDescription: string;
529
538
  simpleType: string;
530
539
  multiple: boolean;
531
540
  };
@@ -581,7 +590,6 @@ declare const _exports: {
581
590
  path: string;
582
591
  }[];
583
592
  description: string;
584
- negatedDescription: string;
585
593
  simpleType: string;
586
594
  multiple: boolean;
587
595
  };
@@ -842,10 +850,10 @@ declare const _exports: {
842
850
  type: string;
843
851
  multiple: boolean;
844
852
  description: string;
853
+ negatedDescription: string;
845
854
  path: string;
846
855
  }[];
847
856
  description: string;
848
- negatedDescription: string;
849
857
  simpleType: string;
850
858
  multiple: boolean;
851
859
  };
@@ -854,10 +862,10 @@ declare const _exports: {
854
862
  type: string;
855
863
  multiple: boolean;
856
864
  description: string;
865
+ negatedDescription: string;
857
866
  path: string;
858
867
  }[];
859
868
  description: string;
860
- negatedDescription: string;
861
869
  simpleType: string;
862
870
  multiple: boolean;
863
871
  };