mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
crypto: move DEP0093 to End-of-Life
Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex PR-URL: https://github.com/nodejs/node/pull/64777 Fixes: https://github.com/nodejs/node/issues/56733 Refs: https://github.com/nodejs/node/pull/64211 Refs: https://github.com/nodejs/node/pull/63966 Refs: https://github.com/nodejs/node/pull/53329 Refs: https://github.com/nodejs/node/pull/48950 Refs: https://github.com/nodejs/node/issues/45465 Refs: https://github.com/nodejs/node/issues/42827 Refs: https://github.com/nodejs/node/issues/47076 Refs: https://github.com/nodejs/node/pull/62862 Refs: https://github.com/nodejs/node/pull/38512 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
This commit is contained in:
4 files changed
+6
-23
No files matched your search
@@ -4593,18 +4593,6 @@ passed to [`crypto.createPublicKey()`][].
|
||||
|
||||
If the `callback` function is provided this function uses libuv's threadpool.
|
||||
|
||||
### `crypto.fips`
|
||||
|
||||
<!-- YAML
|
||||
added: v6.0.0
|
||||
deprecated: v10.0.0
|
||||
-->
|
||||
|
||||
> Stability: 0 - Deprecated
|
||||
|
||||
Deprecated property for checking and controlling [FIPS mode][]. Use
|
||||
[`crypto.getFips()`][] and [`crypto.setFips()`][] instead.
|
||||
|
||||
### `crypto.generateKey(type, options, callback)`
|
||||
|
||||
<!-- YAML
|
||||
|
||||
@@ -2232,6 +2232,9 @@ or `module.exports` instead.
|
||||
|
||||
<!-- YAML
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/64777
|
||||
description: End-of-Life.
|
||||
- version: v23.0.0
|
||||
pr-url: https://github.com/nodejs/node/pull/55019
|
||||
description: Runtime deprecation.
|
||||
@@ -2240,9 +2243,9 @@ changes:
|
||||
description: Documentation-only deprecation.
|
||||
-->
|
||||
|
||||
Type: Runtime
|
||||
Type: End-of-Life
|
||||
|
||||
The [`crypto.fips`][] property is deprecated. Please use `crypto.setFips()`
|
||||
The `crypto.fips` property is no longer supported. Use `crypto.setFips()`
|
||||
and `crypto.getFips()` instead.
|
||||
|
||||
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-fips-to-getFips)).
|
||||
@@ -4884,7 +4887,6 @@ Type: Documentation-only
|
||||
[`crypto.createDecipheriv()`]: crypto.md#cryptocreatedecipherivalgorithm-key-iv-options
|
||||
[`crypto.createHash()`]: crypto.md#cryptocreatehashalgorithm-options
|
||||
[`crypto.createHmac()`]: crypto.md#cryptocreatehmacalgorithm-key-options
|
||||
[`crypto.fips`]: crypto.md#cryptofips
|
||||
[`crypto.pbkdf2()`]: crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback
|
||||
[`crypto.randomBytes()`]: crypto.md#cryptorandombytessize-callback
|
||||
[`crypto.scrypt()`]: crypto.md#cryptoscryptpassword-salt-keylen-options-callback
|
||||
|
||||
@@ -352,13 +352,6 @@ function getRandomBytesAlias(key) {
|
||||
}
|
||||
|
||||
ObjectDefineProperties(module.exports, {
|
||||
fips: {
|
||||
__proto__: null,
|
||||
get: deprecate(getFips, 'The crypto.fips is deprecated. ' +
|
||||
'Please use crypto.getFips()', 'DEP0093'),
|
||||
set: deprecate(setFips, 'The crypto.fips is deprecated. ' +
|
||||
'Please use crypto.setFips()', 'DEP0093'),
|
||||
},
|
||||
constants: {
|
||||
__proto__: null,
|
||||
configurable: false,
|
||||
|
||||
@@ -158,5 +158,5 @@ for await (const dirent of await fs.opendir(new URL('../../out/doc/api/', import
|
||||
assert.partialDeepStrictEqual(allExpectedKeys, findAllKeys(json));
|
||||
}
|
||||
|
||||
assert.strictEqual(numberOfDeprecatedSections, 49); // Increase this number every time a new API is deprecated.
|
||||
assert.strictEqual(numberOfDeprecatedSections, 48); // Increase this number every time a new API is deprecated.
|
||||
assert.strictEqual(numberOfRemovedAPIs, 46); // Increase this number every time a section is marked as removed.
|
||||
Reference in new issue
Block a user