Filip Skokan committed 2026-10-25 22:36:36 +01:00
1 parent 21cfb2a4ad
commit fb8d52d75a
4 files changed
+6 -23

No files matched your search

-12
View File
@@ -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
+5 -3
View File
@@ -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
-7
View File
@@ -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,
+1 -1
View File
@@ -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.