normalize-url
10.0.0 · 14 Oct 2026MIT62.8M / weekRepositoryHomepagenpmAtom feed
5.3.1 is the newest release of 5.x.
In short
2 breaking1 fixed
- 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');
Security
1 advisory affects 5.0.0; 5.3.1 fixes them
- HighReDoS in normalize-urlGHSA-px4h-xg32-q955 · 8 Jun 2021Fixed in 5.3.1
Release note
Note that if you're using normalize-url in the browser, you should probably stay on v4 as this version uses newer syntax not available in all browsers.
Breaking
Breaking for TypeScript users
- Breaking
Only use a CommonJS export for the TypeScript definition
You need to changeimport normalizeUrl from 'normalize-url';toimport normalizeUrl = require('normalize-url');
Fixes
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.