normalize-url
10.0.0 · 14 Oct 2026MIT62.8M / weekRepositoryHomepagenpmAtom feed
Upgrading normalize-url From 5.0.0 to 10.0.0
22 releases in betweennotes for 21
Reading releases, release notes and advisories…
Counted from 21 of 22 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking9.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
Security
Fixes 1 advisory affecting 5.0.0
- ReDoS in normalize-urlhigh · GHSA-px4h-xg32-q955
- 6.0.1
Fix ReDoS vulnerability for data URLs b1fdb51
Release by release
- Breaking
Require Node.js 22 6c95de2
- Breaking
Throw a
TypeErrorwhen thedefaultProtocoloption is not a valid scheme, such as'https://'a8c34ae - Breaking
The query is now always re-serialized, even with
sortQueryParameters: false65f62ef - Breaking
The
removeDirectoryIndexoption now runs aftertransformPath, so the function also receives the index file 65f62ef
- Breaking
- Fixed
Fix
removeExplicitPortoption not working forlocalhostef8df19
- Fixed
- Breaking
Require Node.js 20 c0477f6
- New
Add
customProtocolsoption 0c6c6b9 - New
Add
emptyQueryValueoption 2f2536e - New
Preserve percent-encoded reserved query characters 5630770
- Breaking
- Fixed
Fix
removeDirectoryIndexoption to handle trailing slashes consistently 320d9b3
- Fixed
- New
Add
removePathandtransformPathoption dfcfc06 - Fixed
Fix path-like query strings losing structure when sorting parameters 92eb703
- New
- Fixed
Fix handling of encoded backslash (#192) 07c9a7b
- Fixed
- Fixed
Fix handling of protocol-less URLs with a port dec5dc6
- Fixed
- Breaking
Require Node.js 14 52f2290
- Breaking
Ignore URLs with custom protocols and just pass them through (#178) 882cb84
- Breaking
ftpprotocol is no longer normalized. It's just passed through. - Breaking
Human-friendly URLs with basic auth is no longer handled as it conflicts with custom protocols
- New
Make
defaultProtocoloption accept protocol without colon c7fd781
- Breaking
3 other lines we could not sort, mostly version bumps
- 6.1.0
Accept a boolean for the
removeQueryParametersoption (#136) 6216336 - 5.3.0
Throw a friendly error on
view-source:input (#124) ddf2584 - 5.1.0
Improve
stripWWWlogic (#117) 0ee9d94
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.