microsoft / microsoft/AzureStorageExplorer
Drop legacy Node `url` usage in favor of WHATWG `url`
Open
@craxal is already working on this.
Since Nov 11, 2024.
:test_tube: engineering
- Dominant language
- No language data
- Stars
- 452
- Forks
- 92
- Avg merge
- 15h 20m
- Merged PRs (30d)
- 3
Description
Node's legacy url module is deprecated. It's WHATWG API mirrors what's available natively in web environments.
To reduce dependencies and bundling complexity, we should use the WHATWG API. Since Node's is equivalent to native web's, we'll also be using consistent interfaces in all components.
To use the WHATWG API, we simply need to remove any url import statements.
Some useful notes:
new URL()throws if the argument is not well formed, andURL.parse()returnsnull. Otherwise, they are functionally equivalent.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.