summaryrefslogtreecommitdiff
path: root/doc/api/deprecations.md
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-09-22 11:45:42 +0200
committerAnna Henningsen <anna@addaleax.net>2018-09-27 08:43:05 -0400
commit709b3b1e1c75afe6b5dd9d7859d0142dd4d20e5c (patch)
tree70cd237b1f9f8ca4a2d5f02cb84f2dc046947041 /doc/api/deprecations.md
parenteccc65919a6dc9a05936e070181a16604ba346e6 (diff)
downloadandroid-node-v8-709b3b1e1c75afe6b5dd9d7859d0142dd4d20e5c.tar.gz
android-node-v8-709b3b1e1c75afe6b5dd9d7859d0142dd4d20e5c.tar.bz2
android-node-v8-709b3b1e1c75afe6b5dd9d7859d0142dd4d20e5c.zip
crypto: downgrade DEP0115 to `--pending-deprecation` only
Aliases are very cheap to maintain, so an unconditional runtime deprecation that affects existing ecosystem code is not a good idea. This commit turns the runtime deprecation into a `--pending-deprecation` one. Fixes: https://github.com/nodejs/node/issues/23013 PR-URL: https://github.com/nodejs/node/pull/23017 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/deprecations.md')
-rw-r--r--doc/api/deprecations.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md
index 9f1b3c0b70..dc12efb906 100644
--- a/doc/api/deprecations.md
+++ b/doc/api/deprecations.md
@@ -2167,16 +2167,19 @@ of Node.js core and will be removed in the future.
<!-- YAML
changes:
- version: REPLACEME
- pr-url: https://github.com/nodejs/node/pull/22519
- description: Runtime deprecation.
+ pr-url:
+ - https://github.com/nodejs/node/pull/22519
+ - https://github.com/nodejs/node/pull/23017
+ description: Added documentation-only deprecation
+ with `--pending-deprecation` support.
-->
-Type: Runtime
+Type: Documentation-only (supports [`--pending-deprecation`][])
In recent versions of Node.js, there is no difference between
[`crypto.randomBytes()`][] and `crypto.pseudoRandomBytes()`. The latter is
deprecated along with the undocumented aliases `crypto.prng()` and
-`crypto.rng()` in favor of [`crypto.randomBytes()`][] and will be removed in a
+`crypto.rng()` in favor of [`crypto.randomBytes()`][] and may be removed in a
future release.
<a id="DEP0116"></a>