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

doc: add esm examples to node:dns #54172

Merged
merged 2 commits into from
Aug 6, 2024
Merged

Conversation

mfdebian
Copy link
Contributor

@mfdebian mfdebian commented Aug 1, 2024

This PR adds the ESM counterparts of the CJS examples for the DNS documentation.

I've also updated examples like this one to reflect the up-to-date output for the lookup (it's an IPv6 address now).

I've also changed the examples that used example.com for example.org just to be consistent with the rest of the examples and to update the actual response received nowadays.

I've tested every single example and they all work/behave as expected.
Best regards!

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added dns Issues and PRs related to the dns subsystem. doc Issues and PRs related to the documentations. labels Aug 1, 2024
doc/api/dns.md Outdated Show resolved Hide resolved
doc/api/dns.md Outdated Show resolved Hide resolved
doc/api/dns.md Outdated Show resolved Hide resolved
doc/api/dns.md Outdated Show resolved Hide resolved
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Aug 6, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 6, 2024
@nodejs-github-bot nodejs-github-bot merged commit e2c6220 into nodejs:main Aug 6, 2024
22 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in e2c6220

@mfdebian mfdebian deleted the docs-dns-esm branch August 9, 2024 22:08
targos pushed a commit that referenced this pull request Aug 14, 2024
PR-URL: #54172
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@RafaelGSS RafaelGSS mentioned this pull request Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. dns Issues and PRs related to the dns subsystem. doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants