Content-Length: 430247 | pFad | http://github.com/nodejs/node/pull/62002

9F doc: include url.resolve() in DEP0169 application deprecation by MikeMcC399 · Pull Request #62002 · nodejs/node · GitHub
Skip to content

doc: include url.resolve() in DEP0169 application deprecation#62002

Open
MikeMcC399 wants to merge 3 commits intonodejs:mainfrom
MikeMcC399:dep0169-url-resolve-addition
Open

doc: include url.resolve() in DEP0169 application deprecation#62002
MikeMcC399 wants to merge 3 commits intonodejs:mainfrom
MikeMcC399:dep0169-url-resolve-addition

Conversation

@MikeMcC399
Copy link
Contributor

Fixes: #61816
Refs: #61780 (supersedes)

Situation

DEP0169: Insecure url.parse() lists an Application deprecation (non-node_modules code only) for url.parse() that was applied in v24.0.0.

The text notes that passing a string to url.format() also invokes the deprecation warning, since url.parse() is called internally.

The same reasoning also applies to url.resolve(), although this is not documented here.

Change

Builds on work from @legendecas in PR #61780.

Related to #55017 for v24.0.0:

For DEP0116: Legacy URL API:

For DEP0116: Legacy URL API:

For url.resolve()

  • Add history note that it is deprecated again through DEP0169
  • Mark as deprecated

Mark url.resolve() as deprecated
Update also DEP0116 with cross-reference to DEP0169
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/userland-migrations

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Feb 26, 2026
@MikeMcC399 MikeMcC399 marked this pull request as ready for review February 26, 2026 10:05
@MikeMcC399
Copy link
Contributor Author

Previews

image
image
image

@Renegade334
Copy link
Member

Like url.format(urlString), there should be a sentence in the method's description body that explains why this is the case.

Because it invokes the deprecated [`url.parse()`][] internally, `url.resolve()` is itself deprecated.

@Renegade334 Renegade334 added url Issues and PRs related to the legacy built-in url module. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. labels Feb 26, 2026
@MikeMcC399
Copy link
Contributor Author

@Renegade334

Like url.format(urlString), there should be a sentence in the method's description body that explains why this is the case.

Because it invokes the deprecated [`url.parse()`][] internally, `url.resolve()` is itself deprecated.

Thanks for the suggestion! I've added it in, and I added "internally" to the comment in url.format(urlString) so that they are aligned.

@Renegade334 Renegade334 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Feb 26, 2026
Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO missing explaining of what is the alternative

@MikeMcC399
Copy link
Contributor Author

@AugustinMauroy

IMO missing explaining of what is the alternative

The alternative is already described on the existing page https://nodejs.org/docs/latest/api/url.html#urlresolvefrom-to


The proposed change adds the history, deprecation banner and explanation of the deprecation.

image

Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup my bad !

@MikeMcC399
Copy link
Contributor Author

@AugustinMauroy

yup my bad !

No problem! There are a lot of interrelated bits, and this change is really just catching up the documentation to match reality since v24.0.0.

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. doc Issues and PRs related to the documentations. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. url Issues and PRs related to the legacy built-in url module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DEP0169 DeprecationWarning: url.parse() when url.resolve() used (non node_modules) >=v24.0.0

6 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/nodejs/node/pull/62002

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy