Skip to content

Commit 92fef82

Browse files
committed
crypto: move DEP0093 to End-of-Life
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
1 parent 3660b80 commit 92fef82

3 files changed

Lines changed: 5 additions & 22 deletions

File tree

doc/api/crypto.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4328,18 +4328,6 @@ passed to [`crypto.createPublicKey()`][].
43284328

43294329
If the `callback` function is provided this function uses libuv's threadpool.
43304330

4331-
### `crypto.fips`
4332-
4333-
<!-- YAML
4334-
added: v6.0.0
4335-
deprecated: v10.0.0
4336-
-->
4337-
4338-
> Stability: 0 - Deprecated
4339-
4340-
Deprecated property for checking and controlling [FIPS mode][]. Use
4341-
[`crypto.getFips()`][] and [`crypto.setFips()`][] instead.
4342-
43434331
### `crypto.generateKey(type, options, callback)`
43444332

43454333
<!-- YAML

doc/api/deprecations.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,6 +2228,9 @@ or `module.exports` instead.
22282228

22292229
<!-- YAML
22302230
changes:
2231+
- version: REPLACEME
2232+
pr-url: https://github.com/nodejs/node/pull/64777
2233+
description: End-of-Life.
22312234
- version: v23.0.0
22322235
pr-url: https://github.com/nodejs/node/pull/55019
22332236
description: Runtime deprecation.
@@ -2236,9 +2239,9 @@ changes:
22362239
description: Documentation-only deprecation.
22372240
-->
22382241

2239-
Type: Runtime
2242+
Type: End-of-Life
22402243

2241-
The [`crypto.fips`][] property is deprecated. Please use `crypto.setFips()`
2244+
The `crypto.fips` property is no longer supported. Use `crypto.setFips()`
22422245
and `crypto.getFips()` instead.
22432246

22442247
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-fips-to-getFips)).
@@ -4759,7 +4762,6 @@ calling or overriding `_listen2`.
47594762
[`crypto.createDecipheriv()`]: crypto.md#cryptocreatedecipherivalgorithm-key-iv-options
47604763
[`crypto.createHash()`]: crypto.md#cryptocreatehashalgorithm-options
47614764
[`crypto.createHmac()`]: crypto.md#cryptocreatehmacalgorithm-key-options
4762-
[`crypto.fips`]: crypto.md#cryptofips
47634765
[`crypto.pbkdf2()`]: crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback
47644766
[`crypto.randomBytes()`]: crypto.md#cryptorandombytessize-callback
47654767
[`crypto.scrypt()`]: crypto.md#cryptoscryptpassword-salt-keylen-options-callback

lib/crypto.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,6 @@ function getRandomBytesAlias(key) {
340340
}
341341

342342
ObjectDefineProperties(module.exports, {
343-
fips: {
344-
__proto__: null,
345-
get: deprecate(getFips, 'The crypto.fips is deprecated. ' +
346-
'Please use crypto.getFips()', 'DEP0093'),
347-
set: deprecate(setFips, 'The crypto.fips is deprecated. ' +
348-
'Please use crypto.setFips()', 'DEP0093'),
349-
},
350343
constants: {
351344
__proto__: null,
352345
configurable: false,

0 commit comments

Comments
 (0)