Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): add missing DNS interceptor #4024

Merged
merged 2 commits into from
Feb 16, 2025

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

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants