Releases: sindresorhus/normalize-url
Releases Β· sindresorhus/normalize-url
v8.0.1
Compare
- Fix handling of protocol-less URLs with a port dec5dc6
Assets 2
v8.0.0
Compare
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:password@sindresorhus.com
- 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.
Assets 2
1 person reacted
v7.2.0
Compare
- Add
removeExplicitPort
option (#174) 192223b
Assets 2
3 people reacted
v7.1.0
Compare
- Add
keepQueryParameters
option (#173) 6e24307
Assets 2
v7.0.3
Compare
Assets 2
2 people reacted
v7.0.2
Compare
- Fix the
removeDirectoryIndex
option TypeScript type 4d35ea1
Assets 2
v7.0.1
Compare
Assets 2
v7.0.0
Compare
Breaking
Assets 2
3 people reacted
v6.1.0
Assets 2
3 people reacted
v6.0.1
Compare
- 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.
Assets 2
11 people reacted
Previous Next