From a665d13ad9fe40092be74d32652c1301b1db7550 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 7 Jan 2019 13:19:49 -0500 Subject: lib: move DEP0028 to end of life MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/25377 Reviewed-By: James M Snell Reviewed-By: Gus Caplan Reviewed-By: Michaël Zasso Reviewed-By: Matteo Collina Reviewed-By: Anna Henningsen Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Ruben Bridgewater --- doc/api/deprecations.md | 9 +++++---- doc/api/util.md | 12 ------------ lib/util.js | 8 -------- test/fixtures/deprecated.js | 8 +++++++- test/parallel/test-util.js | 2 -- test/sequential/test-deprecation-flags.js | 10 ++++------ 6 files changed, 16 insertions(+), 33 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index b6ec7fb721..eef4afdd03 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -611,6 +611,9 @@ Type: End-of-Life ### DEP0028: util.debug() -Type: Runtime +Type: End-of-Life -The [`util.debug()`][] API is deprecated. Please use [`console.error()`][] -instead. +`util.debug()` has been removed. Please use [`console.error()`][] instead. ### DEP0029: util.error() @@ -2395,7 +2397,6 @@ Setting the TLS ServerName to an IP address is not permitted by [`url.parse()`]: url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost [`url.resolve()`]: url.html#url_url_resolve_from_to [`util._extend()`]: util.html#util_util_extend_target_source -[`util.debug()`]: util.html#util_util_debug_string [`util.error()`]: util.html#util_util_error_strings [`util.getSystemErrorName()`]: util.html#util_util_getsystemerrorname_err [`util.inspect()`]: util.html#util_util_inspect_object_options diff --git a/doc/api/util.md b/doc/api/util.md index cdfaf4bdca..e5543d189c 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1714,18 +1714,6 @@ Node.js modules. The community found and used it anyway. It is deprecated and should not be used in new code. JavaScript comes with very similar built-in functionality through [`Object.assign()`]. -### util.debug(string) - - -> Stability: 0 - Deprecated: Use [`console.error()`][] instead. - -* `string` {string} The message to print to `stderr` - -Deprecated predecessor of `console.error`. - ### util.error([...strings])