microsoft / microsoft/AzureStorageExplorer

Drop legacy Node `url` usage in favor of WHATWG `url`

Open
#8,261 1 comment 0 reactions 1 assignee View on GitHub

@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, and URL.parse() returns null. Otherwise, they are functionally equivalent.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.