File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2030,12 +2030,15 @@ or `module.exports` instead.
2030
2030
2031
2031
<!-- YAML
2032
2032
changes:
2033
+ - version: REPLACEME
2034
+ pr-url: https://github.com/nodejs/node/pull/55019
2035
+ description: Runtime deprecation
2033
2036
- version: v10.0.0
2034
2037
pr-url: https://github.com/nodejs/node/pull/18335
2035
2038
description: Documentation-only deprecation.
2036
2039
-->
2037
2040
2038
- Type: Documentation-only
2041
+ Type: Runtime
2039
2042
2040
2043
The [ ` crypto.fips ` ] [ ] property is deprecated. Please use ` crypto.setFips() `
2041
2044
and ` crypto.getFips() ` instead.
Original file line number Diff line number Diff line change @@ -330,11 +330,12 @@ function getRandomBytesAlias(key) {
330
330
}
331
331
332
332
ObjectDefineProperties ( module . exports , {
333
- // crypto.fips is deprecated. DEP0093. Use crypto.getFips()/crypto.setFips()
334
333
fips : {
335
334
__proto__ : null ,
336
- get : getFips ,
337
- set : setFips ,
335
+ get : deprecate ( getFips , 'The crypto.fips is deprecated. ' +
336
+ 'DEP0093. Please use crypto.getFips()' , 'DEP0093' ) ,
337
+ set : deprecate ( setFips , 'The crypto.fips is deprecated. ' +
338
+ 'DEP0093. Please use crypto.setFips()' , 'DEP0093' ) ,
338
339
} ,
339
340
constants : {
340
341
__proto__ : null ,
You can’t perform that action at this time.
0 commit comments