Skip to content

Commit 357ef37

Browse files
committed
doc: add doc-only deprecation for toUSVString
1 parent c2381ae commit 357ef37

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

doc/api/deprecations.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3360,6 +3360,21 @@ Type: Runtime
33603360
In a future version of Node.js, the `asyncResource` property will no longer
33613361
be added when a function is bound to an `AsyncResource`.
33623362

3363+
### DEP0173: `util.toUSVString`
3364+
3365+
<!-- YAML
3366+
changes:
3367+
- version: REPLACEME
3368+
pr-url: https://github.com/nodejs/node/pull/47342
3369+
description: Documentation-only deprecation.
3370+
-->
3371+
3372+
Type: Documentation-only
3373+
3374+
[`util.toUSVString()`][] is replaced with [`String.prototype.toWellFormed`][]
3375+
after V8 11.3. It is recommended to use the built-in function for performance
3376+
reasons.
3377+
33633378
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
33643379
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
33653380
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3382,6 +3397,7 @@ be added when a function is bound to an `AsyncResource`.
33823397
[`Server.getConnections()`]: net.md#servergetconnectionscallback
33833398
[`Server.listen({fd: <number>})`]: net.md#serverlistenhandle-backlog-callback
33843399
[`SlowBuffer`]: buffer.md#class-slowbuffer
3400+
[`String.prototype.toWellFormed`]: https://chromestatus.com/feature/5200195346759680
33853401
[`WriteStream.open()`]: fs.md#class-fswritestream
33863402
[`assert`]: assert.md
33873403
[`asyncResource.runInAsyncScope()`]: async_context.md#asyncresourceruninasyncscopefn-thisarg-args
@@ -3498,6 +3514,7 @@ be added when a function is bound to an `AsyncResource`.
34983514
[`util.isSymbol()`]: util.md#utilissymbolobject
34993515
[`util.isUndefined()`]: util.md#utilisundefinedobject
35003516
[`util.log()`]: util.md#utillogstring
3517+
[`util.toUSVString()`]: util.md#utiltousvstringstring
35013518
[`util.types`]: util.md#utiltypes
35023519
[`util`]: util.md
35033520
[`worker.exitedAfterDisconnect`]: cluster.md#workerexitedafterdisconnect

0 commit comments

Comments
 (0)