-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.whatwg-urlIssues and PRs related to the WHATWG URL implementation.Issues and PRs related to the WHATWG URL implementation.
Description
Users have used url.format()
for as long as I can remember. It is useful, reasonably ergonomic, has has existed for public use for over 7 years...
The WhatWG url alternative is absolutely not ergonomic or obvious:
String(Object.assign(new URL('<a url>'), {pathname: '/foo'}))
I do not agree that deprecating url.format()
with no such API alternative is acceptable.
The deprecation was done in #22715
sindresorhus, jdalton, juanarbol, nijynot, FyiurAmron and 37 morejfoclpf
Metadata
Metadata
Assignees
Labels
urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.whatwg-urlIssues and PRs related to the WHATWG URL implementation.Issues and PRs related to the WHATWG URL implementation.