Skip to content

Stop using the deprecated url.parse - #168

Merged
soulgalore merged 1 commit into
mainfrom
replace-url-parse
Nov 3, 2026
Merged

soulgalore merged 1 commit into
mainfrom
replace-url-parse

Conversation

@soulgalore

Copy link
Copy Markdown
Member

Node.js 24 and later print a DEP0169 deprecation warning when url.parse() is used, and Browsertime now runs on Node.js 26, so every run showed the warning.

The URL in the HAR is now exactly the URL that Chrome sent. Before, url.parse escaped a few characters (like | and {) that Chrome leaves as they are, so some HAR URLs did not match the URL the browser requested. Query strings and form bodies are parsed with URLSearchParams and give the same result as before.

Assisted-by: Claude Opus 5.5 [email protected]

Node.js 24 and later print a DEP0169 deprecation warning when url.parse() is used, and Browsertime now runs on Node.js 26, so every run showed the warning.

The URL in the HAR is now exactly the URL that Chrome sent. Before, url.parse escaped a few characters (like | and {) that Chrome leaves as they are, so some HAR URLs did not match the URL the browser requested. Query strings and form bodies are parsed with URLSearchParams and give the same result as before.

Assisted-by: Claude Opus 5.5 [email protected]
@soulgalore
soulgalore merged commit 4031d07 into main Nov 3, 2026
3 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.

1 participant