Skip to content

v8.0.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 04 Nov 08:23
· 7 commits to main since this release

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.
  • 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

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...v8.0.0