From 028de37d063af88fde0471d2f870e4128f6d3625 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Thu, 2 Jan 2020 13:42:50 -0800 Subject: [PATCH 1/2] crypto: move pbkdf2 without digest to EOL API has been being incrementally deprecated since 6.0.0 --- doc/api/deprecations.md | 9 +++++++-- lib/internal/crypto/pbkdf2.js | 12 ++---------- test/parallel/test-crypto-pbkdf2.js | 19 +++++++++++-------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index f6fec7d1ba0f61..61669b72001cc1 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -233,6 +233,9 @@ to the `constants` property exposed by the relevant module. For instance, ### DEP0009: `crypto.pbkdf2` without digest -Type: Runtime +Type: End-of-Life Use of the [`crypto.pbkdf2()`][] API without specifying a digest was deprecated in Node.js 6.0 because the method defaulted to using the non-recommended @@ -256,9 +259,11 @@ Node.js 8.0.0, calling `crypto.pbkdf2()` or `crypto.pbkdf2Sync()` with `digest` set to `undefined` will throw a `TypeError`. Beginning in Node.js v11.0.0, calling these functions with `digest` set to -`null` will print a deprecation warning to align with the behavior when `digest` +`null` would print a deprecation warning to align with the behavior when `digest` is `undefined`. +Now, however, passing either `undefined` or `null` will throw a `TypeError`. + ### DEP0010: `crypto.createCredentials`