Releases: sindresorhus/normalize-url
Releases Β· sindresorhus/normalize-url
v8.1.0
- Add
removePathandtransformPathoption dfcfc06 - Fix path-like query strings losing structure when sorting parameters 92eb703
v8.0.2
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:
ftpprotocol 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
defaultProtocoloption 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
removeExplicitPortoption (#174) 192223b
v7.1.0
- Add
keepQueryParametersoption (#173) 6e24307
v7.0.3
v7.0.2
- Fix the
removeDirectoryIndexoption TypeScript type 4d35ea1