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.