Skip to content

fix(dns): expose constants and error aliases#3465

Merged
proggeramlug merged 5 commits into
PerryTS:mainfrom
andrewtdiz:codex/node-compat-dns-constants
May 31, 2026
Merged

fix(dns): expose constants and error aliases#3465
proggeramlug merged 5 commits into
PerryTS:mainfrom
andrewtdiz:codex/node-compat-dns-constants

Conversation

@andrewtdiz
Copy link
Copy Markdown
Contributor

Summary

  • expose node:dns lookup flag constants and DNS error aliases
  • expose node:dns/promises error aliases and route dns.promises to that namespace
  • add deterministic DNS constants parity coverage without live DNS resolution

Tests

  • cargo fmt --all -- --check
  • git diff --check
  • ./scripts/check_file_size.sh
  • RUSTC_WRAPPER= cargo test -p perry-codegen --test manifest_consistency
  • RUSTC_WRAPPER= CARGO_TARGET_DIR=/tmp/perry-node-compat-3-target cargo build --release -p perry -p perry-runtime -p perry-stdlib
  • RUSTC_WRAPPER= CARGO_TARGET_DIR=/tmp/perry-node-compat-3-target PERRY_ALLOW_UNIMPLEMENTED=1 /tmp/perry-node-compat-3-target/release/perry test-parity/node-suite/dns/constants/error-aliases.ts -o /tmp/perry_dns_constants_validation
  • diff -u <(node --input-type=module < test-parity/node-suite/dns/constants/error-aliases.ts) <(/tmp/perry_dns_constants_validation)

@andrewtdiz
Copy link
Copy Markdown
Contributor Author

Fixed the API docs drift on this branch.

  • Merged current origin/main through 04d9936e3.
  • Regenerated docs/src/api/reference.md and docs/api/perry.d.ts from the merged branch release binary.
  • The refreshed manifest now includes the dns / dns/promises constant and error-alias surface.
  • Local checks passed: cargo fmt --all -- --check, git diff --check, ./scripts/check_file_size.sh, CARGO_TARGET_DIR=/root/perry/target cargo test -p perry-api-manifest, RUST_TEST_THREADS=1 CARGO_TARGET_DIR=/root/perry/target cargo test -p perry-runtime dns, and CARGO_TARGET_DIR=/root/perry/target cargo test -p perry-hir stable_hash::tests::expr_variant_stable_hash_tags_are_unique.

Ralph Küpper added 2 commits May 31, 2026 08:34
# Conflicts:
#	crates/perry-runtime/src/process.rs
#	docs/api/perry.d.ts
#	docs/src/api/reference.md
# Conflicts:
#	docs/api/perry.d.ts
#	docs/src/api/reference.md
@proggeramlug proggeramlug merged commit f1fea46 into PerryTS:main May 31, 2026
11 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.

2 participants