Skip to content

Use userland url module to resolve url.parse deprecation warning#9211

Open
mhassan1 wants to merge 1 commit intoyarnpkg:masterfrom
mhassan1:url-dep
Open

Use userland url module to resolve url.parse deprecation warning#9211
mhassan1 wants to merge 1 commit intoyarnpkg:masterfrom
mhassan1:url-dep

Conversation

@mhassan1
Copy link
Copy Markdown

This PR adds the url package from NPM as a drop-in replacement for the built-in url module, which emits deprecation warnings.

Resolves #9210 and #9097.

@MikeMcC399
Copy link
Copy Markdown

@mhassan1

I made a note in the issue #9210 that there was a bug in Node.js which caused the deprecation warning DEP0169 to be displayed when it should not have been displayed.

The issue has already been resolved in Node.js 25.8.1 and I'd expect it to get backported to Node.js 24 as well.

PS: PRs are no longer being accepted for Yarn v1 as it has been frozen for quite a long time now. (I'm not a maintainer, I'm just repeating the message.)

@mhassan1
Copy link
Copy Markdown
Author

mhassan1 commented Apr 13, 2026

@MikeMcC399 I don't think that bugfix fully resolves the issue; see #9210 (comment).

I understand that Yarn v1 is frozen, but hopefully it can be unfrozen to resolve this deprecation warning.

@MikeMcC399
Copy link
Copy Markdown

I understand that Yarn v1 is frozen, but hopefully it can be unfrozen to resolve this deprecation warning.

I suggest that you assume Yarn v1 will never be unfrozen. That would mean either upgrading to a supported Yarn version or migrating to a different package manager.

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.

DeprecationWarning for url.parse in Node.js 24

3 participants