Skip to content

Commit 30054fd

Browse files
committed
feat: remove deprecated CLI flags for HTTP/2, HTTPS, and web socket server options
1 parent cc0b931 commit 30054fd

2 files changed

Lines changed: 0 additions & 564 deletions

File tree

bin/cli-flags.js

Lines changed: 0 additions & 321 deletions
Original file line numberDiff line numberDiff line change
@@ -425,250 +425,6 @@ module.exports = {
425425
simpleType: "string",
426426
multiple: false,
427427
},
428-
http2: {
429-
configs: [
430-
{
431-
type: "boolean",
432-
multiple: false,
433-
description:
434-
"Allows to serve over HTTP/2 using SPDY. Deprecated, use the `server` option.",
435-
negatedDescription: "Does not serve over HTTP/2 using SPDY.",
436-
path: "http2",
437-
},
438-
],
439-
description:
440-
"Allows to serve over HTTP/2 using SPDY. Deprecated, use the `server` option.",
441-
simpleType: "boolean",
442-
multiple: false,
443-
},
444-
https: {
445-
configs: [
446-
{
447-
type: "boolean",
448-
multiple: false,
449-
description:
450-
"Allows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP). Deprecated, use the `server` option.",
451-
negatedDescription:
452-
"Disallows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP).",
453-
path: "https",
454-
},
455-
],
456-
description:
457-
"Allows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP). Deprecated, use the `server` option.",
458-
simpleType: "boolean",
459-
multiple: false,
460-
},
461-
"https-ca": {
462-
configs: [
463-
{
464-
type: "string",
465-
multiple: true,
466-
description:
467-
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
468-
path: "https.ca[]",
469-
},
470-
],
471-
description:
472-
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
473-
simpleType: "string",
474-
multiple: true,
475-
},
476-
"https-ca-reset": {
477-
configs: [
478-
{
479-
description:
480-
"Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
481-
multiple: false,
482-
path: "https.ca",
483-
type: "reset",
484-
},
485-
],
486-
description:
487-
"Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
488-
multiple: false,
489-
simpleType: "boolean",
490-
},
491-
"https-cacert": {
492-
configs: [
493-
{
494-
type: "string",
495-
multiple: true,
496-
description:
497-
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
498-
path: "https.cacert[]",
499-
},
500-
],
501-
description:
502-
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
503-
simpleType: "string",
504-
multiple: true,
505-
},
506-
"https-cacert-reset": {
507-
configs: [
508-
{
509-
description:
510-
"Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
511-
multiple: false,
512-
path: "https.cacert",
513-
type: "reset",
514-
},
515-
],
516-
description:
517-
"Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
518-
multiple: false,
519-
simpleType: "boolean",
520-
},
521-
"https-cert": {
522-
configs: [
523-
{
524-
type: "string",
525-
multiple: true,
526-
description:
527-
"Path to an SSL certificate or content of an SSL certificate. Deprecated, use the `server.options.cert` option.",
528-
path: "https.cert[]",
529-
},
530-
],
531-
description:
532-
"Path to an SSL certificate or content of an SSL certificate. Deprecated, use the `server.options.cert` option.",
533-
simpleType: "string",
534-
multiple: true,
535-
},
536-
"https-cert-reset": {
537-
configs: [
538-
{
539-
description:
540-
"Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL certificate. Deprecated, use the `server.options.cert` option.",
541-
multiple: false,
542-
path: "https.cert",
543-
type: "reset",
544-
},
545-
],
546-
description:
547-
"Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL certificate. Deprecated, use the `server.options.cert` option.",
548-
multiple: false,
549-
simpleType: "boolean",
550-
},
551-
"https-crl": {
552-
configs: [
553-
{
554-
description:
555-
"Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, use the `server.options.crl` option.",
556-
multiple: true,
557-
path: "https.crl[]",
558-
type: "string",
559-
},
560-
],
561-
description:
562-
"Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, use the `server.options.crl` option.",
563-
multiple: true,
564-
simpleType: "string",
565-
},
566-
"https-crl-reset": {
567-
configs: [
568-
{
569-
description:
570-
"Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, use the `server.options.crl` option.",
571-
multiple: false,
572-
path: "https.crl",
573-
type: "reset",
574-
},
575-
],
576-
description:
577-
"Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, use the `server.options.crl` option.",
578-
multiple: false,
579-
simpleType: "boolean",
580-
},
581-
"https-key": {
582-
configs: [
583-
{
584-
type: "string",
585-
multiple: true,
586-
description:
587-
"Path to an SSL key or content of an SSL key. Deprecated, use the `server.options.key` option.",
588-
path: "https.key[]",
589-
},
590-
],
591-
description:
592-
"Path to an SSL key or content of an SSL key. Deprecated, use the `server.options.key` option.",
593-
simpleType: "string",
594-
multiple: true,
595-
},
596-
"https-key-reset": {
597-
configs: [
598-
{
599-
description:
600-
"Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key. Deprecated, use the `server.options.key` option.",
601-
multiple: false,
602-
path: "https.key",
603-
type: "reset",
604-
},
605-
],
606-
description:
607-
"Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key. Deprecated, use the `server.options.key` option.",
608-
multiple: false,
609-
simpleType: "boolean",
610-
},
611-
"https-passphrase": {
612-
configs: [
613-
{
614-
type: "string",
615-
multiple: false,
616-
description:
617-
"Passphrase for a pfx file. Deprecated, use the `server.options.passphrase` option.",
618-
path: "https.passphrase",
619-
},
620-
],
621-
description:
622-
"Passphrase for a pfx file. Deprecated, use the `server.options.passphrase` option.",
623-
simpleType: "string",
624-
multiple: false,
625-
},
626-
"https-pfx": {
627-
configs: [
628-
{
629-
type: "string",
630-
multiple: true,
631-
description:
632-
"Path to an SSL pfx file or content of an SSL pfx file. Deprecated, use the `server.options.pfx` option.",
633-
path: "https.pfx[]",
634-
},
635-
],
636-
description:
637-
"Path to an SSL pfx file or content of an SSL pfx file. Deprecated, use the `server.options.pfx` option.",
638-
simpleType: "string",
639-
multiple: true,
640-
},
641-
"https-pfx-reset": {
642-
configs: [
643-
{
644-
description:
645-
"Clear all items provided in 'https.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file. Deprecated, use the `server.options.pfx` option.",
646-
multiple: false,
647-
path: "https.pfx",
648-
type: "reset",
649-
},
650-
],
651-
description:
652-
"Clear all items provided in 'https.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file. Deprecated, use the `server.options.pfx` option.",
653-
multiple: false,
654-
simpleType: "boolean",
655-
},
656-
"https-request-cert": {
657-
configs: [
658-
{
659-
type: "boolean",
660-
multiple: false,
661-
description:
662-
"Request for an SSL certificate. Deprecated, use the `server.options.requestCert` option.",
663-
negatedDescription: "Does not request for an SSL certificate.",
664-
path: "https.requestCert",
665-
},
666-
],
667-
description:
668-
"Request for an SSL certificate. Deprecated, use the `server.options.requestCert` option.",
669-
simpleType: "boolean",
670-
multiple: false,
671-
},
672428
ipc: {
673429
configs: [
674430
{
@@ -746,21 +502,6 @@ module.exports = {
746502
simpleType: "string",
747503
multiple: true,
748504
},
749-
"open-app": {
750-
configs: [
751-
{
752-
type: "string",
753-
multiple: true,
754-
description:
755-
"Open specified browser. Deprecated: please use '--open-app-name'.",
756-
path: "open[].app",
757-
},
758-
],
759-
description:
760-
"Open specified browser. Deprecated: please use '--open-app-name'.",
761-
simpleType: "string",
762-
multiple: true,
763-
},
764505
"open-app-name": {
765506
configs: [
766507
{
@@ -900,36 +641,6 @@ module.exports = {
900641
multiple: false,
901642
simpleType: "boolean",
902643
},
903-
"server-options-cacert": {
904-
configs: [
905-
{
906-
description:
907-
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
908-
multiple: true,
909-
path: "server.options.cacert[]",
910-
type: "string",
911-
},
912-
],
913-
description:
914-
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
915-
multiple: true,
916-
simpleType: "string",
917-
},
918-
"server-options-cacert-reset": {
919-
configs: [
920-
{
921-
description:
922-
"Clear all items provided in 'server.options.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
923-
multiple: false,
924-
path: "server.options.cacert",
925-
type: "reset",
926-
},
927-
],
928-
description:
929-
"Clear all items provided in 'server.options.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
930-
multiple: false,
931-
simpleType: "boolean",
932-
},
933644
"server-options-cert": {
934645
configs: [
935646
{
@@ -1236,38 +947,6 @@ module.exports = {
1236947
simpleType: "boolean",
1237948
multiple: false,
1238949
},
1239-
"web-socket-server": {
1240-
configs: [
1241-
{
1242-
description:
1243-
"Deprecated: please use '--web-socket-server-type' option.",
1244-
negatedDescription: "Disallows to set web socket server and options.",
1245-
multiple: false,
1246-
path: "webSocketServer",
1247-
type: "enum",
1248-
values: [false],
1249-
},
1250-
{
1251-
description:
1252-
"Deprecated: please use '--web-socket-server-type' option.",
1253-
multiple: false,
1254-
path: "webSocketServer",
1255-
type: "enum",
1256-
values: ["ws"],
1257-
},
1258-
{
1259-
description:
1260-
"Allows to set web socket server and options (by default 'ws').",
1261-
multiple: false,
1262-
path: "webSocketServer",
1263-
type: "string",
1264-
},
1265-
],
1266-
description:
1267-
"Deprecated: please use '--web-socket-server-type' option. Allows to set web socket server and options (by default 'ws').",
1268-
simpleType: "string",
1269-
multiple: false,
1270-
},
1271950
"web-socket-server-type": {
1272951
configs: [
1273952
{

0 commit comments

Comments
 (0)