From a5dd057540b14fd91e9491540fb28ba78447d571 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Thu, 21 Sep 2023 16:28:18 -0400 Subject: [PATCH] doc: deprecate `util.toUSVString` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Antoine du Hamel Co-authored-by: Michaƫl Zasso PR-URL: https://github.com/nodejs/node/pull/49725 Refs: https://github.com/nodejs/node/pull/47342 Reviewed-By: Robert Nagy Reviewed-By: Antoine du Hamel Reviewed-By: Trivikram Kamat Reviewed-By: Chengzhong Wu Reviewed-By: Rafael Gonzaga Reviewed-By: Luigi Pinca --- doc/api/deprecations.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 07ea8dc7a23d1c..aca38c89379437 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3392,6 +3392,20 @@ Type: Documentation-only Calling [`util.promisify`][] on a function that returns a will ignore the result of said promise, which can lead to unhandled promise rejections. +### DEP0175: `util.toUSVString` + + + +Type: Documentation-only + +The [`util.toUSVString()`][] API is deprecated. Please use +[`String.prototype.toWellFormed`][] instead. + [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf [RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3 [RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4 @@ -3414,6 +3428,7 @@ the result of said promise, which can lead to unhandled promise rejections. [`Server.getConnections()`]: net.md#servergetconnectionscallback [`Server.listen({fd: })`]: net.md#serverlistenhandle-backlog-callback [`SlowBuffer`]: buffer.md#class-slowbuffer +[`String.prototype.toWellFormed`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toWellFormed [`WriteStream.open()`]: fs.md#class-fswritestream [`assert.CallTracker`]: assert.md#class-assertcalltracker [`assert`]: assert.md @@ -3533,6 +3548,7 @@ the result of said promise, which can lead to unhandled promise rejections. [`util.isUndefined()`]: util.md#utilisundefinedobject [`util.log()`]: util.md#utillogstring [`util.promisify`]: util.md#utilpromisifyoriginal +[`util.toUSVString()`]: util.md#utiltousvstringstring [`util.types`]: util.md#utiltypes [`util`]: util.md [`worker.exitedAfterDisconnect`]: cluster.md#workerexitedafterdisconnect