Skip to content

Commit 2e90b10

Browse files
aduh95targos
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 8460a32 commit 2e90b10

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/api/deprecations.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -2784,7 +2784,7 @@ These properties are now available within the standard `detail` property
27842784
of the `PerformanceEntry` object. The existing accessors have been
27852785
deprecated and should no longer be used.
27862786

2787-
### DEP0153: Non boolean value for `verbatim` DNS lookup option
2787+
### DEP0153: `dns.lookup` and `dnsPromises.lookup` options type coercion
27882788
<!-- YAML
27892789
changes:
27902790
- version: REPLACEME
@@ -2794,8 +2794,10 @@ changes:
27942794

27952795
Type: Documentation-only
27962796

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

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

0 commit comments

Comments
 (0)