Files
bun.sh/test/js
Claude Bot 6761760459 fix(node:url): preserve credentials in url.format() for WHATWG URLs
`url.format()` was stripping username and password credentials from WHATWG
`URL` objects because it was using `Url.prototype.format` which looks for
`this.auth`, but WHATWG URLs store credentials in `username`/`password`.

This fix adds a dedicated `formatWhatwgUrl()` function that properly handles
WHATWG URL objects and supports all format options: `auth`, `fragment`,
`search`, and `unicode`.

Fixes #24343

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 21:58:18 +00:00
..