Skip to content

Commit

Permalink
doc: add doc-only deprecation for toUSVString
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Mar 31, 2023
1 parent 80a3312 commit b8411ac
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3360,6 +3360,21 @@ Type: Runtime
In a future version of Node.js, the `asyncResource` property will no longer
be added when a function is bound to an `AsyncResource`.

### DEP0173: `util.toUSVString`

<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/47342
description: Documentation-only deprecation.
-->

Type: Documentation-only

[`util.toUSVString()`][] is replaced with [`String.prototype.toWellFormed`][]
after V8 11.3. It is recommended to use the built-in function for performance
reasons.

[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
Expand All @@ -3382,6 +3397,7 @@ be added when a function is bound to an `AsyncResource`.
[`Server.getConnections()`]: net.md#servergetconnectionscallback
[`Server.listen({fd: <number>})`]: net.md#serverlistenhandle-backlog-callback
[`SlowBuffer`]: buffer.md#class-slowbuffer
[`String.prototype.toWellFormed`]: https://chromestatus.com/feature/5200195346759680
[`WriteStream.open()`]: fs.md#class-fswritestream
[`assert`]: assert.md
[`asyncResource.runInAsyncScope()`]: async_context.md#asyncresourceruninasyncscopefn-thisarg-args
Expand Down Expand Up @@ -3498,6 +3514,7 @@ be added when a function is bound to an `AsyncResource`.
[`util.isSymbol()`]: util.md#utilissymbolobject
[`util.isUndefined()`]: util.md#utilisundefinedobject
[`util.log()`]: util.md#utillogstring
[`util.toUSVString()`]: util.md#utiltousvstringstring
[`util.types`]: util.md#utiltypes
[`util`]: util.md
[`worker.exitedAfterDisconnect`]: cluster.md#workerexitedafterdisconnect
Expand Down

0 comments on commit b8411ac

Please sign in to comment.