Skip to content

Update url-normalize requirement from <3.2,>=1.4.3 to >=1.4.3,<4.1 - #8389

Merged
jobselko merged 1 commit into
mainfrom
dependabot/pip/url-normalize-gte-1.4.3-and-lt-4.1
Dec 1, 2026
Merged

jobselko merged 1 commit into
mainfrom
dependabot/pip/url-normalize-gte-1.4.3-and-lt-4.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Updates the requirements on url-normalize to permit the latest version.

Changelog

Sourced from url-normalize's changelog.

[4.0.0] - 2026-11-18

Upgrade notes

Normalized URLs can change in 4.0.0. Rebuild persisted cache keys and deduplication identifiers from original URLs; information discarded by earlier versions cannot always be recovered. Review custom allowlists because hostname and escaped-parameter matching also change.

See the README for detailed behavior, examples and CLI options.

Changed

  • BREAKING: Resolve dot segments before collapsing slashes: /a//../b now becomes /a/b instead of /b.
  • BREAKING: Preserve explicit relative references such as ../images/a.png, ./a, ?q=1 and #section, without adding a scheme or hostname.
  • BREAKING: Preserve hashbang fragments (#!/route) instead of converting them to _escaped_fragment_ query parameters. Keep literal fragment syntax and existing ASCII escapes intact. Callers needing legacy hashbang conversion must implement it explicitly.
  • BREAKING: Preserve leading and empty hostname labels, repeated trailing dots and dot-only hosts. A single trailing dot is still removed from other hosts.
  • BREAKING: Canonicalize IPv6 addresses using zero compression and dotted-decimal IPv4-mapped suffixes. Preserve zone identifiers. The same spelling applies to default domains and filter domain keys.
  • BREAKING: Reject literal display controls in parsed hosts, including IPv6 zone identifiers, with UnicodeError (a ValueError subclass). CLI errors omit the unsafe hostname.
  • BREAKING: Preserve reserved-character escapes in query names and values, including during humanization and filter matching: a/b and a%2Fb remain distinct.
  • BREAKING: Reject nonempty ports containing anything except ASCII digits with ValueError; the CLI exits with status 1. Numeric port ranges remain unchecked.
  • BREAKING: Validate default_scheme for inputs that remain nonempty after cleanup, even when unused. Accept whitespace, case differences and one trailing colon; malformed strings raise ValueError, and non-string values raise TypeError.
  • BREAKING: A custom allowlist now enables filtering without filter_params=True or CLI -f. Empty lists/maps remove all query parameters. To disable filtering, omit the rule or use param_allowlist=None with filter_params=False.
  • BREAKING: Treat string allowlist rules, including domain-specific rules, as one complete name: "id" selects id. Use a collection for multiple names; the CLI retains its comma-separated syntax.

Added

New options apply to both Python APIs, with corresponding CLI flags:

  • collapse_slashes controls repeated path slashes; it defaults to True. Use False or CLI --no-collapse-slashes to preserve them.
  • remove_trailing_slash=True removes trailing path slashes while retaining the root /.
  • keep_empty_components=True retains empty ? and # delimiters, including after filtering. Empty query fields are still removed.
  • param_denylist removes named parameters without an enable flag; denied names override allowed names.
  • remove_tracking_params=True removes the built-in set of tracking parameter names, including ttclid and srsltid.
  • sort_query=True sorts by normalized query key while preserving repeated-value order and flag versus flag=.
  • strip_fragment=True removes the whole fragment, overriding empty-fragment preservation.

Custom filters also accept reusable sequences, sets and domain mappings. Return types now distinguish string inputs (str) from None.

Fixed

  • Preserve explicit empty authorities in custom URLs such as unix:///tmp/service.sock and retain custom schemes when an opaque path begins with an escaped port number.
  • Use the original label case for IDNA processing and recognize percent-encoded DNS names in URL hosts and domain rules. Domain rules ignore one leading www. consistently.
  • Preserve percent escapes inside IPv6 zone identifiers and omit the authority from URL parsing errors.
  • Bound the number of whole-URL checks when humanizing queries with a mix of readable and double-encoded fields.
  • Normalize empty WebSocket paths to /: wss://example.com?room=1 becomes wss://example.com/?room=1.
  • Keep reserved credential escapes such as %40 encoded in humanized URLs, avoiding an extra literal @ in the authority.
  • Keep bidirectional controls and Unicode line/paragraph separators encoded in humanized output while retaining readable multilingual text.
  • Handle heavily zero-padded and long numeric ports without integer-conversion errors.
  • Improve normalization and humanization performance, especially for long queries.
  • Support custom CLI output streams without a callable reconfigure method.

[3.1.0] - 2026-10-28

... (truncated)

Commits
  • 46d13cb Map historical Git email to the project address
  • 2814853 Prepare url-normalize 4.0.0 release
  • 6994437 fix: reject display controls in URL hosts
  • a87ccaf refactor: remove redundant query cleanup
  • f38f3b6 refactor: separate URL parsing and encoding helpers
  • b5d1484 ci: check fresh runtime dependencies on schedule
  • 02c0fb8 perf: reuse reserved escape matcher
  • a0b2418 test: verify standalone README Python examples
  • 60f1aea test: enforce branch coverage
  • 1ae4e97 fix: preserve credential escapes in readable URLs
  • Additional commits viewable in compare view

@dependabot dependabot Bot added Dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 26, 2026
Updates the requirements on [url-normalize](https://github.com/niksite/url-normalize) to permit the latest version.
- [Release notes](https://github.com/niksite/url-normalize/releases)
- [Changelog](https://github.com/niksite/url-normalize/blob/master/CHANGELOG.md)
- [Commits](niksite/url-normalize@1.4.3...v4.0.0)

---
updated-dependencies:
- dependency-name: url-normalize
  dependency-version: 4.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pip/url-normalize-gte-1.4.3-and-lt-4.1 branch from 6a93911 to b30013d Compare November 30, 2026 21:34
@jobselko
jobselko merged commit 27f8762 into main Dec 1, 2026
25 of 27 checks passed
@jobselko
jobselko deleted the dependabot/pip/url-normalize-gte-1.4.3-and-lt-4.1 branch December 1, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file no-changelog no-issue python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant