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

feat(node:dns): polyfill node:dns module #196

Merged
merged 2 commits into from
May 23, 2024
Merged

feat(node:dns): polyfill node:dns module #196

merged 2 commits into from
May 23, 2024

Conversation

jculvey
Copy link
Collaborator

@jculvey jculvey commented May 22, 2024

Replaces the current auto-mocking of 'dns' to support destructured ESM imports and allow for functional polyfill coverage in the future.

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Adds a polyfill for the node:dns module.

Also moves the helpful notImplementedAsync helper to utils from fs so that it can be reused.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Replaces the current auto-mocking of 'dns' to support destructured ESM imports and allow for functional polyfill coverage in the future.
@jculvey jculvey requested review from IgorMinar and pi0 May 22, 2024 18:57
Copy link
Collaborator

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you, James!

src/runtime/node/dns/index.ts Outdated Show resolved Hide resolved
@jculvey jculvey requested a review from pi0 May 22, 2024 22:23
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

πŸ’―

@pi0 pi0 merged commit 16a8951 into main May 23, 2024
2 checks passed
@pi0 pi0 deleted the polyfill-dns branch May 23, 2024 11:00
@pi0
Copy link
Member

pi0 commented May 23, 2024

Crazy idea: #198

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.

3 participants