Skip to content

Commit 713319c

Browse files
committed
doc: deprecate type coercion for dns.lookup options
1 parent 9bb3a84 commit 713319c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/api/deprecations.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2786,7 +2786,7 @@ These properties are now available within the standard `detail` property
27862786
of the `PerformanceEntry` object. The existing accessors have been
27872787
deprecated and should no longer be used.
27882788

2789-
### DEP0153: Non boolean value for `verbatim` DNS lookup option
2789+
### DEP0153: `dns.lookup` and `dnsPromises.lookup` options type coercion
27902790
<!-- YAML
27912791
changes:
27922792
- version: REPLACEME
@@ -2796,8 +2796,10 @@ changes:
27962796

27972797
Type: Documentation-only
27982798

2799-
Using a non-boolean value for `verbatim` option in [`dns.lookup()`][] and
2800-
[`dnsPromises.lookup()`][] is deprecated.
2799+
Using a non-integer value for `family` option, a non-number value for `hints`
2800+
option, a non-boolean value for `all` option, or a non-boolean value for
2801+
`verbatim` option in [`dns.lookup()`][] and [`dnsPromises.lookup()`][] is
2802+
deprecated.
28012803

28022804
[Legacy URL API]: url.md#url_legacy_url_api
28032805
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf

0 commit comments

Comments
 (0)