Skip to content

Commit f41893e

Browse files
aduh95jasnell
authored andcommitted
doc: deprecate type coercion for dns.lookup options
PR-URL: #38906 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 58a45e3 commit f41893e

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-nullish non-integer value for `family` option, a non-nullish
2800+
non-number value for `hints` option, a non-nullish non-boolean value for `all`
2801+
option, or a non-nullish non-boolean value for `verbatim` option in
2802+
[`dns.lookup()`][] and [`dnsPromises.lookup()`][] is 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)