Skip to content

fix(types): add missing DNS interceptor#4024

Merged
mcollina merged 2 commits intonodejs:v6.xfrom
slagiewka:dns_interceptor_type
Feb 16, 2025
Merged

fix(types): add missing DNS interceptor#4024
mcollina merged 2 commits intonodejs:v6.xfrom
slagiewka:dns_interceptor_type

Conversation

@slagiewka
Copy link

This relates to...

#3684 has backported the DNS interceptor from #3490. However, the func that is exported, was not added to TypeScript defs. Opts and return type were added with the backport already.

Rationale

Allow v6 + TS users to hook the DNS interceptor in.

Changes

Features

Bug Fixes

fix(types): add missing DNS interceptor

Breaking Changes and Deprecations

Status

nodejs#3684 has backported the DNS interceptor from nodejs#3490. However, the func that is exported, was not added to TypeScript defs. Co-authored-by: Carlos Fuentes <me@metcoder.dev>
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina
Copy link
Member

Can you add a test for this? we use tsd.

@slagiewka
Copy link
Author

Can you add a test for this? we use tsd.

Added. I wasn't sure how it's supposed to be tested (or where). It could be both tested in dispatcher tests, where compose is mentioned with on-the-fly interceptors or here in interceptor test.

Please bear in mind, that the interceptor type test is gone in v7 branch (#3815).

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit a0e76c7 into nodejs:v6.x Feb 16, 2025
24 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants