Skip to content

refactor: replace deprecated url.resolve() with WHATWG URL API#8183

Open
ryzrr wants to merge 1 commit intowebpack:mainfrom
ryzrr:fix/replace-deprecated-url-resolve-v2
Open

refactor: replace deprecated url.resolve() with WHATWG URL API#8183
ryzrr wants to merge 1 commit intowebpack:mainfrom
ryzrr:fix/replace-deprecated-url-resolve-v2

Conversation

@ryzrr
Copy link
Copy Markdown
Contributor

@ryzrr ryzrr commented Apr 11, 2026

Summary
Replaces the deprecated Node.js url.resolve() calls with the modern WHATWG URL API (new URL()) in PageLinks.jsx and process-readme.mjs. This also removes two eslint-disable comments and an unused import that were only there to suppress the deprecation warnings.

What kind of change does this PR introduce?
Refactor

Did you add tests for your changes?
No, but existing tests cover both files and were verified to still pass.

Does this PR introduce a breaking change?
No. Both base URLs are always absolute https:// strings, so the stricter new URL() constructor is safe to use here.

If relevant, what needs to be documented once your changes are merged or what have you already documented?
Nothing needs to be documented.

Use of AI?
No

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Apr 11, 2026 7:46am

Request Review

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