Skip to content

Bump normalize-url from 9.0.1 to 10.0.0 - #662

Merged
aivus merged 1 commit into
masterfrom
dependabot/npm_and_yarn/normalize-url-10.0.0
Oct 19, 2026
Merged

aivus merged 1 commit into
masterfrom
dependabot/npm_and_yarn/normalize-url-10.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Bumps normalize-url from 9.0.1 to 10.0.0.

Release notes

Sourced from normalize-url's releases.

v10.0.0

Breaking

  • Require Node.js 22 6c95de2
  • Throw a TypeError when the defaultProtocol option is not a valid scheme, such as 'https://' a8c34ae
  • The query is now always re-serialized, even with sortQueryParameters: false 65f62ef
    • Previously, disabling sorting kept the query exactly as written. Now it is written the way URLSearchParams writes it, so %20 becomes + and an escape that is not valid UTF-8, like %E9, becomes %EF%BF%BD.
  • The removeDirectoryIndex option now runs after transformPath, so the function also receives the index file 65f62ef
  • Many edge cases are now normalized differently (see below). If you store normalized URLs, you may want to normalize them again.

Improvements

  • The defaultProtocol option now accepts any protocol, not just http and https b2e4135
  • Strip all whitespace from the ends of a URL, including a non-breaking space and a byte order mark left over from copying 13f62a4
  • Keep repeated query keys in their original order when sorting 5a3e67a
  • Normalizing an already normalized URL now always gives the same URL
  • Document the normalizations that happen regardless of the options bb685bc

Fixes

  • Fix normalization of the protocol, host, port, path, query, fragment, and data URLs 65f62ef
    • http:/example.com no longer becomes http://http/example.com
    • %252F in a path no longer becomes %2F, which is a different URL
    • A trailing / in the query is no longer removed
    • normalizeProtocol: false now keeps a protocol-relative URL, even with defaultProtocol: 'https'
    • A data URL without a comma no longer throws
  • Fix several data URL cases where the normalized URL was decoded differently by browsers 5d8ff58 cf2aed8 bd39d02

sindresorhus/normalize-url@v9.0.1...v10.0.0

Commits
  • 5d0151d 10.0.0
  • 6c95de2 Tweaks
  • bb685bc Document the normalizations that happen whatever the options
  • 13f62a4 Strip all whitespace from the ends of a URL
  • b2e4135 Keep the host when prepending a non-special defaultProtocol
  • a8c34ae Throw for a defaultProtocol that is not a scheme
  • 732e272 Simplify code
  • b9cfa53 Pin the follower rule of the percent escape join over every byte value
  • 48582fa Fix where the readme and the type definitions disagreed
  • ffbc522 Remove two guards that no input reaches
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 19, 2026
@aivus

aivus commented Oct 19, 2026

Copy link
Copy Markdown
Member

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/normalize-url-10.0.0 branch 3 times, most recently from 61ea73a to 7c73f96 Compare October 19, 2026 20:20
@aivus

aivus commented Oct 19, 2026

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 9.0.1 to 10.0.0.
- [Release notes](https://github.com/sindresorhus/normalize-url/releases)
- [Commits](sindresorhus/normalize-url@v9.0.1...v10.0.0)

---
updated-dependencies:
- dependency-name: normalize-url
  dependency-version: 10.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/normalize-url-10.0.0 branch from 7c73f96 to 8370146 Compare October 19, 2026 20:22
@aivus
aivus merged commit fb8c3bf into master Oct 19, 2026
12 checks passed
@aivus
aivus deleted the dependabot/npm_and_yarn/normalize-url-10.0.0 branch October 19, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants