---
title: "normalize-url 10.0.0 Breaking Changes on npm | Since.dev"
description: "What each normalize-url release removed, renamed or changed: 19 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/normalize-url
last_updated: 2026-12-04
---

# normalize-url breaking changes

normalize-url 10.0.0 (October 14, 2026) is its newest release with breaking changes, 8 of them. The first: normalize-url 10.0.0 requires Node.js 22 or later. Every breaking API change we have recorded in normalize-url on npm: 19 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `10.0.0`, released October 14, 2026. [Source repository](https://github.com/sindresorhus/normalize-url)

Its 10.0.0 release requires [Node.js 22](https://since.dev/calendar/nodejs/22.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [9.0.0](#v-9-0-0) to [10.0.0](#v-10-0-0): 8 breaking changes in 1 version.
- From [7.0.0](#v-7-0-0) to [10.0.0](#v-10-0-0): 16 breaking changes in 3 versions.

## normalize-url 10.0.0 breaking changes

normalize-url 10.0.0, released October 14, 2026: 8 breaking changes.

- **Removed**  

The package now requires Node.js 22. Users on older Node.js versions must upgrade Node.js before installing this release. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v10.0.0)
- **Behavior changed**  

Many edge-case URLs now normalize to different output. Users who store normalized URLs may want to normalize them again. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v10.0.0)
- **Behavior changed** `defaultProtocol`  

Passing a defaultProtocol that is not a valid scheme, such as 'https://', now throws a TypeError. Pass a valid scheme name instead. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v10.0.0)
- **Behavior changed** `removeDirectoryIndex`  

The removeDirectoryIndex option now runs after transformPath, so the transformPath function also receives the index file. Adjust any transformPath logic that assumed it did not. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v10.0.0)
- **Behavior changed** `sortQueryParameters`  

With sortQueryParameters set to false the query is still re-serialized the URLSearchParams way, so %20 becomes + and invalid escapes change. Expect different output strings. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v10.0.0)
- **Signature changed** `Options`  

Was type Options = {readonly defaultProtocol?: 'https' | 'http'; readonly customProtocols?: readonly string\[\]; readonly normalizeProtocol?: boolean; readonly forceHttp?: boolean; readonly forceHttps?: boolean; readonly... [npmjs.com](https://www.npmjs.com/package/normalize-url/v/10.0.0)
- **Signature changed** `Options.defaultProtocol`  

Was readonly defaultProtocol?: 'https' | 'http'; now readonly defaultProtocol?: 'https' | 'http' | (string & Record\<never, never>). [npmjs.com](https://www.npmjs.com/package/normalize-url/v/10.0.0)
- **Signature changed** `Options.transformPath`  

Was readonly transformPath?: (pathComponents: string\[\]) => string\[\]; now readonly transformPath?: ((pathComponents: string\[\]) => readonly string\[\] | undefined) | false. [npmjs.com](https://www.npmjs.com/package/normalize-url/v/10.0.0)

## normalize-url 9.0.0 breaking changes

normalize-url 9.0.0, released February 19, 2026: 3 breaking changes.

- **Removed**  

The package now requires Node.js 20. Users on older Node.js versions must upgrade before installing this release. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v9.0.0)
- **Behavior changed**  

Normalized URLs keep percent-encoded reserved characters in the query string instead of decoding them. Code that depends on the previous output may need to be updated. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v9.0.0)
- **Signature changed** `Options`  

Was type Options = {readonly defaultProtocol?: 'https' | 'http'; readonly normalizeProtocol?: boolean; readonly forceHttp?: boolean; readonly forceHttps?: boolean; readonly stripAuthentication?: boolean; readonly stripHash?: boolean... [npmjs.com](https://www.npmjs.com/package/normalize-url/v/9.0.0)

## normalize-url 8.0.0 breaking changes

normalize-url 8.0.0, released November 4, 2022: 5 breaking changes.

- **Behavior changed**  

URLs with protocols other than https, http, file and data are no longer normalized and are returned as-is. Custom protocols that need HTTP-like handling must be handled in user code. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v8.0.0)
- **Behavior changed** `ftp`  

ftp URLs are now passed through without normalization. Code relying on ftp normalization must change. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v8.0.0)
- **Configuration changed**  

The package now requires Node.js 14. Users on older Node.js versions must upgrade before using this release. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v8.0.0)
- **Signature changed** `Options`  

Was interface Options; now type Options = {readonly defaultProtocol?: 'https' | 'http'; readonly normalizeProtocol?: boolean; readonly forceHttp?: boolean; readonly forceHttps?: boolean; readonly stripAuthentication?: boolean; readonly... [npmjs.com](https://www.npmjs.com/package/normalize-url/v/8.0.0)
- **Signature changed** `Options.defaultProtocol`  

Was readonly defaultProtocol?: string; now readonly defaultProtocol?: 'https' | 'http'. [npmjs.com](https://www.npmjs.com/package/normalize-url/v/8.0.0)

## normalize-url 7.0.0 breaking changes

normalize-url 7.0.0, released July 9, 2021: 3 breaking changes.

- **Removed**  

The package now requires Node.js 12.20 or later. Users on older Node.js versions must upgrade Node.js before using this release. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v7.0.0)
- **Behavior changed**  

The package is published as pure ES modules. Code that loads it with CommonJS require() must switch to import, as described in the linked guide. [github.com](https://github.com/sindresorhus/normalize-url/releases/tag/v7.0.0)
- **Signature changed** `default`  

Was function normalizeUrl(url: string, options?: normalizeUrl.Options): string namespace normalizeUrl; now function normalizeUrl(url: string, options?: Options): string. [npmjs.com](https://www.npmjs.com/package/normalize-url/v/7.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
