Skip to content

Add dns/promises externs#219

Merged
kevinresol merged 5 commits into
HaxeFoundation:masterfrom
kevinresol:feat/dns-promises
Jul 14, 2026
Merged

Add dns/promises externs#219
kevinresol merged 5 commits into
HaxeFoundation:masterfrom
kevinresol:feat/dns-promises

Conversation

@kevinresol

@kevinresol kevinresol commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Align js.node.Dns with the Node.js 24 LTS dns API: ALL, lookup order/verbatim, resolveAny/resolveCaa/resolveNaptr/resolveTlsa, resolve4/resolve6 TTL options, getDefaultResultOrder/setDefaultResultOrder, and related record typedefs
  • Expand js.node.DnsPromises (@:jsRequire("dns/promises")) to the matching promise surface
  • Add js.node.dns.Resolver and js.node.dns.PromisesResolver, exposed via Dns.Resolver / DnsPromises.Resolver

Test plan

  • haxe build.hxml succeeds
  • Spot-checked exported keys against Node v24.18.0 (dns / dns/promises / Resolver)
  • Spot-check resolve helpers against Node 24 dns docs

kevinresol and others added 5 commits July 13, 2026 23:57
Thin Promise wrappers mirroring the existing Dns callback API.

Co-authored-by: Cursor <cursoragent@cursor.com>
Those flags are undefined on dns/promises; document using Dns.* and note intentional API gaps.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add missing resolve helpers, result-order APIs, TTL options, Resolver classes, and shared record typedefs so callback and promise surfaces match.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol kevinresol merged commit 59b2280 into HaxeFoundation:master Jul 14, 2026
10 checks passed
@kevinresol kevinresol deleted the feat/dns-promises branch July 15, 2026 01:01
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.

1 participant