diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-02-22 23:25:59 +0100 |
---|---|---|
committer | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-09-17 15:54:33 +0200 |
commit | 6de2673a9f9420e87066422375278d0156079889 (patch) | |
tree | a7e4648ce93e9093d31a1292692a86585117c129 /doc | |
parent | 572d55645c0bd446e7f88e0f2120e5a115257234 (diff) | |
download | node-new-6de2673a9f9420e87066422375278d0156079889.tar.gz |
lib: enable global WebCrypto by default
Enables `--experimental-global-webcrypto` by default, and ensures that
the classic `node:crypto` core module is still available in `--eval` or
`--print` contexts.
PR-URL: https://github.com/nodejs/node/pull/42083
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/cli.md | 20 | ||||
-rw-r--r-- | doc/api/globals.md | 34 | ||||
-rw-r--r-- | doc/node.1 | 3 |
3 files changed, 37 insertions, 20 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index 18daed918d..b1b0103cfd 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -351,16 +351,6 @@ added: Expose the [CustomEvent Web API][] on the global scope. -### `--experimental-global-webcrypto` - -<!-- YAML -added: - - v17.6.0 - - v16.15.0 ---> - -Expose the [Web Crypto API][] on the global scope. - ### `--experimental-import-meta-resolve` <!-- YAML @@ -413,6 +403,14 @@ added: v18.0.0 Disable experimental support for the [Fetch API][]. +### `--no-experimental-global-webcrypto` + +<!-- YAML +added: REPLACEME +--> + +Disable exposition of [Web Crypto API][] on the global scope. + ### `--no-experimental-repl-await` <!-- YAML @@ -1839,7 +1837,6 @@ Node.js options that are allowed are: * `--enable-source-maps` * `--experimental-abortcontroller` * `--experimental-global-customevent` -* `--experimental-global-webcrypto` * `--experimental-import-meta-resolve` * `--experimental-json-modules` * `--experimental-loader` @@ -1872,6 +1869,7 @@ Node.js options that are allowed are: * `--no-addons` * `--no-deprecation` * `--no-experimental-fetch` +* `--no-experimental-global-webcrypto` * `--no-experimental-repl-await` * `--no-extra-info-on-fatal-exception` * `--no-force-async-hooks-checks` diff --git a/doc/api/globals.md b/doc/api/globals.md index 3e5cbcf7da..71e9a400cb 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -345,10 +345,14 @@ A browser-compatible implementation of [`CountQueuingStrategy`][]. added: - v17.6.0 - v16.15.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/42083 + description: No longer behind `--experimental-global-webcrypto` CLI flag. --> -> Stability: 1 - Experimental. Enable this API with the -> [`--experimental-global-webcrypto`][] CLI flag. +> Stability: 1 - Experimental. Disable this API with the +> [`--no-experimental-global-webcrypto`][] CLI flag. A browser-compatible implementation of {Crypto}. This global is available only if the Node.js binary was compiled with including support for the @@ -360,10 +364,14 @@ only if the Node.js binary was compiled with including support for the added: - v17.6.0 - v16.15.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/42083 + description: No longer behind `--experimental-global-webcrypto` CLI flag. --> -> Stability: 1 - Experimental. Enable this API with the -> [`--experimental-global-webcrypto`][] CLI flag. +> Stability: 1 - Experimental. Disable this API with the +> [`--no-experimental-global-webcrypto`][] CLI flag. A browser-compatible implementation of the [Web Crypto API][]. @@ -373,10 +381,14 @@ A browser-compatible implementation of the [Web Crypto API][]. added: - v17.6.0 - v16.15.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/42083 + description: No longer behind `--experimental-global-webcrypto` CLI flag. --> -> Stability: 1 - Experimental. Enable this API with the -> [`--experimental-global-webcrypto`][] CLI flag. +> Stability: 1 - Experimental. Disable this API with the +> [`--no-experimental-global-webcrypto`][] CLI flag. A browser-compatible implementation of {CryptoKey}. This global is available only if the Node.js binary was compiled with including support for the @@ -725,10 +737,14 @@ The WHATWG [`structuredClone`][] method. added: - v17.6.0 - v16.15.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/42083 + description: No longer behind `--experimental-global-webcrypto` CLI flag. --> -> Stability: 1 - Experimental. Enable this API with the -> [`--experimental-global-webcrypto`][] CLI flag. +> Stability: 1 - Experimental. Disable this API with the +> [`--no-experimental-global-webcrypto`][] CLI flag. A browser-compatible implementation of {SubtleCrypto}. This global is available only if the Node.js binary was compiled with including support for the @@ -870,8 +886,8 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. [Web Crypto API]: webcrypto.md [`--experimental-global-customevent`]: cli.md#--experimental-global-customevent -[`--experimental-global-webcrypto`]: cli.md#--experimental-global-webcrypto [`--no-experimental-fetch`]: cli.md#--no-experimental-fetch +[`--no-experimental-global-webcrypto`]: cli.md#--no-experimental-global-webcrypto [`AbortController`]: https://developer.mozilla.org/en-US/docs/Web/API/AbortController [`ByteLengthQueuingStrategy`]: webstreams.md#class-bytelengthqueuingstrategy [`CompressionStream`]: webstreams.md#class-compressionstream diff --git a/doc/node.1 b/doc/node.1 index 50a80742c4..3e2602673a 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -165,6 +165,9 @@ Use this flag to enable ShadowRealm support. .It Fl -no-experimental-fetch Disable experimental support for the Fetch API. . +.It Fl -no-experimental-global-webcrypto +Disable exposition of the Web Crypto API on the global scope. +. .It Fl -no-experimental-repl-await Disable top-level await keyword support in REPL. . |