Releases: sindresorhus/normalize-url
Releases Β· sindresorhus/normalize-url
v8.0.1
- Fix handling of protocol-less URLs with a port dec5dc6
v8.0.0
Breaking
- Require Node.js 14 52f2290
- Ignore URLs with custom protocols and just pass them through (#178) 882cb84
- By default, these protocols are supported:
https
,http
,file
,data
. - If you need support for a custom protocol that behaves like a HTTP URL, see #179.
- By default, these protocols are supported:
ftp
protocol is no longer normalized. It's just passed through.- Human-friendly URLs with basic auth is no longer handled as it conflicts with custom protocols
- Example:
user:[email protected]
- Example:
Improvements
- Make
defaultProtocol
option accept protocol without colon c7fd781- You can still pass in a protocol with colon. However, if you use TypeScript, it enforces it without.
v7.2.0
- Add
removeExplicitPort
option (#174) 192223b
v7.1.0
- Add
keepQueryParameters
option (#173) 6e24307
v7.0.3
v7.0.2
- Fix the
removeDirectoryIndex
option TypeScript type 4d35ea1
v7.0.1
v7.0.0
Breaking
v6.1.0
v6.0.1
- Fix ReDoS vulnerability for data URLs b1fdb51
Also fixed for v5 in 5.3.1 and for v4 in 4.5.1. Versions below 4.3.0 are not affected by this.