feat(dns): added support for a custom lookup function; (#5339)#6
feat(dns): added support for a custom lookup function; (#5339)#6MitchLewis930 wants to merge 1 commit intopr_026_beforefrom
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
PR_026
PR Type
Enhancement
Description
Added support for custom DNS lookup functions in HTTP adapter
Supports both callback-based and async lookup functions
Implemented callbackify helper to convert async functions to callbacks
Added family option for IPv4/IPv6 selection
Comprehensive test coverage and TypeScript type definitions
Diagram Walkthrough
File Walkthrough
http.js
Integrated custom DNS lookup supportlib/adapters/http.js
callbackify.js
New async-to-callback converter utilitylib/helpers/callbackify.js
functions
utils.js
Added function type detection utilitieslib/utils.js
http.js
Added comprehensive DNS lookup teststest/unit/adapters/http.js
returning only IP
index.d.ts
Added DNS lookup TypeScript definitionsindex.d.ts
functions
index.d.cts
Added DNS lookup CommonJS type definitionsindex.d.cts
index.ts
Added DNS lookup TypeScript usage examplestest/module/typings/esm/index.ts
CHANGELOG.md
Fixed file formattingCHANGELOG.md