normalize-url
10.0.0 · 14 Oct 2026MIT62.8M / weekRepositoryHomepagenpmAtom feed
Upgrading normalize-url From 4.5.1 to 5.3.1
6 releases in betweennotes for 5
Reading releases, release notes and advisories…
- 2+
- changes to make
- 0
- advisories fixed
- 2+
- new
- 2+
- fixes
Counted from 5 of 6 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking5.0.0
- Breaking5.0.0
Release by release
5.3.0 – 5.3.12 releases, nothing new or fixed; 1 without a note
- Fixed
Fix
removeSingleSlashoption adding slashes (#122) 1e06753
- Fixed
- New
Add
removeSingleSlashoption (#120) 18effbe
- New
- New
Allow any protocol in the duplicate slashes normalization (#115) 14b79c6
- New
- Breaking
Require Node.js 10 (#103) 7b4ad64
- Breaking
Only use a CommonJS export for the TypeScript definition You need to change
import normalizeUrl from 'normalize-url';toimport normalizeUrl = require('normalize-url'); - Fixed
Don't throw if decoding the path fails (#104) 062b426
- Breaking
2 other lines we could not sort, mostly version bumps
- 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.