webpack-dev-server 4.7.2 → 4.8.0

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
@@ -28,7 +28,10 @@
28
28
  "Bonjour": {
29
29
  "anyOf": [
30
30
  {
31
- "type": "boolean"
31
+ "type": "boolean",
32
+ "cli": {
33
+ "negatedDescription": "Disallows to broadcasts dev server via ZeroConf networking on start."
34
+ }
32
35
  },
33
36
  {
34
37
  "type": "object",
@@ -44,7 +47,10 @@
44
47
  "link": "https://webpack.js.org/configuration/dev-server/#devserverclient",
45
48
  "anyOf": [
46
49
  {
47
- "enum": [false]
50
+ "enum": [false],
51
+ "cli": {
52
+ "negatedDescription": "Disables client script."
53
+ }
48
54
  },
49
55
  {
50
56
  "type": "object",
@@ -82,7 +88,10 @@
82
88
  {
83
89
  "description": "Enables a full-screen overlay in the browser when there are compiler errors or warnings.",
84
90
  "link": "https://webpack.js.org/configuration/dev-server/#overlay",
85
- "type": "boolean"
91
+ "type": "boolean",
92
+ "cli": {
93
+ "negatedDescription": "Disables the full-screen overlay in the browser when there are compiler errors or warnings."
94
+ }
86
95
  },
87
96
  {
88
97
  "type": "object",
@@ -90,11 +99,17 @@
90
99
  "properties": {
91
100
  "errors": {
92
101
  "description": "Enables a full-screen overlay in the browser when there are compiler errors.",
93
- "type": "boolean"
102
+ "type": "boolean",
103
+ "cli": {
104
+ "negatedDescription": "Disables the full-screen overlay in the browser when there are compiler errors."
105
+ }
94
106
  },
95
107
  "warnings": {
96
108
  "description": "Enables a full-screen overlay in the browser when there are compiler warnings.",
97
- "type": "boolean"
109
+ "type": "boolean",
110
+ "cli": {
111
+ "negatedDescription": "Disables the full-screen overlay in the browser when there are compiler warnings."
112
+ }
98
113
  }
99
114
  }
100
115
  }
@@ -103,14 +118,20 @@
103
118
  "ClientProgress": {
104
119
  "description": "Prints compilation progress in percentage in the browser.",
105
120
  "link": "https://webpack.js.org/configuration/dev-server/#progress",
106
- "type": "boolean"
121
+ "type": "boolean",
122
+ "cli": {
123
+ "negatedDescription": "Does not print compilation progress in percentage in the browser."
124
+ }
107
125
  },
108
126
  "ClientReconnect": {
109
127
  "description": "Tells dev-server the number of times it should try to reconnect the client.",
110
128
  "link": "https://webpack.js.org/configuration/dev-server/#reconnect",
111
129
  "anyOf": [
112
130
  {
113
- "type": "boolean"
131
+ "type": "boolean",
132
+ "cli": {
133
+ "negatedDescription": "Tells dev-server to not to try to reconnect the client."
134
+ }
114
135
  },
115
136
  {
116
137
  "type": "number",
@@ -197,7 +218,10 @@
197
218
  "Compress": {
198
219
  "type": "boolean",
199
220
  "description": "Enables gzip compression for everything served.",
200
- "link": "https://webpack.js.org/configuration/dev-server/#devservercompress"
221
+ "link": "https://webpack.js.org/configuration/dev-server/#devservercompress",
222
+ "cli": {
223
+ "negatedDescription": "Disables gzip compression for everything served."
224
+ }
201
225
  },
202
226
  "DevMiddleware": {
203
227
  "description": "Provide options to 'webpack-dev-middleware' which handles webpack assets.",
@@ -208,12 +232,18 @@
208
232
  "HTTP2": {
209
233
  "type": "boolean",
210
234
  "description": "Allows to serve over HTTP/2 using SPDY. Deprecated, use the `server` option.",
211
- "link": "https://webpack.js.org/configuration/dev-server/#devserverhttp2"
235
+ "link": "https://webpack.js.org/configuration/dev-server/#devserverhttp2",
236
+ "cli": {
237
+ "negatedDescription": "Does not serve over HTTP/2 using SPDY."
238
+ }
212
239
  },
213
240
  "HTTPS": {
214
241
  "anyOf": [
215
242
  {
216
- "type": "boolean"
243
+ "type": "boolean",
244
+ "cli": {
245
+ "negatedDescription": "Disallows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP)."
246
+ }
217
247
  },
218
248
  {
219
249
  "type": "object",
@@ -225,7 +255,10 @@
225
255
  },
226
256
  "requestCert": {
227
257
  "type": "boolean",
228
- "description": "Request for an SSL certificate. Deprecated, use the `server.options.requestCert` option."
258
+ "description": "Request for an SSL certificate. Deprecated, use the `server.options.requestCert` option.",
259
+ "cli": {
260
+ "negatedDescription": "Does not request for an SSL certificate."
261
+ }
229
262
  },
230
263
  "ca": {
231
264
  "anyOf": [
@@ -424,7 +457,10 @@
424
457
  "HistoryApiFallback": {
425
458
  "anyOf": [
426
459
  {
427
- "type": "boolean"
460
+ "type": "boolean",
461
+ "cli": {
462
+ "negatedDescription": "Disallows to proxy requests through a specified index page."
463
+ }
428
464
  },
429
465
  {
430
466
  "type": "object",
@@ -451,7 +487,10 @@
451
487
  "Hot": {
452
488
  "anyOf": [
453
489
  {
454
- "type": "boolean"
490
+ "type": "boolean",
491
+ "cli": {
492
+ "negatedDescription": "Disables Hot Module Replacement."
493
+ }
455
494
  },
456
495
  {
457
496
  "enum": ["only"]
@@ -477,11 +516,17 @@
477
516
  "LiveReload": {
478
517
  "type": "boolean",
479
518
  "description": "Enables reload/refresh the page(s) when file changes are detected (enabled by default).",
519
+ "cli": {
520
+ "negatedDescription": "Disables reload/refresh the page(s) when file changes are detected (enabled by default)."
521
+ },
480
522
  "link": "https://webpack.js.org/configuration/dev-server/#devserverlivereload"
481
523
  },
482
524
  "MagicHTML": {
483
525
  "type": "boolean",
484
526
  "description": "Tells dev-server whether to enable magic HTML routes (routes corresponding to your webpack output, for example '/main' for 'main.js').",
527
+ "cli": {
528
+ "negatedDescription": "Disables magic HTML routes (routes corresponding to your webpack output, for example '/main' for 'main.js')."
529
+ },
485
530
  "link": "https://webpack.js.org/configuration/dev-server/#devservermagichtml"
486
531
  },
487
532
  "OnAfterSetupMiddleware": {
@@ -528,7 +573,10 @@
528
573
  "link": "https://webpack.js.org/configuration/dev-server/#devserveropen"
529
574
  },
530
575
  "OpenBoolean": {
531
- "type": "boolean"
576
+ "type": "boolean",
577
+ "cli": {
578
+ "negatedDescription": "Does not open the default browser."
579
+ }
532
580
  },
533
581
  "OpenObject": {
534
582
  "type": "object",
@@ -581,7 +629,10 @@
581
629
  {
582
630
  "type": "string",
583
631
  "minLength": 1,
584
- "description": "Open specified browser. Deprecated: please use '--open-app-name'."
632
+ "description": "Open specified browser.",
633
+ "cli": {
634
+ "description": "Open specified browser. Deprecated: please use '--open-app-name'."
635
+ }
585
636
  }
586
637
  ],
587
638
  "description": "Open specified browser."
@@ -692,7 +743,10 @@
692
743
  },
693
744
  "requestCert": {
694
745
  "type": "boolean",
695
- "description": "Request for an SSL certificate."
746
+ "description": "Request for an SSL certificate.",
747
+ "cli": {
748
+ "negatedDescription": "Does not request for an SSL certificate."
749
+ }
696
750
  },
697
751
  "ca": {
698
752
  "anyOf": [
@@ -877,7 +931,10 @@
877
931
  }
878
932
  },
879
933
  {
880
- "type": "boolean"
934
+ "type": "boolean",
935
+ "cli": {
936
+ "negatedDescription": "Disallows to configure options for serving static files from directory."
937
+ }
881
938
  },
882
939
  {
883
940
  "$ref": "#/definitions/StaticString"
@@ -923,7 +980,10 @@
923
980
  "serveIndex": {
924
981
  "anyOf": [
925
982
  {
926
- "type": "boolean"
983
+ "type": "boolean",
984
+ "cli": {
985
+ "negatedDescription": "Does not tell dev server to use serveIndex middleware."
986
+ }
927
987
  },
928
988
  {
929
989
  "type": "object",
@@ -936,7 +996,10 @@
936
996
  "watch": {
937
997
  "anyOf": [
938
998
  {
939
- "type": "boolean"
999
+ "type": "boolean",
1000
+ "cli": {
1001
+ "negatedDescription": "Does not watch for files in static content directory."
1002
+ }
940
1003
  },
941
1004
  {
942
1005
  "type": "object",
@@ -1037,13 +1100,18 @@
1037
1100
  "WebSocketServerEnum": {
1038
1101
  "anyOf": [
1039
1102
  {
1040
- "enum": [false]
1103
+ "enum": [false],
1104
+ "cli": {
1105
+ "negatedDescription": "Disallows to set web socket server and options."
1106
+ }
1041
1107
  },
1042
1108
  {
1043
1109
  "$ref": "#/definitions/WebSocketServerType"
1044
1110
  }
1045
1111
  ],
1046
- "description": "Deprecated: please use '--web-socket-server-type' option."
1112
+ "cli": {
1113
+ "description": "Deprecated: please use '--web-socket-server-type' option."
1114
+ }
1047
1115
  },
1048
1116
  "WebSocketServerFunction": {
1049
1117
  "instanceof": "Function"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack-dev-server",
3
- "version": "4.7.2",
3
+ "version": "4.8.0",
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,55 +37,56 @@
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
- "@types/ws": "^8.2.2",
43
+ "@types/ws": "^8.5.1",
43
44
  "ansi-html-community": "^0.0.8",
44
- "bonjour": "^3.5.0",
45
- "chokidar": "^3.5.2",
45
+ "bonjour-service": "^1.0.11",
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",
49
50
  "default-gateway": "^6.0.3",
50
- "del": "^6.0.0",
51
- "express": "^4.17.1",
51
+ "express": "^4.17.3",
52
52
  "graceful-fs": "^4.2.6",
53
53
  "html-entities": "^2.3.2",
54
- "http-proxy-middleware": "^2.0.0",
54
+ "http-proxy-middleware": "^2.0.3",
55
55
  "ipaddr.js": "^2.0.1",
56
56
  "open": "^8.0.9",
57
57
  "p-retry": "^4.5.0",
58
58
  "portfinder": "^1.0.28",
59
+ "rimraf": "^3.0.2",
59
60
  "schema-utils": "^4.0.0",
60
- "selfsigned": "^1.10.11",
61
+ "selfsigned": "^2.0.1",
61
62
  "serve-index": "^1.9.1",
62
63
  "sockjs": "^0.3.21",
63
64
  "spdy": "^4.0.2",
64
- "strip-ansi": "^7.0.0",
65
- "webpack-dev-middleware": "^5.3.0",
66
- "ws": "^8.1.0"
65
+ "webpack-dev-middleware": "^5.3.1",
66
+ "ws": "^8.4.2"
67
67
  },
68
68
  "devDependencies": {
69
- "@babel/cli": "^7.14.5",
70
- "@babel/core": "^7.14.6",
71
- "@babel/eslint-parser": "^7.14.7",
69
+ "@babel/cli": "^7.17.3",
70
+ "@babel/core": "^7.17.5",
71
+ "@babel/eslint-parser": "^7.17.0",
72
72
  "@babel/plugin-transform-object-assign": "^7.14.5",
73
- "@babel/plugin-transform-runtime": "^7.14.5",
74
- "@babel/preset-env": "^7.14.5",
75
- "@babel/runtime": "^7.14.5",
76
- "@commitlint/cli": "^16.0.1",
77
- "@commitlint/config-conventional": "^16.0.0",
73
+ "@babel/plugin-transform-runtime": "^7.17.0",
74
+ "@babel/preset-env": "^7.16.11",
75
+ "@babel/runtime": "^7.17.2",
76
+ "@commitlint/cli": "^16.2.3",
77
+ "@commitlint/config-conventional": "^16.2.1",
78
78
  "@types/compression": "^1.7.2",
79
79
  "@types/default-gateway": "^3.0.1",
80
+ "@types/rimraf": "^3.0.2",
80
81
  "@types/sockjs-client": "^1.5.1",
81
82
  "acorn": "^8.2.4",
82
- "babel-jest": "^27.4.4",
83
- "babel-loader": "^8.2.2",
84
- "body-parser": "^1.19.1",
85
- "core-js": "^3.12.1",
83
+ "babel-jest": "^27.5.1",
84
+ "babel-loader": "^8.2.4",
85
+ "body-parser": "^1.19.2",
86
+ "core-js": "^3.21.1",
86
87
  "css-loader": "^5.2.4",
87
- "eslint": "^8.0.1",
88
- "eslint-config-prettier": "^8.3.0",
88
+ "eslint": "^8.12.0",
89
+ "eslint-config-prettier": "^8.4.0",
89
90
  "eslint-config-webpack": "^1.2.5",
90
91
  "eslint-plugin-import": "^2.23.2",
91
92
  "execa": "^5.1.1",
@@ -93,27 +94,27 @@
93
94
  "html-webpack-plugin": "^4.5.2",
94
95
  "http-proxy": "^1.18.1",
95
96
  "husky": "^7.0.0",
96
- "jest": "^27.4.4",
97
+ "jest": "^27.5.1",
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
- "marked": "^3.0.0",
101
+ "lint-staged": "^12.3.4",
102
+ "marked": "^4.0.12",
102
103
  "memfs": "^3.2.2",
103
104
  "npm-run-all": "^4.1.5",
104
- "prettier": "^2.3.1",
105
- "puppeteer": "^13.0.0",
105
+ "prettier": "^2.6.1",
106
+ "puppeteer": "^13.4.1",
106
107
  "require-from-string": "^2.0.2",
107
108
  "rimraf": "^3.0.2",
108
- "sockjs-client": "^1.5.1",
109
+ "sockjs-client": "^1.6.0",
109
110
  "standard-version": "^9.3.0",
110
111
  "strip-ansi-v6": "npm:strip-ansi@^6.0.0",
111
112
  "style-loader": "^2.0.0",
112
113
  "supertest": "^6.1.3",
113
114
  "tcp-port-used": "^1.0.2",
114
- "typescript": "^4.2.4",
115
+ "typescript": "^4.6.3",
115
116
  "url-loader": "^4.1.1",
116
- "webpack": "^5.64.0",
117
+ "webpack": "^5.71.0",
117
118
  "webpack-cli": "^4.7.2",
118
119
  "webpack-merge": "^5.8.0"
119
120
  },
@@ -35,16 +35,17 @@ 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
  };
45
45
  client: {
46
46
  configs: {
47
47
  description: string;
48
+ negatedDescription: string;
48
49
  multiple: boolean;
49
50
  path: string;
50
51
  type: string;
@@ -71,10 +72,10 @@ declare const _exports: {
71
72
  type: string;
72
73
  multiple: boolean;
73
74
  description: string;
75
+ negatedDescription: string;
74
76
  path: string;
75
77
  }[];
76
78
  description: string;
77
- negatedDescription: string;
78
79
  simpleType: string;
79
80
  multiple: boolean;
80
81
  };
@@ -83,6 +84,7 @@ declare const _exports: {
83
84
  type: string;
84
85
  multiple: boolean;
85
86
  description: string;
87
+ negatedDescription: string;
86
88
  path: string;
87
89
  }[];
88
90
  description: string;
@@ -94,6 +96,7 @@ declare const _exports: {
94
96
  type: string;
95
97
  multiple: boolean;
96
98
  description: string;
99
+ negatedDescription: string;
97
100
  path: string;
98
101
  }[];
99
102
  description: string;
@@ -105,22 +108,30 @@ declare const _exports: {
105
108
  type: string;
106
109
  multiple: boolean;
107
110
  description: string;
111
+ negatedDescription: string;
108
112
  path: string;
109
113
  }[];
110
114
  description: string;
111
- negatedDescription: string;
112
115
  simpleType: string;
113
116
  multiple: boolean;
114
117
  };
115
118
  "client-reconnect": {
116
- configs: {
117
- type: string;
118
- multiple: boolean;
119
- description: string;
120
- path: string;
121
- }[];
119
+ configs: (
120
+ | {
121
+ type: string;
122
+ multiple: boolean;
123
+ description: string;
124
+ negatedDescription: string;
125
+ path: string;
126
+ }
127
+ | {
128
+ type: string;
129
+ multiple: boolean;
130
+ description: string;
131
+ path: string;
132
+ }
133
+ )[];
122
134
  description: string;
123
- negatedDescription: string;
124
135
  simpleType: string;
125
136
  multiple: boolean;
126
137
  };
@@ -235,10 +246,10 @@ declare const _exports: {
235
246
  type: string;
236
247
  multiple: boolean;
237
248
  description: string;
249
+ negatedDescription: string;
238
250
  path: string;
239
251
  }[];
240
252
  description: string;
241
- negatedDescription: string;
242
253
  simpleType: string;
243
254
  multiple: boolean;
244
255
  };
@@ -247,6 +258,7 @@ declare const _exports: {
247
258
  type: string;
248
259
  multiple: boolean;
249
260
  description: string;
261
+ negatedDescription: string;
250
262
  path: string;
251
263
  }[];
252
264
  description: string;
@@ -279,6 +291,7 @@ declare const _exports: {
279
291
  type: string;
280
292
  multiple: boolean;
281
293
  description: string;
294
+ negatedDescription: string;
282
295
  path: string;
283
296
  }
284
297
  | {
@@ -290,7 +303,6 @@ declare const _exports: {
290
303
  }
291
304
  )[];
292
305
  description: string;
293
- negatedDescription: string;
294
306
  simpleType: string;
295
307
  multiple: boolean;
296
308
  };
@@ -299,10 +311,10 @@ declare const _exports: {
299
311
  type: string;
300
312
  multiple: boolean;
301
313
  description: string;
314
+ negatedDescription: string;
302
315
  path: string;
303
316
  }[];
304
317
  description: string;
305
- negatedDescription: string;
306
318
  simpleType: string;
307
319
  multiple: boolean;
308
320
  };
@@ -311,10 +323,10 @@ declare const _exports: {
311
323
  type: string;
312
324
  multiple: boolean;
313
325
  description: string;
326
+ negatedDescription: string;
314
327
  path: string;
315
328
  }[];
316
329
  description: string;
317
- negatedDescription: string;
318
330
  simpleType: string;
319
331
  multiple: boolean;
320
332
  };
@@ -466,10 +478,10 @@ declare const _exports: {
466
478
  type: string;
467
479
  multiple: boolean;
468
480
  description: string;
481
+ negatedDescription: string;
469
482
  path: string;
470
483
  }[];
471
484
  description: string;
472
- negatedDescription: string;
473
485
  simpleType: string;
474
486
  multiple: boolean;
475
487
  };
@@ -498,10 +510,10 @@ declare const _exports: {
498
510
  type: string;
499
511
  multiple: boolean;
500
512
  description: string;
513
+ negatedDescription: string;
501
514
  path: string;
502
515
  }[];
503
516
  description: string;
504
- negatedDescription: string;
505
517
  simpleType: string;
506
518
  multiple: boolean;
507
519
  };
@@ -510,22 +522,30 @@ declare const _exports: {
510
522
  type: string;
511
523
  multiple: boolean;
512
524
  description: string;
525
+ negatedDescription: string;
513
526
  path: string;
514
527
  }[];
515
528
  description: string;
516
- negatedDescription: string;
517
529
  simpleType: string;
518
530
  multiple: boolean;
519
531
  };
520
532
  open: {
521
- configs: {
522
- type: string;
523
- multiple: boolean;
524
- description: string;
525
- path: string;
526
- }[];
533
+ configs: (
534
+ | {
535
+ type: string;
536
+ multiple: boolean;
537
+ description: string;
538
+ path: string;
539
+ }
540
+ | {
541
+ type: string;
542
+ multiple: boolean;
543
+ description: string;
544
+ negatedDescription: string;
545
+ path: string;
546
+ }
547
+ )[];
527
548
  description: string;
528
- negatedDescription: string;
529
549
  simpleType: string;
530
550
  multiple: boolean;
531
551
  };
@@ -581,7 +601,6 @@ declare const _exports: {
581
601
  path: string;
582
602
  }[];
583
603
  description: string;
584
- negatedDescription: string;
585
604
  simpleType: string;
586
605
  multiple: boolean;
587
606
  };
@@ -762,6 +781,7 @@ declare const _exports: {
762
781
  "server-options-request-cert": {
763
782
  configs: {
764
783
  description: string;
784
+ negatedDescription: string;
765
785
  multiple: boolean;
766
786
  path: string;
767
787
  type: string;
@@ -783,12 +803,21 @@ declare const _exports: {
783
803
  simpleType: string;
784
804
  };
785
805
  static: {
786
- configs: {
787
- type: string;
788
- multiple: boolean;
789
- description: string;
790
- path: string;
791
- }[];
806
+ configs: (
807
+ | {
808
+ type: string;
809
+ multiple: boolean;
810
+ description: string;
811
+ path: string;
812
+ }
813
+ | {
814
+ type: string;
815
+ multiple: boolean;
816
+ description: string;
817
+ negatedDescription: string;
818
+ path: string;
819
+ }
820
+ )[];
792
821
  description: string;
793
822
  simpleType: string;
794
823
  multiple: boolean;
@@ -842,10 +871,10 @@ declare const _exports: {
842
871
  type: string;
843
872
  multiple: boolean;
844
873
  description: string;
874
+ negatedDescription: string;
845
875
  path: string;
846
876
  }[];
847
877
  description: string;
848
- negatedDescription: string;
849
878
  simpleType: string;
850
879
  multiple: boolean;
851
880
  };
@@ -854,10 +883,10 @@ declare const _exports: {
854
883
  type: string;
855
884
  multiple: boolean;
856
885
  description: string;
886
+ negatedDescription: string;
857
887
  path: string;
858
888
  }[];
859
889
  description: string;
860
- negatedDescription: string;
861
890
  simpleType: string;
862
891
  multiple: boolean;
863
892
  };
@@ -887,6 +916,7 @@ declare const _exports: {
887
916
  configs: (
888
917
  | {
889
918
  description: string;
919
+ negatedDescription: string;
890
920
  multiple: boolean;
891
921
  path: string;
892
922
  type: string;