@ms-cloudpack/common-types 0.33.3 → 0.34.1

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.
@@ -67,6 +67,8 @@ export declare const allFeatures: {
67
67
  syncBundles: Feature;
68
68
  /** Enables the syncing of internal packages. */
69
69
  syncInternalPackages: Feature;
70
+ /** Use static analysis instead of bundling during init to determine package imports (experimental). If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning. */
71
+ staticAnalysisInit: Feature;
70
72
  /** Use a single server for both bundles and app assets (default: true). */
71
73
  useSingleWebServer: Feature;
72
74
  /** Enables the verification of exports during init (default: true). */
@@ -1 +1 @@
1
- {"version":3,"file":"allFeatures.d.ts","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;KAAG,GAAG,IAAI,MAAM,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO;CAAE,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,WAAW,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,WAAW;IAGtB,mHAAmH;uBAK9G,OAAO;IAEZ,2DAA2D;uBACmC,OAAO;IAErG,uCAAuC;uBACoC,OAAO;IAElF;;;OAGG;yBAKE,OAAO;IAEZ,8EAA8E;yBAIzE,OAAO;IAEZ;;;;OAIG;0BAKE,OAAO;IAEZ;;OAEG;gCAGE,OAAO;IAEZ;;;OAGG;eAIE,OAAO;IAEZ,mFAAmF;yBAI9E,OAAO;IAEZ,mEAAmE;6BAG9D,OAAO;IAEZ,sEAAsE;yBACqC,OAAO;IAElH,6FAA6F;4BAGxF,OAAO;IAEZ,qDAAqD;SAIhD,OAAO;IAEZ;;;OAGG;0BAKE,OAAO;IAEZ,sHAAsH;4BAKjH,OAAO;IAEZ,+GAA+G;yBAI1G,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EF;;GAEG;AACH,eAAO,MAAM,eAAe,EAIvB,QAAQ,CAAC"}
@@ -91,6 +91,11 @@ export const allFeatures = {
91
91
  syncBundles: { description: 'Enables the syncing of bundles.' },
92
92
  /** Enables the syncing of internal packages. */
93
93
  syncInternalPackages: { description: 'Enables the syncing of internal packages.' },
94
+ /** Use static analysis instead of bundling during init to determine package imports (experimental). If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning. */
95
+ staticAnalysisInit: {
96
+ description: 'Use static analysis instead of bundling during init to determine package imports (experimental). ' +
97
+ 'If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning.',
98
+ },
94
99
  /** Use a single server for both bundles and app assets (default: true). */
95
100
  useSingleWebServer: {
96
101
  description: 'Use a single server for both bundles and app assets (default: true).',
@@ -1 +1 @@
1
- {"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,8FAA8F;IAE9F,mHAAmH;IACnH,iBAAiB,EAAE;QACjB,WAAW,EACT,8GAA8G;QAChH,OAAO,EAAE,IAAI;KACH;IAEZ,2DAA2D;IAC3D,iBAAiB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IAErG,uCAAuC;IACvC,iBAAiB,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAa;IAElF;;;OAGG;IACH,mBAAmB,EAAE;QACnB,WAAW,EACT,4IAA4I;QAC9I,OAAO,EAAE,IAAI;KACH;IAEZ,8EAA8E;IAC9E,mBAAmB,EAAE;QACnB,WAAW,EAAE,uEAAuE;QACpF,OAAO,EAAE,IAAI;KACH;IAEZ;;;;OAIG;IACH,oBAAoB,EAAE;QACpB,WAAW,EACT,qNAAqN;QACvN,OAAO,EAAE,IAAI;KACH;IAEZ;;OAEG;IACH,0BAA0B,EAAE;QAC1B,WAAW,EAAE,oEAAoE;KACvE;IAEZ;;;OAGG;IACH,SAAS,EAAE;QAC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,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;KACzC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACrB,CAAC","sourcesContent":["import type { Feature } from './Feature.js';\n\n/**\n * Represents all features that can be enabled or disabled for Cloudpack.\n */\nexport type Features = { [key in keyof typeof allFeatures]?: boolean };\n\n/**\n * All valid feature names.\n */\nexport type FeatureName = keyof typeof allFeatures;\n\n/**\n * A set of options for configuring the experience.\n * Features can be set to true to change the default behavior.\n */\nexport const allFeatures = {\n // The comments provide intellisense, and the description strings are used in the help output.\n\n /** Automatically updates the generated config when an unknown import path is used during start (default: true). */\n autoUpdateEntries: {\n description:\n 'Automatically updates the generated config when an unknown import path is used during start (default: true).',\n default: true,\n } as Feature,\n\n /** Disables the generation of source-maps during build. */\n disableSourceMaps: { description: 'Disables the generation of source-maps during build.' } as Feature,\n\n /** Enabled cloud-hosted application */\n enableCloudHosted: { description: 'Enables cloud-hosted application.' } as Feature,\n\n /**\n * Enables support of import maps for workers.\n * To use this feature, the package with the worker must be bundled with webpack (default: true).\n */\n enableModuleWorkers: {\n description:\n 'Enables support of import maps for workers. To use this feature, the package with the worker must be bundled with webpack (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the use of `@parcel/watcher` for file watching (default: true). */\n enableParcelWatcher: {\n description: 'Enables the use of @parcel/watcher for file watching (default: true).',\n default: true,\n } as Feature,\n\n /**\n * Enables import rewriting for workers instead of using es-module-shims.\n * This makes workers compatible with service workers.\n * Requires enableModuleWorkers to be enabled (default: true).\n */\n rewriteWorkerImports: {\n description:\n 'Enables import rewriting for workers instead of using es-module-shims. This makes workers compatible with service workers and removes runtime overhead. Requires enableModuleWorkers to be enabled (default: true).',\n default: true,\n } as Feature,\n\n /**\n * Enables downloading bundles from remote cache instead of bundling.\n */\n enableRemoteCacheDownloads: {\n description: 'Enables downloading bundles from remote cache instead of bundling.',\n } as Feature,\n\n /**\n * Enables server-side rendering (SSR) for the application, including Node import map support.\n * This is experimental and may not work in all cases.\n */\n enableSSR: {\n description:\n 'Enables server-side rendering (SSR) for the application, including Node import map support. This is experimental and may not work in all cases.',\n } as Feature,\n\n /** Enables the file watcher to be spawned in a forked process (default: true). */\n enableWatcherInFork: {\n description: 'Enables the file watcher to be spawned in a forked process (default: true).',\n default: true,\n } as Feature,\n\n /** Enables shared root file watcher optimization for monorepos. */\n enableWatcherSharedRoot: {\n description: 'Enables shared root file watcher optimization for monorepos.',\n } as Feature,\n\n /** Enables the preemptive enqueueing of dependencies during build. */\n enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' } as Feature,\n\n /** Check for dynamic (async) imports with non-literal paths in bundle output during init. */\n evaluateDynamicImports: {\n description: 'Check for dynamic (async) imports with non-literal paths in bundle output during init.',\n } as Feature,\n\n /** Hot Module Replacement (opt-in, experimental). */\n hmr: {\n description:\n 'Experimental! Hot Module Replacement. Allows modules to be updated at runtime without a full refresh.',\n } as Feature,\n\n /**\n * Excludes unused dependencies in the generated config during an init run.\n * This helps trim the dependency graph, reduce the import map, and speed up performance.\n */\n optimizeDependencies: {\n description:\n // breaking up this string causes an exception in ts-json-schema-generator\n 'Excludes unused dependencies in the generated config during an init run. This helps trim the dependency graph, reduce the import map, and speed up performance.',\n } as Feature,\n\n /** Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true) */\n relativeImportMapPaths: {\n description:\n 'Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true)',\n default: true,\n } as Feature,\n\n /** Creates null entries for unused exports in generated config so that they are not included when bundling. */\n removeUnusedExports: {\n description:\n 'Creates null entries for unused exports in generated config so that they are not included when bundling.',\n } as Feature,\n\n /** @deprecated Removed in favor of `resolve-web-extensions` bundler capability. Enables React Native type resolution of .web.ts extensions. */\n resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' } as Feature,\n\n /** Enables the syncing of bundles. */\n syncBundles: { description: 'Enables the syncing of bundles.' } as Feature,\n\n /** Enables the syncing of internal packages. */\n syncInternalPackages: { description: 'Enables the syncing of internal packages.' } as Feature,\n\n /** Use a single server for both bundles and app assets (default: true). */\n useSingleWebServer: {\n description: 'Use a single server for both bundles and app assets (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the verification of exports during init (default: true). */\n verifyExports: {\n description: 'Enables the verification of exports during init (default: true).',\n default: true,\n } as Feature,\n\n // Please add new features in alphabetical order!\n // Don't forget to add them to the doc site as well!\n};\n\n/**\n * Record of features that are enabled by default.\n */\nexport const defaultFeatures = Object.fromEntries(\n Object.entries(allFeatures)\n .filter(([_, feature]) => feature.default)\n .map(([name]) => [name, true]),\n) as Features;\n"]}
1
+ {"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,8FAA8F;IAE9F,mHAAmH;IACnH,iBAAiB,EAAE;QACjB,WAAW,EACT,8GAA8G;QAChH,OAAO,EAAE,IAAI;KACH;IAEZ,2DAA2D;IAC3D,iBAAiB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IAErG,uCAAuC;IACvC,iBAAiB,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAa;IAElF;;;OAGG;IACH,mBAAmB,EAAE;QACnB,WAAW,EACT,4IAA4I;QAC9I,OAAO,EAAE,IAAI;KACH;IAEZ,8EAA8E;IAC9E,mBAAmB,EAAE;QACnB,WAAW,EAAE,uEAAuE;QACpF,OAAO,EAAE,IAAI;KACH;IAEZ;;;;OAIG;IACH,oBAAoB,EAAE;QACpB,WAAW,EACT,qNAAqN;QACvN,OAAO,EAAE,IAAI;KACH;IAEZ;;OAEG;IACH,0BAA0B,EAAE;QAC1B,WAAW,EAAE,oEAAoE;KACvE;IAEZ;;;OAGG;IACH,SAAS,EAAE;QACT,WAAW,EACT,iJAAiJ;KACzI;IAEZ,mFAAmF;IACnF,mBAAmB,EA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AE,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;KACzC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACrB,CAAC","sourcesContent":["import type { Feature } from './Feature.js';\n\n/**\n * Represents all features that can be enabled or disabled for Cloudpack.\n */\nexport type Features = { [key in keyof typeof allFeatures]?: boolean };\n\n/**\n * All valid feature names.\n */\nexport type FeatureName = keyof typeof allFeatures;\n\n/**\n * A set of options for configuring the experience.\n * Features can be set to true to change the default behavior.\n */\nexport const allFeatures = {\n // The comments provide intellisense, and the description strings are used in the help output.\n\n /** Automatically updates the generated config when an unknown import path is used during start (default: true). */\n autoUpdateEntries: {\n description:\n 'Automatically updates the generated config when an unknown import path is used during start (default: true).',\n default: true,\n } as Feature,\n\n /** Disables the generation of source-maps during build. */\n disableSourceMaps: { description: 'Disables the generation of source-maps during build.' } as Feature,\n\n /** Enabled cloud-hosted application */\n enableCloudHosted: { description: 'Enables cloud-hosted application.' } as Feature,\n\n /**\n * Enables support of import maps for workers.\n * To use this feature, the package with the worker must be bundled with webpack (default: true).\n */\n enableModuleWorkers: {\n description:\n 'Enables support of import maps for workers. To use this feature, the package with the worker must be bundled with webpack (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the use of `@parcel/watcher` for file watching (default: true). */\n enableParcelWatcher: {\n description: 'Enables the use of @parcel/watcher for file watching (default: true).',\n default: true,\n } as Feature,\n\n /**\n * Enables import rewriting for workers instead of using es-module-shims.\n * This makes workers compatible with service workers.\n * Requires enableModuleWorkers to be enabled (default: true).\n */\n rewriteWorkerImports: {\n description:\n 'Enables import rewriting for workers instead of using es-module-shims. This makes workers compatible with service workers and removes runtime overhead. Requires enableModuleWorkers to be enabled (default: true).',\n default: true,\n } as Feature,\n\n /**\n * Enables downloading bundles from remote cache instead of bundling.\n */\n enableRemoteCacheDownloads: {\n description: 'Enables downloading bundles from remote cache instead of bundling.',\n } as Feature,\n\n /**\n * Enables server-side rendering (SSR) for the application, including Node import map support.\n * This is experimental and may not work in all cases.\n */\n enableSSR: {\n description:\n 'Enables server-side rendering (SSR) for the application, including Node import map support. This is experimental and may not work in all cases.',\n } as Feature,\n\n /** Enables the file watcher to be spawned in a forked process (default: true). */\n enableWatcherInFork: {\n description: 'Enables the file watcher to be spawned in a forked process (default: true).',\n default: true,\n } as Feature,\n\n /** Enables shared root file watcher optimization for monorepos. */\n enableWatcherSharedRoot: {\n description: 'Enables shared root file watcher optimization for monorepos.',\n } as Feature,\n\n /** Enables the preemptive enqueueing of dependencies during build. */\n enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' } as Feature,\n\n /** Check for dynamic (async) imports with non-literal paths in bundle output during init. */\n evaluateDynamicImports: {\n description: 'Check for dynamic (async) imports with non-literal paths in bundle output during init.',\n } as Feature,\n\n /** Hot Module Replacement (opt-in, experimental). */\n hmr: {\n description:\n 'Experimental! Hot Module Replacement. Allows modules to be updated at runtime without a full refresh.',\n } as Feature,\n\n /**\n * Excludes unused dependencies in the generated config during an init run.\n * This helps trim the dependency graph, reduce the import map, and speed up performance.\n */\n optimizeDependencies: {\n description:\n // breaking up this string causes an exception in ts-json-schema-generator\n 'Excludes unused dependencies in the generated config during an init run. This helps trim the dependency graph, reduce the import map, and speed up performance.',\n } as Feature,\n\n /** Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true) */\n relativeImportMapPaths: {\n description:\n 'Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true)',\n default: true,\n } as Feature,\n\n /** Creates null entries for unused exports in generated config so that they are not included when bundling. */\n removeUnusedExports: {\n description:\n 'Creates null entries for unused exports in generated config so that they are not included when bundling.',\n } as Feature,\n\n /** @deprecated Removed in favor of `resolve-web-extensions` bundler capability. Enables React Native type resolution of .web.ts extensions. */\n resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' } as Feature,\n\n /** Enables the syncing of bundles. */\n syncBundles: { description: 'Enables the syncing of bundles.' } as Feature,\n\n /** Enables the syncing of internal packages. */\n syncInternalPackages: { description: 'Enables the syncing of internal packages.' } as Feature,\n\n /** Use static analysis instead of bundling during init to determine package imports (experimental). If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning. */\n staticAnalysisInit: {\n description:\n 'Use static analysis instead of bundling during init to determine package imports (experimental). ' +\n 'If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning.',\n } as Feature,\n\n /** Use a single server for both bundles and app assets (default: true). */\n useSingleWebServer: {\n description: 'Use a single server for both bundles and app assets (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the verification of exports during init (default: true). */\n verifyExports: {\n description: 'Enables the verification of exports during init (default: true).',\n default: true,\n } as Feature,\n\n // Please add new features in alphabetical order!\n // Don't forget to add them to the doc site as well!\n};\n\n/**\n * Record of features that are enabled by default.\n */\nexport const defaultFeatures = Object.fromEntries(\n Object.entries(allFeatures)\n .filter(([_, feature]) => feature.default)\n .map(([name]) => [name, true]),\n) as Features;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/common-types",
3
- "version": "0.33.3",
3
+ "version": "0.34.1",
4
4
  "description": "Common types for Cloudpack.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "schema": "cloudpack-scripts schema"
23
23
  },
24
24
  "dependencies": {
25
- "@ms-cloudpack/common-types-browser": "^0.6.5",
25
+ "@ms-cloudpack/common-types-browser": "^0.6.7",
26
26
  "@types/express": "^4.17.16"
27
27
  },
28
28
  "devDependencies": {
@@ -231,6 +231,11 @@
231
231
  "description": "The number of milliseconds of inactivity a server needs to wait for additional incoming data, after it has finished writing the last response, before a socket will be destroyed.",
232
232
  "default": 5000
233
233
  },
234
+ "keepAliveTimeoutBuffer": {
235
+ "type": "number",
236
+ "description": "An additional buffer time added to the `server.keepAliveTimeout` to extend the internal socket timeout.",
237
+ "default": 1000
238
+ },
234
239
  "connectionsCheckingInterval": {
235
240
  "type": "number",
236
241
  "description": "Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.",
@@ -362,7 +367,8 @@
362
367
  },
363
368
  "clientCertEngine": {
364
369
  "type": "string",
365
- "description": "Name of an OpenSSL engine which can provide the client certificate."
370
+ "description": "Name of an OpenSSL engine which can provide the client certificate.",
371
+ "deprecated": true
366
372
  },
367
373
  "crl": {
368
374
  "anyOf": [
@@ -413,11 +419,13 @@
413
419
  },
414
420
  "privateKeyEngine": {
415
421
  "type": "string",
416
- "description": "Name of an OpenSSL engine to get private key from. Should be used together with privateKeyIdentifier."
422
+ "description": "Name of an OpenSSL engine to get private key from. Should be used together with privateKeyIdentifier.",
423
+ "deprecated": true
417
424
  },
418
425
  "privateKeyIdentifier": {
419
426
  "type": "string",
420
- "description": "Identifier of a private key managed by an OpenSSL engine. Should be used together with privateKeyEngine. Should not be set together with key, because both options define a private key in different ways."
427
+ "description": "Identifier of a private key managed by an OpenSSL engine. Should be used together with privateKeyEngine. Should not be set together with key, because both options define a private key in different ways.",
428
+ "deprecated": true
421
429
  },
422
430
  "maxVersion": {
423
431
  "$ref": "#/definitions/SecureVersion",
@@ -509,6 +517,10 @@
509
517
  "type": "boolean",
510
518
  "description": "Indicates whether the socket should be paused on incoming connections.",
511
519
  "default": false
520
+ },
521
+ "blockList": {
522
+ "$ref": "#/definitions/BlockList",
523
+ "description": "`blockList` can be used for disabling inbound access to specific IP addresses, IP ranges, or IP subnets. This does not work if the server is behind a reverse proxy, NAT, etc. because the address checked against the block list is the address of the proxy, or the one specified by the NAT."
512
524
  }
513
525
  },
514
526
  "additionalProperties": false,
@@ -962,7 +974,7 @@
962
974
  "type": "number",
963
975
  "description": "The length of the array."
964
976
  },
965
- "__@toStringTag@1175": {
977
+ "__@toStringTag@1178": {
966
978
  "type": "string",
967
979
  "const": "BigUint64Array"
968
980
  }
@@ -973,7 +985,7 @@
973
985
  "byteLength",
974
986
  "byteOffset",
975
987
  "length",
976
- "__@toStringTag@1175"
988
+ "__@toStringTag@1178"
977
989
  ],
978
990
  "additionalProperties": {
979
991
  "type": "number"
@@ -1013,7 +1025,7 @@
1013
1025
  "type": "number",
1014
1026
  "description": "The length of the array."
1015
1027
  },
1016
- "__@toStringTag@1175": {
1028
+ "__@toStringTag@1178": {
1017
1029
  "type": "string",
1018
1030
  "const": "BigInt64Array"
1019
1031
  }
@@ -1024,7 +1036,7 @@
1024
1036
  "byteLength",
1025
1037
  "byteOffset",
1026
1038
  "length",
1027
- "__@toStringTag@1175"
1039
+ "__@toStringTag@1178"
1028
1040
  ],
1029
1041
  "additionalProperties": {
1030
1042
  "type": "number"
@@ -1125,6 +1137,23 @@
1125
1137
  }
1126
1138
  ]
1127
1139
  },
1140
+ "BlockList": {
1141
+ "type": "object",
1142
+ "properties": {
1143
+ "rules": {
1144
+ "type": "array",
1145
+ "items": {
1146
+ "type": "string"
1147
+ },
1148
+ "description": "The list of rules added to the blocklist."
1149
+ }
1150
+ },
1151
+ "required": [
1152
+ "rules"
1153
+ ],
1154
+ "additionalProperties": false,
1155
+ "description": "The `BlockList` object can be used with some network APIs to specify rules for disabling inbound or outbound access to specific IP addresses, IP ranges, or IP subnets."
1156
+ },
1128
1157
  "ShorthandRoute": {
1129
1158
  "anyOf": [
1130
1159
  {
@@ -1476,6 +1505,9 @@
1476
1505
  "syncInternalPackages": {
1477
1506
  "type": "boolean"
1478
1507
  },
1508
+ "staticAnalysisInit": {
1509
+ "type": "boolean"
1510
+ },
1479
1511
  "useSingleWebServer": {
1480
1512
  "type": "boolean"
1481
1513
  },
@@ -232,6 +232,11 @@
232
232
  "description": "The number of milliseconds of inactivity a server needs to wait for additional incoming data, after it has finished writing the last response, before a socket will be destroyed.",
233
233
  "default": 5000
234
234
  },
235
+ "keepAliveTimeoutBuffer": {
236
+ "type": "number",
237
+ "description": "An additional buffer time added to the `server.keepAliveTimeout` to extend the internal socket timeout.",
238
+ "default": 1000
239
+ },
235
240
  "connectionsCheckingInterval": {
236
241
  "type": "number",
237
242
  "description": "Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.",
@@ -363,7 +368,8 @@
363
368
  },
364
369
  "clientCertEngine": {
365
370
  "type": "string",
366
- "description": "Name of an OpenSSL engine which can provide the client certificate."
371
+ "description": "Name of an OpenSSL engine which can provide the client certificate.",
372
+ "deprecated": true
367
373
  },
368
374
  "crl": {
369
375
  "anyOf": [
@@ -414,11 +420,13 @@
414
420
  },
415
421
  "privateKeyEngine": {
416
422
  "type": "string",
417
- "description": "Name of an OpenSSL engine to get private key from. Should be used together with privateKeyIdentifier."
423
+ "description": "Name of an OpenSSL engine to get private key from. Should be used together with privateKeyIdentifier.",
424
+ "deprecated": true
418
425
  },
419
426
  "privateKeyIdentifier": {
420
427
  "type": "string",
421
- "description": "Identifier of a private key managed by an OpenSSL engine. Should be used together with privateKeyEngine. Should not be set together with key, because both options define a private key in different ways."
428
+ "description": "Identifier of a private key managed by an OpenSSL engine. Should be used together with privateKeyEngine. Should not be set together with key, because both options define a private key in different ways.",
429
+ "deprecated": true
422
430
  },
423
431
  "maxVersion": {
424
432
  "$ref": "#/definitions/SecureVersion",
@@ -510,6 +518,10 @@
510
518
  "type": "boolean",
511
519
  "description": "Indicates whether the socket should be paused on incoming connections.",
512
520
  "default": false
521
+ },
522
+ "blockList": {
523
+ "$ref": "#/definitions/BlockList",
524
+ "description": "`blockList` can be used for disabling inbound access to specific IP addresses, IP ranges, or IP subnets. This does not work if the server is behind a reverse proxy, NAT, etc. because the address checked against the block list is the address of the proxy, or the one specified by the NAT."
513
525
  }
514
526
  },
515
527
  "additionalProperties": false,
@@ -963,7 +975,7 @@
963
975
  "type": "number",
964
976
  "description": "The length of the array."
965
977
  },
966
- "__@toStringTag@1175": {
978
+ "__@toStringTag@1178": {
967
979
  "type": "string",
968
980
  "const": "BigUint64Array"
969
981
  }
@@ -974,7 +986,7 @@
974
986
  "byteLength",
975
987
  "byteOffset",
976
988
  "length",
977
- "__@toStringTag@1175"
989
+ "__@toStringTag@1178"
978
990
  ],
979
991
  "additionalProperties": {
980
992
  "type": "number"
@@ -1014,7 +1026,7 @@
1014
1026
  "type": "number",
1015
1027
  "description": "The length of the array."
1016
1028
  },
1017
- "__@toStringTag@1175": {
1029
+ "__@toStringTag@1178": {
1018
1030
  "type": "string",
1019
1031
  "const": "BigInt64Array"
1020
1032
  }
@@ -1025,7 +1037,7 @@
1025
1037
  "byteLength",
1026
1038
  "byteOffset",
1027
1039
  "length",
1028
- "__@toStringTag@1175"
1040
+ "__@toStringTag@1178"
1029
1041
  ],
1030
1042
  "additionalProperties": {
1031
1043
  "type": "number"
@@ -1126,6 +1138,23 @@
1126
1138
  }
1127
1139
  ]
1128
1140
  },
1141
+ "BlockList": {
1142
+ "type": "object",
1143
+ "properties": {
1144
+ "rules": {
1145
+ "type": "array",
1146
+ "items": {
1147
+ "type": "string"
1148
+ },
1149
+ "description": "The list of rules added to the blocklist."
1150
+ }
1151
+ },
1152
+ "required": [
1153
+ "rules"
1154
+ ],
1155
+ "additionalProperties": false,
1156
+ "description": "The `BlockList` object can be used with some network APIs to specify rules for disabling inbound or outbound access to specific IP addresses, IP ranges, or IP subnets."
1157
+ },
1129
1158
  "ShorthandRoute": {
1130
1159
  "anyOf": [
1131
1160
  {
@@ -1477,6 +1506,9 @@
1477
1506
  "syncInternalPackages": {
1478
1507
  "type": "boolean"
1479
1508
  },
1509
+ "staticAnalysisInit": {
1510
+ "type": "boolean"
1511
+ },
1480
1512
  "useSingleWebServer": {
1481
1513
  "type": "boolean"
1482
1514
  },