Skip to content

Commit 2ea4d98

Browse files
anonrigaduh95targos
committed
doc: deprecate util.toUSVString
Co-authored-by: Antoine du Hamel <[email protected]> Co-authored-by: Michaël Zasso <[email protected]>
1 parent 346abdd commit 2ea4d98

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/api/deprecations.md

+16
Original file line numberDiff line numberDiff line change
@@ -3400,6 +3400,20 @@ Type: Runtime
34003400
Calling [`util.promisify`][] on a function that returns a <Promise> will ignore
34013401
the result of said promise, which can lead to unhandled promise rejections.
34023402

3403+
### DEP0175: `util.toUSVString`
3404+
3405+
<!-- YAML
3406+
changes:
3407+
- version: REPLACEME
3408+
pr-url: https://github.com/nodejs/node/pull/49725
3409+
description: Documentation-only deprecation.
3410+
-->
3411+
3412+
Type: Documentation-only
3413+
3414+
The [`util.toUSVString()`][] API is deprecated. Please use
3415+
[`String.prototype.toWellFormed`][] instead.
3416+
34033417
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
34043418
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
34053419
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3422,6 +3436,7 @@ the result of said promise, which can lead to unhandled promise rejections.
34223436
[`Server.getConnections()`]: net.md#servergetconnectionscallback
34233437
[`Server.listen({fd: <number>})`]: net.md#serverlistenhandle-backlog-callback
34243438
[`SlowBuffer`]: buffer.md#class-slowbuffer
3439+
[`String.prototype.toWellFormed`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toWellFormed
34253440
[`WriteStream.open()`]: fs.md#class-fswritestream
34263441
[`assert.CallTracker`]: assert.md#class-assertcalltracker
34273442
[`assert`]: assert.md
@@ -3541,6 +3556,7 @@ the result of said promise, which can lead to unhandled promise rejections.
35413556
[`util.isUndefined()`]: util.md#utilisundefinedobject
35423557
[`util.log()`]: util.md#utillogstring
35433558
[`util.promisify`]: util.md#utilpromisifyoriginal
3559+
[`util.toUSVString()`]: util.md#utiltousvstringstring
35443560
[`util.types`]: util.md#utiltypes
35453561
[`util`]: util.md
35463562
[`worker.exitedAfterDisconnect`]: cluster.md#workerexitedafterdisconnect

0 commit comments

Comments
 (0)