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
On this page
Latest version 10.0.0, released October 14, 2026. Source repository
Its 10.0.0 release requires Node.js 22 or later. Node.js end of life dates.
- From 9.0.0 to 10.0.0: 8 breaking changes in 1 version.
- From 7.0.0 to 10.0.0: 16 breaking changes in 3 versions.
normalize-url 10.0.0 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 - Behavior changed
Many edge-case URLs now normalize to different output. Users who store normalized URLs may want to normalize them again. github.com - 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 - 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 - 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 - 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 - Signature changed
Options.defaultProtocol
Was readonly defaultProtocol?: 'https' | 'http'; now readonly defaultProtocol?: 'https' | 'http' | (string & Record<never, never>). npmjs.com - Signature changed
Options.transformPath
Was readonly transformPath?: (pathComponents: string[]) => string[]; now readonly transformPath?: ((pathComponents: string[]) => readonly string[] | undefined) | false. npmjs.com
normalize-url 9.0.0 breaking changes
- Removed
The package now requires Node.js 20. Users on older Node.js versions must upgrade before installing this release. github.com - 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 - 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
normalize-url 8.0.0 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 - Behavior changed
ftp
ftp URLs are now passed through without normalization. Code relying on ftp normalization must change. github.com - Configuration changed
The package now requires Node.js 14. Users on older Node.js versions must upgrade before using this release. github.com - 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 - Signature changed
Options.defaultProtocol
Was readonly defaultProtocol?: string; now readonly defaultProtocol?: 'https' | 'http'. npmjs.com
normalize-url 7.0.0 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 - 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 - Signature changed
default
Was function normalizeUrl(url: string, options?: normalizeUrl.Options): string namespace normalizeUrl; now function normalizeUrl(url: string, options?: Options): string. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.