build: add skip_apidoc_files and include QUIC
PR-URL: https://github.com/nodejs/node/pull/56941 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
parent
b755ae1fe7
commit
0a4572d6a7
4
Makefile
4
Makefile
@ -780,7 +780,9 @@ test-v8 test-v8-intl test-v8-benchmarks test-v8-all:
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
apidoc_dirs = out/doc out/doc/api out/doc/api/assets
|
apidoc_dirs = out/doc out/doc/api out/doc/api/assets
|
||||||
apidoc_sources = $(wildcard doc/api/*.md)
|
skip_apidoc_files = doc/api/quic.md
|
||||||
|
|
||||||
|
apidoc_sources = $(filter-out $(skip_apidoc_files), $(wildcard doc/api/*.md))
|
||||||
apidocs_html = $(addprefix out/,$(apidoc_sources:.md=.html))
|
apidocs_html = $(addprefix out/,$(apidoc_sources:.md=.html))
|
||||||
apidocs_json = $(addprefix out/,$(apidoc_sources:.md=.json))
|
apidocs_json = $(addprefix out/,$(apidoc_sources:.md=.json))
|
||||||
|
|
||||||
|
@ -993,14 +993,6 @@ If the ES module being `require()`'d contains top-level `await`, this flag
|
|||||||
allows Node.js to evaluate the module, try to locate the
|
allows Node.js to evaluate the module, try to locate the
|
||||||
top-level awaits, and print their location to help users find them.
|
top-level awaits, and print their location to help users find them.
|
||||||
|
|
||||||
### `--experimental-quic`
|
|
||||||
|
|
||||||
<!--
|
|
||||||
added: v23.8.0
|
|
||||||
-->
|
|
||||||
|
|
||||||
Enables the experimental `node:quic` built-in module.
|
|
||||||
|
|
||||||
### `--experimental-require-module`
|
### `--experimental-require-module`
|
||||||
|
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
@ -3203,7 +3195,6 @@ one is included in the list below.
|
|||||||
* `--experimental-loader`
|
* `--experimental-loader`
|
||||||
* `--experimental-modules`
|
* `--experimental-modules`
|
||||||
* `--experimental-print-required-tla`
|
* `--experimental-print-required-tla`
|
||||||
* `--experimental-quic`
|
|
||||||
* `--experimental-require-module`
|
* `--experimental-require-module`
|
||||||
* `--experimental-shadow-realm`
|
* `--experimental-shadow-realm`
|
||||||
* `--experimental-specifier-resolution`
|
* `--experimental-specifier-resolution`
|
||||||
|
@ -14,6 +14,10 @@ application usage.
|
|||||||
|
|
||||||
Enables debugging of `ArrayBuffer` allocations.
|
Enables debugging of `ArrayBuffer` allocations.
|
||||||
|
|
||||||
|
#### `--experimental-quic`
|
||||||
|
|
||||||
|
Enable QUIC Protocol (under development)
|
||||||
|
|
||||||
#### `--expose-internals`
|
#### `--expose-internals`
|
||||||
|
|
||||||
Allows the usage of `internal/*` modules, granting access to internal Node.js functionality.
|
Allows the usage of `internal/*` modules, granting access to internal Node.js functionality.
|
||||||
|
@ -442,7 +442,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
|
|||||||
kAllowedInEnvvar,
|
kAllowedInEnvvar,
|
||||||
true);
|
true);
|
||||||
AddOption("--experimental-quic",
|
AddOption("--experimental-quic",
|
||||||
"experimental QUIC API",
|
"" /* undocumented until its development */,
|
||||||
&EnvironmentOptions::experimental_quic,
|
&EnvironmentOptions::experimental_quic,
|
||||||
kAllowedInEnvvar);
|
kAllowedInEnvvar);
|
||||||
AddOption("--experimental-webstorage",
|
AddOption("--experimental-webstorage",
|
||||||
|
@ -46,9 +46,11 @@ const expectedJsons = linkedHtmls
|
|||||||
.map((name) => name.replace('.html', '.json'));
|
.map((name) => name.replace('.html', '.json'));
|
||||||
const expectedDocs = linkedHtmls.concat(expectedJsons);
|
const expectedDocs = linkedHtmls.concat(expectedJsons);
|
||||||
const renamedDocs = ['policy.json', 'policy.html'];
|
const renamedDocs = ['policy.json', 'policy.html'];
|
||||||
|
const skipedDocs = ['quic.json', 'quic.html'];
|
||||||
|
|
||||||
// Test that all the relative links in the TOC match to the actual documents.
|
// Test that all the relative links in the TOC match to the actual documents.
|
||||||
for (const expectedDoc of expectedDocs) {
|
for (const expectedDoc of expectedDocs) {
|
||||||
|
if (skipedDocs.includes(expectedDoc)) continue;
|
||||||
assert.ok(actualDocs.includes(expectedDoc), `${expectedDoc} does not exist`);
|
assert.ok(actualDocs.includes(expectedDoc), `${expectedDoc} does not exist`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,7 +101,8 @@ for (const [, envVar, config] of nodeOptionsCC.matchAll(addOptionRE)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NODE_OPTIONS
|
// NODE_OPTIONS
|
||||||
if (isInNodeOption && !hasTrueAsDefaultValue && new RegExp(`\`${envVar}\``).test(nodeOptionsText) === false) {
|
if (isInNodeOption && !hasTrueAsDefaultValue &&
|
||||||
|
new RegExp(`\`${envVar}\``).test(nodeOptionsText) === false) {
|
||||||
assert(false, `Should have option ${envVar} in NODE_OPTIONS documented`);
|
assert(false, `Should have option ${envVar} in NODE_OPTIONS documented`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,6 +125,8 @@ assert(undocumented.delete('--verify-base-objects'));
|
|||||||
assert(undocumented.delete('--no-verify-base-objects'));
|
assert(undocumented.delete('--no-verify-base-objects'));
|
||||||
assert(undocumented.delete('--trace-promises'));
|
assert(undocumented.delete('--trace-promises'));
|
||||||
assert(undocumented.delete('--no-trace-promises'));
|
assert(undocumented.delete('--no-trace-promises'));
|
||||||
|
assert(undocumented.delete('--experimental-quic'));
|
||||||
|
assert(undocumented.delete('--no-experimental-quic'));
|
||||||
|
|
||||||
// Remove negated versions of the flags.
|
// Remove negated versions of the flags.
|
||||||
for (const flag of undocumented) {
|
for (const flag of undocumented) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user