Skip to content

Replace deprecated url.parse in proxy resolution - #114

Open
Josh (joshmouch) wants to merge 1 commit into
microsoft:mainfrom
joshmouch:codex/remove-url-parse-deprecation
Open

Replace deprecated url.parse in proxy resolution#114
Josh (joshmouch) wants to merge 1 commit into
microsoft:mainfrom
joshmouch:codex/remove-url-parse-deprecation

Conversation

@joshmouch

Copy link
Copy Markdown

Fixes the DEP0169 warnings emitted by VS Code agent-host and extension-host fetch paths.

The proxy cache already declares scheme://host:port as its key, so this replaces the legacy parser with WHATWG URL and constructs that same cache key from protocol and host.

The regression runs the resolver under --pending-deprecation in an isolated child and fails if DEP0169 is emitted. It fails against current main at src/index.ts:307 and passes with this change.

Verification:

  • Node 22.23.2
  • TypeScript compile with repository dependencies
  • unit tests: 35 passing
  • git diff --check

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.

1 participant