unstale

pypi / yarl

yarl

What changed in yarl 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

15 breaking4 new APIs and options3 performance1 behavior and defaults4 tooling7 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

yarl 134 changes

Breaking changes 15

  • The pure Python quoter now rejects non-ASCII safe and protected characters when created, matching the C extension.

    1.25.1release notes

  • C and pure Python quoting implementations now reject percent signs in safe or protected when requoting, and spaces in safe or protected for query strings, keeping their behavior consistent.

    1.25.1release notes

  • The URL constructor and builder APIs now reject Unicode default-ignorable and format code points in hosts when IDNA normalization could change the host.

    1.24.5release notes

  • URL.build and URL.with_host now reject hosts that expand to /, ? or # under IDNA normalization.

    1.24.5release notes

  • When validate_host=True, IPv6 zone IDs now reject ASCII control characters and the empty string.

    1.24.5release notes

  • URL-building APIs now percent-encode a scheme-shaped leading colon in a relative path so its serialized form cannot be parsed as an absolute or executable-scheme URL.

    1.24.5release notes

  • Host validation now rejects Unicode percent characters that NFKC-normalize to a literal percent sign.

    1.24.5release notes

  • Support for the experimental free-threaded build of Python 3.13 was dropped.

    1.24.0release notes

  • Raises ValueError when the authority has multiple bracket characters or an opening bracket that is not at the start of the host subcomponent.

    1.24.0release notes

  • URLs with text before an opening bracket in the host component are now rejected as strictly invalid per RFC 3986.

    1.24.0release notes

  • A URL whose authority contains a backslash now raises ValueError because backslash is not valid under RFC 3986.

    1.24.0release notes

  • Rejects text after the closing bracket of an IP-literal host unless it is a port introduced by a colon or the end of the authority.

    1.24.0release notes

  • Python 3.9 support was dropped; Python 3.10 is now the minimum supported version.

    1.23.0release notes

  • The public yarl.quote function was dropped.

    1.0.0release notes

  • The public yarl.unquote function was dropped.

    1.0.0release notes

New APIs and options 4

  • Added a faster replacement for urllib.parse.parse_qsl with keep_blank_values=True that also accepts max_fields and encoding.

    1.25.1release notes

  • The PEP 517 build backend adds a config setting to choose in-tree or temporary-directory wheel builds; it defaults to a temporary directory and does not affect editable wheels.

    1.23.0release notes

  • yarl.URL can now be used seamlessly as a field type in pydantic models.

    1.23.0release notes

  • yarl.URL.build() supports encoded=True.

    1.0.0release notes

Performance 3

  • Improved C and pure Python unquoter performance, especially for long strings and strings with many percent-encoded characters.

    1.25.1release notes

  • Pydantic is imported only when needed to avoid increased import time.

    1.24.0release notes

  • Quoted strings that do not need requoting use a fast path.

    1.0.0release notes

Behavior and default changes 1

Tooling 4

  • The project starts building and shipping riscv64 wheels.

    1.24.0release notes

  • The in-tree build backend now allows users to append CFLAGS externally; it also sets compiler flags for optimized release builds and line-tracing builds.

    1.23.0release notes

  • The build backend injects this compiler option into CFLAGS for temporary-directory wheel builds to make downstream build results more reproducible.

    1.23.0release notes

  • The in-tree build backend now allows users to append LDFLAGS externally; it also configures linker flags for line-tracing builds.

    1.23.0release notes

Fixes and other changes 7

  • Fixed query parsing to stop returning empty fields and preserve invalid percent-encoded UTF-8; behavior again matches urllib.parse.parse_qsl. Related query methods also no longer double encode those escapes.

    1.25.1release notes

  • The Cython quoting backend now drops lone surrogates consistently with the pure-Python backend and preserves percent escapes when a surrogate falls within one.

    1.24.5release notes

  • IPv6 Zone ID URLs now expose the decoded % separator in host instead of %25.

    1.24.5release notes

  • Preserves percent-encoding of the colon in relative paths when decoding it would materialize a URL scheme, keeping serialized output consistent with parsed properties.

    1.24.0release notes

  • This release was yanked from PyPI because of a partial wheel publishing problem.

    1.24.0release notesrelease notes

  • Fixed pickling on Python 3.15; pickles from older yarl releases continue to load unchanged.

    1.24.0release notes

  • Updating a query with multiple keys is fixed.

    1.0.0release notes