Packages

normalize-url

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

Upgrading normalize-url From 5.0.0 to 10.0.0

22 releases in betweennotes for 21

Reading releases, release notes and advisories…

Other targets from 5.0.0Newest 5.x, Clears its advisory5.3.1
  1. 5.0.0yours
  2. 5 releases
  3. 6.0.0major
  4. 6.0.1security
  5. 1 release
  6. 7.0.0major
  7. 5 releases
  8. 8.0.0major
  9. 4 releases
  10. 9.0.0major
  11. 1 release
  12. 10.0.0target
13+
changes to make
1
advisory fixed
14+
new
11+
fixes

Counted from 21 of 22 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking10.0.0
  • Breaking10.0.0
  • Breaking10.0.0
  • Breaking10.0.0
  • Breaking10.0.0
  • Breaking9.0.0
  • Breaking8.0.0
  • Breaking8.0.0
  • Breaking8.0.0
  • Breaking8.0.0

Security

Fixes 1 advisory affecting 5.0.0

  • Fix ReDoS vulnerability for data URLs b1fdb51

    6.0.1

Release by release

  1. 10.0.0

    Migration needed14 Oct 20265 new · 2 fixes
    • Breaking

      Require Node.js 22 6c95de2

    • Breaking

      Throw a TypeError when the defaultProtocol option is not a valid scheme, such as 'https://' a8c34ae

    • Breaking

      The query is now always re-serialized, even with sortQueryParameters: false 65f62ef

    • Breaking

      The removeDirectoryIndex option now runs after transformPath, so the function also receives the index file 65f62ef

  2. 9.0.1

    20 May 20261 fix
    • Fixed

      Fix removeExplicitPort option not working for localhost ef8df19

  3. 9.0.0

    Migration needed19 Feb 20263 new
    • Breaking

      Require Node.js 20 c0477f6

    • New

      Add customProtocols option 0c6c6b9

    • New

      Add emptyQueryValue option 2f2536e

    • New

      Preserve percent-encoded reserved query characters 5630770

  4. 8.1.1

    1 Jan 20261 fix
    • Fixed

      Fix removeDirectoryIndex option to handle trailing slashes consistently 320d9b3

  5. 8.1.0

    10 Sep 20251 new · 1 fix
    • New

      Add removePath and transformPath option dfcfc06

    • Fixed

      Fix path-like query strings losing structure when sorting parameters 92eb703

  6. 8.0.2

    9 Jun 20251 fix
    • Fixed

      Fix handling of encoded backslash (#192) 07c9a7b

  7. 8.0.1

    10 Mar 20241 fix
    • Fixed

      Fix handling of protocol-less URLs with a port dec5dc6

  8. 8.0.0

    Migration needed4 Nov 20221 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

    • New

      Make defaultProtocol option accept protocol without colon c7fd781

3 other lines we could not sort, mostly version bumps
  • Accept a boolean for the removeQueryParameters option (#136) 6216336

    6.1.0
  • Throw a friendly error on view-source: input (#124) ddf2584

    5.3.0
  • Improve stripWWW logic (#117) 0ee9d94

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