Commit Graph
8 Commits
Author SHA1 Message Date
jake 69f85ee925 feat: add attempt tracking, deadlineMs, and structured error codes
- Resolve `LookupResult` with an `attempts` array describing every network operation (phase, server, duration, error) so failures recovered by fallback remain visible
- Add `deadlineMs` option for a hard cap on total lookup time, distinct from per-operation `timeoutMs` (lowered default from 15 s to 10 s)
- Add `errorCode` (machine-readable `LookupErrorCode`), `errorPhase`, and `errorServer` to `LookupResult`; `timeout` covers both per-op and deadline timeouts, `aborted` means the caller's signal fired
- WHOIS timeouts now distinguish `connect` vs `read` stage and resolve with partial text (marked `partial: true`) when data arrived before the socket stalled
- Drop Node 18 support; minimum engine is now 20
2026-09-18 14:41:16 -04:00
jake 5ff837b2bb chore(deps): update dependencies and build configuration 2026-09-18 14:10:09 -04:00
jake 619185b5d6 Add support for custom fetch function and/or IANA bootstrap data (#21) 2025-10-30 19:07:12 -04:00
jake db96e8d933 Lazy load node:net for improved edge runtime compatibility 2025-10-12 13:52:50 -04:00
jake c76da2bf5c Replaced tsconfig.build.json with tsdown configuration for simplified builds. 2025-09-28 21:30:57 -04:00
jake e1e6d0243a Update project metadata and TypeScript configuration: refine repository details in package.json, simplify tsconfig.build.json, and adjust tsconfig.json for cleaner output settings. 2025-09-24 19:55:48 -04:00
jake e5ec1b488c Update TypeScript configuration and introduce constants: change module resolution to NodeNext, add DEFAULT_TIMEOUT_MS constant for consistent timeout handling across RDAP and WHOIS clients. 2025-09-24 18:53:50 -04:00
jake 33a648460b Core functionality for domain lookup using RDAP and WHOIS protocols, along with utility functions and tests. 2025-09-24 14:28:09 -04:00