@@ -179,6 +179,11 @@ section if a custom port is used.
179
179
<!-- YAML
180
180
added: v0.1.90
181
181
changes:
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`.
182
187
- version: v17.0.0
183
188
pr-url: https://github.com/nodejs/node/pull/39987
184
189
description: The `verbatim` options defaults to `true` now.
@@ -282,6 +287,12 @@ The following flags can be passed as hints to [`dns.lookup()`][].
282
287
283
288
<!-- YAML
284
289
added: 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`.
285
296
-->
286
297
287
298
* ` address ` {string}
@@ -315,6 +326,12 @@ If this method is invoked as its [`util.promisify()`][]ed version, it returns a
315
326
316
327
<!-- YAML
317
328
added: 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`.
318
335
-->
319
336
320
337
* ` hostname ` {string} Host name to resolve.
@@ -351,6 +368,11 @@ On error, `err` is an [`Error`][] object, where `err.code` is one of the
351
368
<!-- YAML
352
369
added: v0.1.16
353
370
changes:
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`.
354
376
- version: v7.2.0
355
377
pr-url: https://github.com/nodejs/node/pull/9296
356
378
description: This method now supports passing `options`,
@@ -377,6 +399,11 @@ will contain an array of IPv4 addresses (e.g.
377
399
<!-- YAML
378
400
added: v0.1.16
379
401
changes:
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`.
380
407
- version: v7.2.0
381
408
pr-url: https://github.com/nodejs/node/pull/9296
382
409
description: This method now supports passing `options`,
@@ -399,6 +426,15 @@ will contain an array of IPv6 addresses.
399
426
400
427
## ` dns.resolveAny(hostname, callback) `
401
428
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
+
402
438
* ` hostname ` {string}
403
439
* ` callback ` {Function}
404
440
* ` err ` {Error}
@@ -451,6 +487,12 @@ queries. It may be better to call individual methods like [`dns.resolve4()`][],
451
487
452
488
<!-- YAML
453
489
added: 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`.
454
496
-->
455
497
456
498
* ` hostname ` {string}
@@ -469,6 +511,12 @@ will contain an array of canonical name records available for the `hostname`
469
511
added:
470
512
- v15.0.0
471
513
- 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`.
472
520
-->
473
521
474
522
* ` hostname ` {string}
@@ -486,6 +534,12 @@ available for the `hostname` (e.g. `[{critical: 0, iodef:
486
534
487
535
<!-- YAML
488
536
added: 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`.
489
543
-->
490
544
491
545
* ` hostname ` {string}
@@ -502,6 +556,12 @@ property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`).
502
556
503
557
<!-- YAML
504
558
added: 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`.
505
565
-->
506
566
507
567
* ` hostname ` {string}
@@ -537,6 +597,12 @@ function will contain an array of objects with the following properties:
537
597
538
598
<!-- YAML
539
599
added: 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`.
540
606
-->
541
607
542
608
* ` hostname ` {string}
@@ -553,6 +619,12 @@ contain an array of name server records available for `hostname`
553
619
554
620
<!-- YAML
555
621
added: 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`.
556
628
-->
557
629
558
630
* ` hostname ` {string}
@@ -568,6 +640,12 @@ be an array of strings containing the reply records.
568
640
569
641
<!-- YAML
570
642
added: 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`.
571
649
-->
572
650
573
651
* ` hostname ` {string}
@@ -605,6 +683,12 @@ be an object with the following properties:
605
683
606
684
<!-- YAML
607
685
added: 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`.
608
692
-->
609
693
610
694
* ` hostname ` {string}
@@ -636,6 +720,12 @@ be an array of objects with the following properties:
636
720
637
721
<!-- YAML
638
722
added: 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`.
639
729
-->
640
730
641
731
<!-- lint disable no-undefined-references list-item-bullet-indent-->
0 commit comments