@@ -179,6 +179,11 @@ section if a custom port is used.
179179<!-- YAML
180180added: v0.1.90
181181changes:
182+ - version: REPLACEME
183+ pr-url: https://github.com/nodejs/node/pull/41678
184+ description: Passing an invalid callback to the `callback` argument
185+ now throws `ERR_INVALID_ARG_TYPE` instead of
186+ `ERR_INVALID_CALLBACK`.
182187 - version: v17.0.0
183188 pr-url: https://github.com/nodejs/node/pull/39987
184189 description: The `verbatim` options defaults to `true` now.
@@ -282,6 +287,12 @@ The following flags can be passed as hints to [`dns.lookup()`][].
282287
283288<!-- YAML
284289added: v0.11.14
290+ changes:
291+ - version: REPLACEME
292+ pr-url: https://github.com/nodejs/node/pull/41678
293+ description: Passing an invalid callback to the `callback` argument
294+ now throws `ERR_INVALID_ARG_TYPE` instead of
295+ `ERR_INVALID_CALLBACK`.
285296-->
286297
287298* ` address ` {string}
@@ -315,6 +326,12 @@ If this method is invoked as its [`util.promisify()`][]ed version, it returns a
315326
316327<!-- YAML
317328added: v0.1.27
329+ changes:
330+ - - version: REPLACEME
331+ pr-url: https://github.com/nodejs/node/pull/41678
332+ description: Passing an invalid callback to the `callback` argument
333+ now throws `ERR_INVALID_ARG_TYPE` instead of
334+ `ERR_INVALID_CALLBACK`.
318335-->
319336
320337* ` hostname ` {string} Host name to resolve.
@@ -351,6 +368,11 @@ On error, `err` is an [`Error`][] object, where `err.code` is one of the
351368<!-- YAML
352369added: v0.1.16
353370changes:
371+ - version: REPLACEME
372+ pr-url: https://github.com/nodejs/node/pull/41678
373+ description: Passing an invalid callback to the `callback` argument
374+ now throws `ERR_INVALID_ARG_TYPE` instead of
375+ `ERR_INVALID_CALLBACK`.
354376 - version: v7.2.0
355377 pr-url: https://github.com/nodejs/node/pull/9296
356378 description: This method now supports passing `options`,
@@ -377,6 +399,11 @@ will contain an array of IPv4 addresses (e.g.
377399<!-- YAML
378400added: v0.1.16
379401changes:
402+ - version: REPLACEME
403+ pr-url: https://github.com/nodejs/node/pull/41678
404+ description: Passing an invalid callback to the `callback` argument
405+ now throws `ERR_INVALID_ARG_TYPE` instead of
406+ `ERR_INVALID_CALLBACK`.
380407 - version: v7.2.0
381408 pr-url: https://github.com/nodejs/node/pull/9296
382409 description: This method now supports passing `options`,
@@ -399,6 +426,15 @@ will contain an array of IPv6 addresses.
399426
400427## ` dns.resolveAny(hostname, callback) `
401428
429+ <!-- YAML
430+ changes:
431+ - version: REPLACEME
432+ pr-url: https://github.com/nodejs/node/pull/41678
433+ description: Passing an invalid callback to the `callback` argument
434+ now throws `ERR_INVALID_ARG_TYPE` instead of
435+ `ERR_INVALID_CALLBACK`.
436+ -->
437+
402438* ` hostname ` {string}
403439* ` callback ` {Function}
404440 * ` err ` {Error}
@@ -451,6 +487,12 @@ queries. It may be better to call individual methods like [`dns.resolve4()`][],
451487
452488<!-- YAML
453489added: v0.3.2
490+ changes:
491+ - version: REPLACEME
492+ pr-url: https://github.com/nodejs/node/pull/41678
493+ description: Passing an invalid callback to the `callback` argument
494+ now throws `ERR_INVALID_ARG_TYPE` instead of
495+ `ERR_INVALID_CALLBACK`.
454496-->
455497
456498* ` hostname ` {string}
@@ -469,6 +511,12 @@ will contain an array of canonical name records available for the `hostname`
469511added:
470512 - v15.0.0
471513 - v14.17.0
514+ changes:
515+ - version: REPLACEME
516+ pr-url: https://github.com/nodejs/node/pull/41678
517+ description: Passing an invalid callback to the `callback` argument
518+ now throws `ERR_INVALID_ARG_TYPE` instead of
519+ `ERR_INVALID_CALLBACK`.
472520-->
473521
474522* ` hostname ` {string}
@@ -486,6 +534,12 @@ available for the `hostname` (e.g. `[{critical: 0, iodef:
486534
487535<!-- YAML
488536added: v0.1.27
537+ changes:
538+ - version: REPLACEME
539+ pr-url: https://github.com/nodejs/node/pull/41678
540+ description: Passing an invalid callback to the `callback` argument
541+ now throws `ERR_INVALID_ARG_TYPE` instead of
542+ `ERR_INVALID_CALLBACK`.
489543-->
490544
491545* ` hostname ` {string}
@@ -502,6 +556,12 @@ property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`).
502556
503557<!-- YAML
504558added: v0.9.12
559+ changes:
560+ - version: REPLACEME
561+ pr-url: https://github.com/nodejs/node/pull/41678
562+ description: Passing an invalid callback to the `callback` argument
563+ now throws `ERR_INVALID_ARG_TYPE` instead of
564+ `ERR_INVALID_CALLBACK`.
505565-->
506566
507567* ` hostname ` {string}
@@ -537,6 +597,12 @@ function will contain an array of objects with the following properties:
537597
538598<!-- YAML
539599added: v0.1.90
600+ changes:
601+ - version: REPLACEME
602+ pr-url: https://github.com/nodejs/node/pull/41678
603+ description: Passing an invalid callback to the `callback` argument
604+ now throws `ERR_INVALID_ARG_TYPE` instead of
605+ `ERR_INVALID_CALLBACK`.
540606-->
541607
542608* ` hostname ` {string}
@@ -553,6 +619,12 @@ contain an array of name server records available for `hostname`
553619
554620<!-- YAML
555621added: v6.0.0
622+ changes:
623+ - version: REPLACEME
624+ pr-url: https://github.com/nodejs/node/pull/41678
625+ description: Passing an invalid callback to the `callback` argument
626+ now throws `ERR_INVALID_ARG_TYPE` instead of
627+ `ERR_INVALID_CALLBACK`.
556628-->
557629
558630* ` hostname ` {string}
@@ -568,6 +640,12 @@ be an array of strings containing the reply records.
568640
569641<!-- YAML
570642added: v0.11.10
643+ changes:
644+ - version: REPLACEME
645+ pr-url: https://github.com/nodejs/node/pull/41678
646+ description: Passing an invalid callback to the `callback` argument
647+ now throws `ERR_INVALID_ARG_TYPE` instead of
648+ `ERR_INVALID_CALLBACK`.
571649-->
572650
573651* ` hostname ` {string}
@@ -605,6 +683,12 @@ be an object with the following properties:
605683
606684<!-- YAML
607685added: v0.1.27
686+ changes:
687+ - version: REPLACEME
688+ pr-url: https://github.com/nodejs/node/pull/41678
689+ description: Passing an invalid callback to the `callback` argument
690+ now throws `ERR_INVALID_ARG_TYPE` instead of
691+ `ERR_INVALID_CALLBACK`.
608692-->
609693
610694* ` hostname ` {string}
@@ -636,6 +720,12 @@ be an array of objects with the following properties:
636720
637721<!-- YAML
638722added: v0.1.27
723+ changes:
724+ - version: REPLACEME
725+ pr-url: https://github.com/nodejs/node/pull/41678
726+ description: Passing an invalid callback to the `callback` argument
727+ now throws `ERR_INVALID_ARG_TYPE` instead of
728+ `ERR_INVALID_CALLBACK`.
639729-->
640730
641731<!-- lint disable no-undefined-references list-item-bullet-indent-->
0 commit comments