From 4b18fa1efb9909136835ad8303314cb536cb8b2e Mon Sep 17 00:00:00 2001 From: James M Snell Date: Wed, 31 Jan 2018 17:50:21 -0800 Subject: [PATCH 1/2] crypto: fix unassignd deprecation code Missed when landing https://github.com/nodejs/node/pull/18333 --- doc/api/deprecations.md | 4 ++-- lib/crypto.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 7bc38cf5b48639..0fb24a38365e9f 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -824,8 +824,8 @@ a future version at which point only authentication tag lengths of 128, 120, is not included in this list will be considered invalid in compliance with [NIST SP 800-38D][]. - -### DEP00XX: crypto.DEFAULT_ENCODING + +### DEP0091: crypto.DEFAULT_ENCODING Type: Runtime diff --git a/lib/crypto.js b/lib/crypto.js index 5983f1db4f54d2..aa6d4f463d7c7e 100644 --- a/lib/crypto.js +++ b/lib/crypto.js @@ -206,9 +206,9 @@ Object.defineProperties(exports, { enumerable: true, configurable: true, get: deprecate(getDefaultEncoding, - 'crypto.DEFAULT_ENCODING is deprecated.', 'DEP00XX'), + 'crypto.DEFAULT_ENCODING is deprecated.', 'DEP0091'), set: deprecate(setDefaultEncoding, - 'crypto.DEFAULT_ENCODING is deprecated.', 'DEP00XX') + 'crypto.DEFAULT_ENCODING is deprecated.', 'DEP0091') }, constants: { configurable: false, From 54562c03fadb6d767b38f0c9928892cdb5a48ddd Mon Sep 17 00:00:00 2001 From: James M Snell Date: Thu, 1 Feb 2018 07:21:39 -0800 Subject: [PATCH 2/2] [Squash] Another one slipped in --- doc/api/deprecations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 0fb24a38365e9f..1f762f3934b5e1 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -831,8 +831,8 @@ Type: Runtime The [`crypto.DEFAULT_ENCODING`][] property is deprecated. - -### DEP00XX: Top-level `this` bound to `module.exports` + +### DEP0092: Top-level `this` bound to `module.exports` Type: Documentation-only