Verify latest release
pnpm version
10.11.0
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
https://github.com/jeremybanka/pnpm-url-parse-repro
Reproduction steps
# Clone the reproduction repo
git clone https://github.com/jeremybanka/pnpm-url-parse-repro
cd pnpm-url-parse-repro
# Ensure you have the (as of this writing) current versions of node and pnpm
node -v # 24.0.1
pnpm -v # 10.11.0
# Run the script to reproduce the problem
pnpm will-show-warning
This will show a warning that url.parse() is deprecated and is called in the method fixHomepageField().
Describe the Bug
pnpm ships a bundle containing multiple instances of the deprecated url.parse, leading to frequent warnings when using pnpm install.
Searching the file .../pnpm/10.11.0/dist/pnpm.cjs for the phrase url.parse turns up five results.
To ensure that this warning does not occur when running pnpm install, all uses of url.parse should be removed.
Expected Behavior
No warnings when running pnpm install.
Which Node.js version are you using?
24.0.1
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest release
pnpm version
10.11.0
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
https://github.com/jeremybanka/pnpm-url-parse-repro
Reproduction steps
This will show a warning that
url.parse()is deprecated and is called in the methodfixHomepageField().Describe the Bug
pnpm ships a bundle containing multiple instances of the deprecated
url.parse, leading to frequent warnings when usingpnpm install.Searching the file
.../pnpm/10.11.0/dist/pnpm.cjsfor the phraseurl.parseturns up five results.To ensure that this warning does not occur when running
pnpm install, all uses of url.parse should be removed.[email protected]/.../fixer.jsurl.parseinfixBugsField()(twice)url.parseinfixHomepageField()url.parse. Issue here: [CHORE] Node 24 warns of urlParse use in fixHomepageField npm/normalize-package-data#242@[email protected]/.../npa.jsurl.parseinfromURL()@[email protected]/.../nopt.jsurl.parseinvalidateUrl()Expected Behavior
No warnings when running
pnpm install.Which Node.js version are you using?
24.0.1
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response