Skip to content

Commit a5dd057

Browse files
anonrigaduh95targos
authored andcommitted
doc: deprecate util.toUSVString
Co-authored-by: Antoine du Hamel <[email protected]> Co-authored-by: Michaël Zasso <[email protected]> PR-URL: #49725 Refs: #47342 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 58f7a9e commit a5dd057

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
@@ -3392,6 +3392,20 @@ Type: Documentation-only
33923392
Calling [`util.promisify`][] on a function that returns a <Promise> will ignore
33933393
the result of said promise, which can lead to unhandled promise rejections.
33943394

3395+
### DEP0175: `util.toUSVString`
3396+
3397+
<!-- YAML
3398+
changes:
3399+
- version: REPLACEME
3400+
pr-url: https://github.com/nodejs/node/pull/49725
3401+
description: Documentation-only deprecation.
3402+
-->
3403+
3404+
Type: Documentation-only
3405+
3406+
The [`util.toUSVString()`][] API is deprecated. Please use
3407+
[`String.prototype.toWellFormed`][] instead.
3408+
33953409
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
33963410
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
33973411
[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.
34143428
[`Server.getConnections()`]: net.md#servergetconnectionscallback
34153429
[`Server.listen({fd: <number>})`]: net.md#serverlistenhandle-backlog-callback
34163430
[`SlowBuffer`]: buffer.md#class-slowbuffer
3431+
[`String.prototype.toWellFormed`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toWellFormed
34173432
[`WriteStream.open()`]: fs.md#class-fswritestream
34183433
[`assert.CallTracker`]: assert.md#class-assertcalltracker
34193434
[`assert`]: assert.md
@@ -3533,6 +3548,7 @@ the result of said promise, which can lead to unhandled promise rejections.
35333548
[`util.isUndefined()`]: util.md#utilisundefinedobject
35343549
[`util.log()`]: util.md#utillogstring
35353550
[`util.promisify`]: util.md#utilpromisifyoriginal
3551+
[`util.toUSVString()`]: util.md#utiltousvstringstring
35363552
[`util.types`]: util.md#utiltypes
35373553
[`util`]: util.md
35383554
[`worker.exitedAfterDisconnect`]: cluster.md#workerexitedafterdisconnect

0 commit comments

Comments
 (0)