---
title: "url-normalize 4.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each url-normalize release removed, renamed or changed: 30 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/url-normalize
last_updated: 2026-12-04
---

# url-normalize breaking changes

url-normalize 4.0.0 (November 19, 2026) is its newest release with breaking changes, 30 of them. The first: Removed url_normalize.generic_url_cleanup. Every breaking API change we have recorded in url-normalize on PyPI: 30 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released November 19, 2026. [Source repository](https://github.com/niksite/url-normalize)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## url-normalize 4.0.0 breaking changes

url-normalize 4.0.0, released November 19, 2026: 30 breaking changes.

- **Removed** `url_normalize.generic_url_cleanup`  

url_normalize.generic_url_cleanup was removed in url-normalize 4.0.0 [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Removed** `url_normalize.normalize_path.RESERVED_CHARACTERS`  

url_normalize.normalize_path.RESERVED_CHARACTERS was removed in url-normalize 4.0.0 [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Removed** `url_normalize.normalize_userinfo.RESERVED_CHARACTERS`  

url_normalize.normalize_userinfo.RESERVED_CHARACTERS was removed in url-normalize 4.0.0 [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Removed** `url_normalize.tools`  

url_normalize.tools was removed in url-normalize 4.0.0 [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Removed** `url_normalize.url_normalize.generic_url_cleanup`  

url_normalize.url_normalize.generic_url_cleanup was removed in url-normalize 4.0.0 [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Renamed** `url_normalize.param_allowlist.normalize_host`  

Use url_normalize.param_filter.normalize_host instead. [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Behavior changed**  

Nonempty ports containing anything except ASCII digits raise ValueError, and the CLI exits with status 1. [github.com](https://github.com/niksite/url-normalize/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed**  

IPv6 addresses use zero compression and dotted-decimal IPv4-mapped suffixes. The same spelling applies to default domains and filter domain keys. [github.com](https://github.com/niksite/url-normalize/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed**  

Paths like /a//../b now normalize to /a/b instead of /b. Check code that depends on the old result. [github.com](https://github.com/niksite/url-normalize/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed**  

Relative references such as ../images/a.png, ./a, ?q=1 and #section are no longer given a scheme or hostname. [github.com](https://github.com/niksite/url-normalize/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed**  

Escapes such as a%2Fb stay distinct from a/b during humanization and filter matching. [github.com](https://github.com/niksite/url-normalize/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed**  

Hashbang fragments such as #!/route are kept as written. Code needing the legacy conversion must implement it itself. [github.com](https://github.com/niksite/url-normalize/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed**  

Hosts containing literal display controls, including in IPv6 zone identifiers, are rejected with UnicodeError, a ValueError subclass. [github.com](https://github.com/niksite/url-normalize/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed**  

Hostnames with leading empty labels, repeated trailing dots or dot-only hosts are kept, while a single trailing dot is still removed from other hosts. [github.com](https://github.com/niksite/url-normalize/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed** `default_scheme`  

Malformed default_scheme strings raise ValueError and non-string values raise TypeError, even when the scheme is not applied. [github.com](https://github.com/niksite/url-normalize/blob/v4.0.0/CHANGELOG.md)
- **Default changed** `filter_params`  

Providing a custom allowlist filters parameters without filter_params=True or CLI -f. Empty lists or maps remove all query parameters; omit the rule to disable filtering. [github.com](https://github.com/niksite/url-normalize/blob/v4.0.0/CHANGELOG.md)
- **Signature changed** `url_normalize.cli.url_humanize`  

Was def url_humanize(url: str | None, \*, default_scheme: str = DEFAULT_SCHEME, default_domain: str | None = None, filter_params: bool = False, param_allowlist: dict | list | None = None) -> str | None; now def url_humanize(url: str | None... [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.cli.url_normalize`  

Was def url_normalize(url: str | None, \*, default_scheme: str = DEFAULT_SCHEME, default_domain: str | None = None, filter_params: bool = False, param_allowlist: dict | list | None = None) -> str | None; now def url_normalize(url: str |... [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.normalize_path.normalize_component`  

Was def normalize_component(string: str, safe: str, preserve: str) -> str; now def normalize_component(string: str, safe: str) -> str. [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.normalize_path.normalize_path`  

Was def normalize_path(path: str, scheme: str) -> str; now def normalize_path(path: str, scheme: str, \*, collapse_slashes: bool = True, remove_trailing_slash: bool = False) -> str. [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.normalize_query.get_allowed_params`  

Was def get_allowed_params(host: str | None = None, allowlist: dict | list | None = None) -> set\[str\]; now def get_allowed_params(host: str | None = None, allowlist: \_ParamRules | None = None) -> set\[str\]. [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.normalize_query.normalize_component`  

Was def normalize_component(string: str, safe: str, preserve: str) -> str; now def normalize_component(string: str, safe: str) -> str. [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.normalize_query.normalize_query`  

Was def normalize_query(query: str, \*, host: str | None = None, filter_params: bool = False, param_allowlist: list | dict | None = None) -> str; now def normalize_query(query: str, \*, host: str | None = None, filter_params: bool = False... [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.normalize_userinfo.normalize_component`  

Was def normalize_component(string: str, safe: str, preserve: str) -> str; now def normalize_component(string: str, safe: str) -> str. [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.param_allowlist.get_allowed_params`  

Was def get_allowed_params(host: str | None = None, allowlist: dict | list | None = None) -> set\[str\]; now def get_allowed_params(host: str | None = None, allowlist: \_ParamRules | None = None) -> set\[str\]. [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.url_humanize.url_humanize`  

Was def url_humanize(url: str | None, \*, default_scheme: str = DEFAULT_SCHEME, default_domain: str | None = None, filter_params: bool = False, param_allowlist: dict | list | None = None) -> str | None; now def url_humanize(url: str | None... [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.url_humanize.url_normalize`  

Was def url_normalize(url: str | None, \*, default_scheme: str = DEFAULT_SCHEME, default_domain: str | None = None, filter_params: bool = False, param_allowlist: dict | list | None = None) -> str | None; now def url_normalize(url: str |... [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.url_normalize.normalize_path`  

Was def normalize_path(path: str, scheme: str) -> str; now def normalize_path(path: str, scheme: str, \*, collapse_slashes: bool = True, remove_trailing_slash: bool = False) -> str. [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.url_normalize.normalize_query`  

Was def normalize_query(query: str, \*, host: str | None = None, filter_params: bool = False, param_allowlist: list | dict | None = None) -> str; now def normalize_query(query: str, \*, host: str | None = None, filter_params: bool = False... [pypi.org](https://pypi.org/project/url-normalize/4.0.0/)
- **Signature changed** `url_normalize.url_normalize.url_normalize`  

Was def url_normalize(url: str | None, \*, default_scheme: str = DEFAULT_SCHEME, default_domain: str | None = None, filter_params: bool = False, param_allowlist: dict | list | None = None) -> str | None; now def url_normalize(url: str |... [pypi.org](https://pypi.org/project/url-normalize/4.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.
