Skip to content

Commit a299e9c

Browse files
richardlautargos
authored andcommittedApr 22, 2020
doc: return type of crypto.getFips() may change
Document that the return type of `crypto.getFips()` may change in a future semver-major release from a `number` to a `boolean`. PR-URL: #32580 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Signed-off-by: Richard Lau <riclau@uk.ibm.com>
1 parent 4604127 commit a299e9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎doc/api/crypto.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2274,7 +2274,8 @@ added: v10.0.0
22742274
-->
22752275

22762276
* Returns: {number} `1` if and only if a FIPS compliant crypto provider is
2277-
currently in use, `0` otherwise.
2277+
currently in use, `0` otherwise. A future semver-major release may change
2278+
the return type of this API to a {boolean}.
22782279

22792280
### `crypto.getHashes()`
22802281
<!-- YAML

0 commit comments

Comments
 (0)
Please sign in to comment.