Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2021-06-11 17:26:17 +0300
committerJames M Snell <jasnell@gmail.com>2021-08-17 20:20:06 +0300
commitf41893ee85dcfb8ae8e81b629bc89ad7e9622347 (patch)
tree793608e68cb58342dad71965d5c187b1fb982e7c /doc/api
parent58a45e3c9172f9bf0307471f939906be420166b6 (diff)
doc: deprecate type coercion for `dns.lookup` options
PR-URL: https://github.com/nodejs/node/pull/38906 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/deprecations.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md
index 72749a0b4f6..0c1a7be2a60 100644
--- a/doc/api/deprecations.md
+++ b/doc/api/deprecations.md
@@ -2786,7 +2786,7 @@ These properties are now available within the standard `detail` property
of the `PerformanceEntry` object. The existing accessors have been
deprecated and should no longer be used.
-### DEP0153: Non boolean value for `verbatim` DNS lookup option
+### DEP0153: `dns.lookup` and `dnsPromises.lookup` options type coercion
<!-- YAML
changes:
- version: REPLACEME
@@ -2796,8 +2796,10 @@ changes:
Type: Documentation-only
-Using a non-boolean value for `verbatim` option in [`dns.lookup()`][] and
-[`dnsPromises.lookup()`][] is deprecated.
+Using a non-nullish non-integer value for `family` option, a non-nullish
+non-number value for `hints` option, a non-nullish non-boolean value for `all`
+option, or a non-nullish non-boolean value for `verbatim` option in
+[`dns.lookup()`][] and [`dnsPromises.lookup()`][] is deprecated.
[Legacy URL API]: url.md#url_legacy_url_api
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf