Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This migrates from including
normalize-url
as a dependency to include a rewritten version directly as a utility function in the source. The modified version was ported to TypeScript and stripped of any unused functionality.This was done because the package has been a bit difficult to work with for awhile now...
v7 of
normalize-url
is only packaged as an ESM module making it difficult to work with in a lot of cases, due to ecosystem support not being great. The developer's position on ESM means this is unlikely to be fixed by an upstream change. This was in fact the entire reason for the v0.3.1 bugfix release.Unknowingly at the time, reverting to v6 introduced breakages in older browsers and react native due to the use of unsupported regex features. The developer has stated they will not accept backport fixes for v6.