Packages

normalize-url

10.0.0 · 14 Oct 2026MIT62.8M / weekRepositoryHomepagenpmAtom feed

Your version

8.0.0

major4 Nov 2022Where it was published

8.1.1 is the newest release of 8.x.

In short

4 breaking1 new

  • Breaking

    Require Node.js 14 52f2290

  • Breaking

    Ignore URLs with custom protocols and just pass them through (#178) 882cb84

  • Breaking

    ftp protocol is no longer normalized. It's just passed through.

  • Breaking

    Human-friendly URLs with basic auth is no longer handled as it conflicts with custom protocols

Release note

Breaking

  • Breaking

    Require Node.js 14 52f2290

  • Breaking

    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.

  • Breaking

    ftp protocol is no longer normalized. It's just passed through.

  • Breaking

    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

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.