{"vulnerability": "cve-2024-12254", "sightings": [{"uuid": "4d66eec4-35e6-4fb0-b563-5e29658ecef6", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2024-12254", "type": "seen", "source": "https://bsky.app/profile/mitsuhiko.at/post/3lgvrgcpcws24", "content": "", "creation_timestamp": "2025-01-29T20:06:38.137325Z"}, {"uuid": "e2629bf4-cf96-48a8-96f3-bb1a361d438e", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2024-12254", "type": "seen", "source": "https://bsky.app/profile/mitsuhiko.at/post/3lgvrgdrdsk24", "content": "", "creation_timestamp": "2025-01-29T20:06:38.617316Z"}, {"uuid": "865092cb-f454-4db3-8043-abf0f12ada5d", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2024-12254", "type": "seen", "source": "https://bsky.app/profile/ferramentaslinux.bsky.social/post/3miogaw2zts22", "content": "", "creation_timestamp": "2026-04-04T14:14:41.812524Z"}, {"uuid": "03669567-5fca-4fe9-a3d7-defd8ddf8eca", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2024-12254", "type": "seen", "source": "https://gist.github.com/Vizonex/8242da16ed2d6a48b7acb812fee88957", "content": "", "creation_timestamp": "2025-09-11T23:45:45.000000Z"}, {"uuid": "8d2f5f37-6109-442a-a5cb-d0bece4dae42", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2024-12254", "type": "published-proof-of-concept", "source": "https://t.me/DarkWebInformer_CVEAlerts/10589", "content": "\ud83d\udd17 DarkWebInformer.com - Cyber Threat Intelligence\n\ud83d\udccc CVE ID: CVE-2024-12254\n\ud83d\udd25 CVSS Score: 8.7 (cvssV4_0, Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N)\n\ud83d\udd39 Description: Starting in Python 3.12.0, the asyncio._SelectorSocketTransport.writelines()\n method would not \"pause\" writing and signal to the Protocol to drain \nthe buffer to the wire once the write buffer reached the \"high-water \nmark\". Because of this, Protocols would not periodically drain the write\n buffer potentially leading to memory exhaustion.\n\n\n\n\n\nThis\n vulnerability likely impacts a small number of users, you must be using\n Python 3.12.0 or later, on macOS or Linux, using the asyncio module \nwith protocols, and using .writelines() method which had new \nzero-copy-on-write behavior in Python 3.12.0 and later. If not all of \nthese factors are true then your usage of Python is unaffected.\n\ud83d\udccf Published: 2024-12-06T15:19:41.576Z\n\ud83d\udccf Modified: 2025-04-04T23:03:00.653Z\n\ud83d\udd17 References:\n1. https://github.com/python/cpython/issues/127655\n2. https://github.com/python/cpython/pull/127656\n3. https://mail.python.org/archives/list/security-announce@python.org/thread/H4O3UBAOAQQXGT4RE3E4XQYR5XLROORB/\n4. https://github.com/python/cpython/commit/71e8429ac8e2adc10084ab5ec29a62f4b6671a82\n5. https://github.com/python/cpython/commit/9aa0deb2eef2655a1029ba228527b152353135b5\n6. https://github.com/python/cpython/commit/e991ac8f2037d78140e417cc9a9486223eb3e786", "creation_timestamp": "2025-04-04T23:37:53.000000Z"}, {"uuid": "d2587000-02a7-4437-8f5d-42e128b2394c", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2024-12254", "type": "seen", "source": "https://t.me/cvedetector/12242", "content": "{\n  \"Source\": \"CVE FEED\",\n  \"Title\": \"CVE-2024-12254 - Starting in Python 3.12.0, the asyncio._SelectorSo\", \n  \"Content\": \"CVE ID : CVE-2024-12254 \nPublished : Dec. 6, 2024, 4:15 p.m. | 44\u00a0minutes ago \nDescription : Starting in Python 3.12.0, the asyncio._SelectorSocketTransport.writelines()  \n method would not \"pause\" writing and signal to the Protocol to drain   \nthe buffer to the wire once the write buffer reached the \"high-water   \nmark\". Because of this, Protocols would not periodically drain the write  \n buffer potentially leading to memory exhaustion.  \n  \n  \n  \n  \n  \nThis  \n vulnerability likely impacts a small number of users, you must be using  \n Python 3.12.0 or later, on macOS or Linux, using the asyncio module   \nwith protocols, and using .writelines() method which had new   \nzero-copy-on-write behavior in Python 3.12.0 and later. If not all of   \nthese factors are true then your usage of Python is unaffected. \nSeverity: 0.0 | NA \nVisit the link for more details, such as CVSS details, affected products, timeline, and more...\",\n  \"Detection Date\": \"06 Dec 2024\",\n  \"Type\": \"Vulnerability\"\n}\n\ud83d\udd39 t.me/cvedetector \ud83d\udd39", "creation_timestamp": "2024-12-06T18:08:03.000000Z"}, {"uuid": "689d3c5f-5aaa-43c5-a1c6-7aded976b983", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2024-12254", "type": "seen", "source": "https://gist.github.com/xinhongwang138-hue/6b83f89fed135d1aad9c8de5c574e471", "content": "import re\nfrom typing import TYPE_CHECKING, TypeVar\n\nfrom .typedefs import Handler, Middleware\nfrom .web_exceptions import HTTPMove, HTTPPermanentRedirect\nfrom .web_request import Request\nfrom .web_response import StreamResponse\nfrom .web_urldispatcher import SystemRoute\n\n__all__ = (\n    \"middleware\",\n    \"normalize_path_middleware\",\n)\n\nif TYPE_CHECKING:\n    from .web_app import Application\n\n_Func = TypeVar(\"_Func\")\n\n\nasync def _check_request_resolves(request: Request, path: str) -&gt; tuple[bool, Request]:\n    alt_request = request.clone(rel_url=path)\n\n    match_info = await request.app.router.resolve(alt_request)\n    alt_request._match_info = match_info\n\n    if match_info.http_exception is None:\n        return True, alt_request\n\n    return False, request\n\n\ndef middleware(f: _Func) -&gt; _Func:\n    f.__middleware_version__ = 1  # type: ignore[attr-defined]\n    return f\n\n\ndef normalize_path_middleware(\n    *,\n    append_slash: bool = True,\n    remove_slash: bool = False,\n    merge_slashes: bool = True,\n    redirect_class: type[HTTPMove] = HTTPPermanentRedirect,\n) -&gt; Middleware:\n    \"\"\"Factory for producing a middleware that normalizes the path of a request.\n\n    Normalizing means:\n        - Add or remove a trailing slash to the path.\n        - Double slashes are replaced by one.\n\n    The middleware returns as soon as it finds a path that resolves\n    correctly. The order if both merge and append/remove are enabled is\n        1) merge slashes\n        2) append/remove slash\n        3) both merge slashes and append/remove slash.\n    If the path resolves with at least one of those conditions, it will\n    redirect to the new path.\n\n    Only one of `append_slash` and `remove_slash` can be enabled. If both\n    are `True` the factory will raise an assertion error\n\n    If `append_slash` is `True` the middleware will append a slash when\n    needed. If a resource is defined with trailing slash and the request\n    comes without it, it will append it automatically.\n\n    If `remove_slash` is `True`, `append_slash` must be `False`. When enabled\n    the middleware will remove trailing slashes and redirect if the resource\n    is defined\n\n    If merge_slashes is True, merge multiple consecutive slashes in the\n    path into one.\n    \"\"\"\n    correct_configuration = not (append_slash and remove_slash)\n    assert correct_configuration, \"Cannot both remove and append slash\"\n\n    @middleware\n    async def impl(request: Request, handler: Handler) -&gt; StreamResponse:\n        if isinstance(request.match_info.route, SystemRoute):\n            paths_to_check = []\n            if \"?\" in request.raw_path:\n                path, query = request.raw_path.split(\"?\", 1)\n                query = \"?\" + query\n            else:\n                query = \"\"\n                path = request.raw_path\n\n            if merge_slashes:\n                paths_to_check.append(re.sub(\"//+\", \"/\", path))\n            if append_slash and not request.path.endswith(\"/\"):\n                paths_to_check.append(path + \"/\")\n            if remove_slash and request.path.endswith(\"/\"):\n                paths_to_check.append(path[:-1])\n            if merge_slashes and append_slash:\n                paths_to_check.append(re.sub(\"//+\", \"/\", path + \"/\"))\n            if merge_slashes and remove_slash:\n                merged_slashes = re.sub(\"//+\", \"/\", path)\n                paths_to_check.append(merged_slashes[:-1])\n\n            for path in paths_to_check:\n                path = re.sub(\"^//+\", \"/\", path)  # SECURITY: GHSA-v6wp-4m6f-gcjg\n                resolves, request = await _check_request_resolves(request, path)\n                if resolves:\n                    raise redirect_class(request.raw_path + query)\n\n        return await handler(request)\n\n    return impl\n\n\ndef _fix_request_current_app(app: \"Application\") -&gt; Middleware:\n    @middleware\n    async def impl(request: Request, handler: Handler) -&gt; StreamResponse:\n        match_info = request.match_info\n        prev = match_info.current_app\n        match_info.current_app = app\n        try:\n            return await handler(request)\n        finally:\n            match_info.current_app = prev\n\n    return impl\n\n\n\"\"\"Http related parsers and protocol.\"\"\"\n\nimport asyncio\nimport re\nimport sys\nfrom typing import (  # noqa\n    TYPE_CHECKING,\n    Any,\n    Awaitable,\n    Callable,\n    Iterable,\n    List,\n    NamedTuple,\n    Optional,\n)\n\nfrom multidict import CIMultiDict\n\nfrom .abc import AbstractStreamWriter\nfrom .base_protocol import BaseProtocol\nfrom .client_exceptions import ClientConnectionResetError\nfrom .compression_utils import ZLibCompressor\nfrom .helpers import NO_EXTENSIONS\n\n__all__ = (\"StreamWriter\", \"HttpVersion\", \"HttpVersion10\", \"HttpVersion11\")\n\nif sys.version_info &gt;= (3, 12):\n    from collections.abc import Buffer\nelse:\n    from typing import Union\n\n    Buffer = Union[bytes, bytearray, \"memoryview[int]\", \"memoryview[bytes]\"]\n\n\nMIN_PAYLOAD_FOR_WRITELINES = 2048\nIS_PY313_BEFORE_313_2 = (3, 13, 0) &lt;= sys.version_info &lt; (3, 13, 2)\nIS_PY_BEFORE_312_9 = sys.version_info &lt; (3, 12, 9)\nSKIP_WRITELINES = IS_PY313_BEFORE_313_2 or IS_PY_BEFORE_312_9\n# writelines is not safe for use\n# on Python 3.12+ until 3.12.9\n# on Python 3.13+ until 3.13.2\n# and on older versions it not any faster than write\n# CVE-2024-12254: https://github.com/python/cpython/pull/127656\n\n\nclass HttpVersion(NamedTuple):\n    major: int\n    minor: int\n\n\nHttpVersion10 = HttpVersion(1, 0)\nHttpVersion11 = HttpVersion(1, 1)\n\n\n_T_OnChunkSent = Optional[Callable[[Buffer], Awaitable[None]]]\n_T_OnHeadersSent = Optional[Callable[[\"CIMultiDict[str]\"], Awaitable[None]]]\n\n\nclass StreamWriter(AbstractStreamWriter):\n\n    length: int | None = None\n    chunked: bool = False\n    _eof: bool = False\n    _compress: ZLibCompressor | None = None\n\n    def __init__(\n        self,\n        protocol: BaseProtocol,\n        loop: asyncio.AbstractEventLoop,\n        on_chunk_sent: _T_OnChunkSent = None,\n        on_headers_sent: _T_OnHeadersSent = None,\n    ) -&gt; None:\n        self._protocol = protocol\n        self.loop = loop\n        self._on_chunk_sent: _T_OnChunkSent = on_chunk_sent\n        self._on_headers_sent: _T_OnHeadersSent = on_headers_sent\n        self._headers_buf: bytes | None = None\n        self._headers_written: bool = False\n\n    @property\n    def transport(self) -&gt; asyncio.Transport | None:\n        return self._protocol.transport\n\n    @property\n    def protocol(self) -&gt; BaseProtocol:\n        return self._protocol\n\n    def enable_chunking(self) -&gt; None:\n        self.chunked = True\n\n    def enable_compression(\n        self, encoding: str = \"deflate\", strategy: int | None = None\n    ) -&gt; None:\n        self._compress = ZLibCompressor(encoding=encoding, strategy=strategy)\n\n    def _write(self, chunk: Buffer) -&gt; None:\n        size = len(chunk)\n        self.buffer_size += size\n        self.output_size += size\n        transport = self._protocol.transport\n        if transport is None or transport.is_closing():\n            raise ClientConnectionResetError(\"Cannot write to closing transport\")\n        transport.write(chunk)\n\n    def _writelines(self, chunks: Iterable[Buffer]) -&gt; None:\n        size = 0\n        for chunk in chunks:\n            size += len(chunk)\n        self.buffer_size += size\n        self.output_size += size\n        transport = self._protocol.transport\n        if transport is None or transport.is_closing():\n            raise ClientConnectionResetError(\"Cannot write to closing transport\")\n        if SKIP_WRITELINES or size &lt; MIN_PAYLOAD_FOR_WRITELINES:\n            transport.write(b\"\".join(chunks))\n        else:\n            transport.writelines(chunks)\n\n    def _write_chunked_payload(self, chunk: Buffer) -&gt; None:\n        \"\"\"Write a chunk with proper chunked encoding.\"\"\"\n        chunk_len_pre = f\"{len(chunk):x}\\r\\n\".encode(\"ascii\")\n        self._writelines((chunk_len_pre, chunk, b\"\\r\\n\"))\n\n    def _send_headers_with_payload(self, chunk: Buffer, is_eof: bool) -&gt; None:\n        \"\"\"Send buffered headers with payload, coalescing into single write.\"\"\"\n        # Mark headers as written\n        self._headers_written = True\n        headers_buf = self._headers_buf\n        self._headers_buf = None\n\n        if TYPE_CHECKING:\n            # Safe because callers (write() and write_eof()) only invoke this method\n            # after checking that self._headers_buf is truthy\n            assert headers_buf is not None\n\n        if not self.chunked:\n            # Non-chunked: coalesce headers with body\n            if chunk:\n                self._writelines((headers_buf, chunk))\n            else:\n                self._write(headers_buf)\n            return\n\n        # Coalesce headers with chunked data\n        if chunk:\n            chunk_len_pre = f\"{len(chunk):x}\\r\\n\".encode(\"ascii\")\n            if is_eof:\n                self._writelines((headers_buf, chunk_len_pre, chunk, b\"\\r\\n0\\r\\n\\r\\n\"))\n            else:\n                self._writelines((headers_buf, chunk_len_pre, chunk, b\"\\r\\n\"))\n        elif is_eof:\n            self._writelines((headers_buf, b\"0\\r\\n\\r\\n\"))\n        else:\n            self._write(headers_buf)\n\n    async def write(\n        self, chunk: Buffer, *, drain: bool = True, LIMIT: int = 0x10000\n    ) -&gt; None:\n        \"\"\"\n        Writes chunk of data to a stream.\n\n        write_eof() indicates end of stream.\n        writer can't be used after write_eof() method being called.\n        write() return drain future.\n        \"\"\"\n        if self._on_chunk_sent is not None:\n            await self._on_chunk_sent(chunk)\n\n        if isinstance(chunk, memoryview):\n            if chunk.nbytes != len(chunk):\n                # just reshape it\n                chunk = chunk.cast(\"c\")\n\n        if self._compress is not None:\n            chunk = await self._compress.compress(chunk)\n            if not chunk:\n                return\n\n        if self.length is not None:\n            chunk_len = len(chunk)\n            if self.length &gt;= chunk_len:\n                self.length = self.length - chunk_len\n            else:\n                chunk = chunk[: self.length]\n                self.length = 0\n                if not chunk:\n                    return\n\n        # Handle buffered headers for small payload optimization\n        if self._headers_buf and not self._headers_written:\n            self._send_headers_with_payload(chunk, False)\n            if drain and self.buffer_size &gt; LIMIT:\n                self.buffer_size = 0\n                await self.drain()\n            return\n\n        if chunk:\n            if self.chunked:\n                self._write_chunked_payload(chunk)\n            else:\n                self._write(chunk)\n\n            if drain and self.buffer_size &gt; LIMIT:\n                self.buffer_size = 0\n                await self.drain()\n\n    async def write_headers(\n        self, status_line: str, headers: \"CIMultiDict[str]\"\n    ) -&gt; None:\n        \"\"\"Write headers to the stream.\"\"\"\n        if self._on_headers_sent is not None:\n            await self._on_headers_sent(headers)\n        # status + headers\n        buf = _serialize_headers(status_line, headers)\n        self._headers_written = False\n        self._headers_buf = buf\n\n    def send_headers(self) -&gt; None:\n        \"\"\"Force sending buffered headers if not already sent.\"\"\"\n        if not self._headers_buf or self._headers_written:\n            return\n\n        self._headers_written = True\n        headers_buf = self._headers_buf\n        self._headers_buf = None\n\n        if TYPE_CHECKING:\n            # Safe because we only enter this block when self._headers_buf is truthy\n            assert headers_buf is not None\n\n        self._write(headers_buf)\n\n    def set_eof(self) -&gt; None:\n        \"\"\"Indicate that the message is complete.\"\"\"\n        if self._eof:\n            return\n\n        # If headers haven't been sent yet, send them now\n        # This handles the case where there's no body at all\n        if self._headers_buf and not self._headers_written:\n            self._headers_written = True\n            headers_buf = self._headers_buf\n            self._headers_buf = None\n\n            if TYPE_CHECKING:\n                # Safe because we only enter this block when self._headers_buf is truthy\n                assert headers_buf is not None\n\n            # Combine headers and chunked EOF marker in a single write\n            if self.chunked:\n                self._writelines((headers_buf, b\"0\\r\\n\\r\\n\"))\n            else:\n                self._write(headers_buf)\n        elif self.chunked and self._headers_written:\n            # Headers already sent, just send the final chunk marker\n            self._write(b\"0\\r\\n\\r\\n\")\n\n        self._eof = True\n\n    async def write_eof(self, chunk: bytes = b\"\") -&gt; None:\n        if self._eof:\n            return\n\n        if chunk and self._on_chunk_sent is not None:\n            await self._on_chunk_sent(chunk)\n\n        # Handle body/compression\n        if self._compress:\n            chunks: list[bytes] = []\n            chunks_len = 0\n            if chunk and (compressed_chunk := await self._compress.compress(chunk)):\n                chunks_len = len(compressed_chunk)\n                chunks.append(compressed_chunk)\n\n            flush_chunk = self._compress.flush()\n            chunks_len += len(flush_chunk)\n            chunks.append(flush_chunk)\n            assert chunks_len\n\n            # Send buffered headers with compressed data if not yet sent\n            if self._headers_buf and not self._headers_written:\n                self._headers_written = True\n                headers_buf = self._headers_buf\n                self._headers_buf = None\n\n                if self.chunked:\n                    # Coalesce headers with compressed chunked data\n                    chunk_len_pre = f\"{chunks_len:x}\\r\\n\".encode(\"ascii\")\n                    self._writelines(\n                        (headers_buf, chunk_len_pre, *chunks, b\"\\r\\n0\\r\\n\\r\\n\")\n                    )\n                else:\n                    # Coalesce headers with compressed data\n                    self._writelines((headers_buf, *chunks))\n                await self.drain()\n                self._eof = True\n                return\n\n            # Headers already sent, just write compressed data\n            if self.chunked:\n                chunk_len_pre = f\"{chunks_len:x}\\r\\n\".encode(\"ascii\")\n                self._writelines((chunk_len_pre, *chunks, b\"\\r\\n0\\r\\n\\r\\n\"))\n            elif len(chunks) &gt; 1:\n                self._writelines(chunks)\n            else:\n                self._write(chunks[0])\n            await self.drain()\n            self._eof = True\n            return\n\n        # No compression - send buffered headers if not yet sent\n        if self._headers_buf and not self._headers_written:\n            # Use helper to send headers with payload\n            self._send_headers_with_payload(chunk, True)\n            await self.drain()\n            self._eof = True\n            return\n\n        # Handle remaining body\n        if self.chunked:\n            if chunk:\n                # Write final chunk with EOF marker\n                self._writelines(\n                    (f\"{len(chunk):x}\\r\\n\".encode(\"ascii\"), chunk, b\"\\r\\n0\\r\\n\\r\\n\")\n                )\n            else:\n                self._write(b\"0\\r\\n\\r\\n\")\n            await self.drain()\n            self._eof = True\n            return\n\n        if chunk:\n            self._write(chunk)\n            await self.drain()\n\n        self._eof = True\n\n    async def drain(self) -&gt; None:\n        \"\"\"Flush the write buffer.\n\n        The intended use is to write\n\n          await w.write(data)\n          await w.drain()\n        \"\"\"\n        protocol = self._protocol\n        if protocol.transport is not None and protocol._paused:\n            await protocol._drain_helper()\n\n\n# https://www.rfc-editor.org/info/rfc9110/#section-5.5-5\n# https://www.rfc-editor.org/info/rfc9112/#section-4-3\n_FORBIDDEN_HEADER_CHARS_RE = re.compile(r\"[\\x00-\\x08\\x0a-\\x1f\\x7f]\")\n\n\ndef _safe_header(string: str) -&gt; str:\n    if _FORBIDDEN_HEADER_CHARS_RE.search(string) is not None:\n        raise ValueError(\n            \"Forbidden control character detected in headers. \"\n            \"Potential header injection attack.\"\n        )\n    return string\n\n\ndef _py_serialize_headers(status_line: str, headers: \"CIMultiDict[str]\") -&gt; bytes:\n    _safe_header(status_line)\n    headers_gen = (_safe_header(k) + \": \" + _safe_header(v) for k, v in headers.items())\n    line = status_line + \"\\r\\n\" + \"\\r\\n\".join(headers_gen) + \"\\r\\n\\r\\n\"\n    return line.encode(\"utf-8\")\n\n\n_serialize_headers = _py_serialize_headers\n\ntry:\n    import aiohttp._http_writer as _http_writer  # type: ignore[import-not-found]\n\n    _c_serialize_headers = _http_writer._serialize_headers\n    if not NO_EXTENSIONS:\n        _serialize_headers = _c_serialize_headers\nexcept ImportError:\n    pass\n\n\nMetadata-Version: 2.4\nName: yarl\nVersion: 1.24.2\nSummary: Yet another URL library\nHome-page: https://github.com/aio-libs/yarl\nAuthor: Andrew Svetlov\nAuthor-email: andrew.svetlov@gmail.com\nMaintainer: aiohttp team \nMaintainer-email: team@aiohttp.org\nLicense: Apache-2.0\nProject-URL: Chat: Matrix, https://matrix.to/#/#aio-libs:matrix.org\nProject-URL: Chat: Matrix Space, https://matrix.to/#/#aio-libs-space:matrix.org\nProject-URL: CI: GitHub Workflows, https://github.com/aio-libs/yarl/actions?query=branch:master\nProject-URL: Code of Conduct, https://github.com/aio-libs/.github/blob/master/CODE_OF_CONDUCT.md\nProject-URL: Coverage: codecov, https://codecov.io/github/aio-libs/yarl\nProject-URL: Docs: Changelog, https://yarl.aio-libs.org/en/latest/changes/\nProject-URL: Docs: RTD, https://yarl.aio-libs.org\nProject-URL: GitHub: issues, https://github.com/aio-libs/yarl/issues\nProject-URL: GitHub: repo, https://github.com/aio-libs/yarl\nKeywords: cython,cext,yarl\nClassifier: Development Status :: 5 - Production/Stable\nClassifier: Intended Audience :: Developers\nClassifier: Programming Language :: Cython\nClassifier: Programming Language :: Python\nClassifier: Programming Language :: Python :: 3\nClassifier: Programming Language :: Python :: 3.10\nClassifier: Programming Language :: Python :: 3.11\nClassifier: Programming Language :: Python :: 3.12\nClassifier: Programming Language :: Python :: 3.13\nClassifier: Programming Language :: Python :: 3.14\nClassifier: Topic :: Internet :: WWW/HTTP\nClassifier: Topic :: Software Development :: Libraries :: Python Modules\nRequires-Python: &gt;=3.10\nDescription-Content-Type: text/x-rst\nLicense-File: LICENSE\nLicense-File: NOTICE\nRequires-Dist: idna&gt;=2.0\nRequires-Dist: multidict&gt;=4.0\nRequires-Dist: propcache&gt;=0.2.1\nDynamic: license-file\n\nyarl\n====\n\nThe module provides handy URL class for URL parsing and changing.\n\n.. image:: https://github.com/aio-libs/yarl/workflows/CI/badge.svg\n   :target: https://github.com/aio-libs/yarl/actions?query=workflow%3ACI\n   :align: right\n\n.. image:: https://codecov.io/gh/aio-libs/yarl/graph/badge.svg?flag=pytest\n   :target: https://app.codecov.io/gh/aio-libs/yarl?flags[]=pytest\n   :alt: Codecov coverage for the pytest-driven measurements\n\n.. image:: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json\n   :target: https://codspeed.io/aio-libs/yarl\n\n.. image:: https://badge.fury.io/py/yarl.svg\n   :target: https://badge.fury.io/py/yarl\n\n.. image:: https://readthedocs.org/projects/yarl/badge/?version=latest\n   :target: https://yarl.aio-libs.org\n\n.. image:: https://img.shields.io/pypi/pyversions/yarl.svg\n   :target: https://pypi.python.org/pypi/yarl\n\n.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&amp;logo=matrix&amp;server_fqdn=matrix.org&amp;style=flat\n   :target: https://matrix.to/#/%23aio-libs:matrix.org\n   :alt: Matrix Room \u2014 #aio-libs:matrix.org\n\n.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&amp;logo=matrix&amp;server_fqdn=matrix.org&amp;style=flat\n   :target: https://matrix.to/#/%23aio-libs-space:matrix.org\n   :alt: Matrix Space \u2014 #aio-libs-space:matrix.org\n\n\nIntroduction\n------------\n\nUrl is constructed from ``str``:\n\n.. code-block:: pycon\n\n   &gt;&gt;&gt; from yarl import URL\n   &gt;&gt;&gt; url = URL('https://www.python.org/~guido?arg=1#frag')\n   &gt;&gt;&gt; url\n   URL('https://www.python.org/~guido?arg=1#frag')\n\nAll url parts: *scheme*, *user*, *password*, *host*, *port*, *path*,\n*query* and *fragment* are accessible by properties:\n\n.. code-block:: pycon\n\n   &gt;&gt;&gt; url.scheme\n   'https'\n   &gt;&gt;&gt; url.host\n   'www.python.org'\n   &gt;&gt;&gt; url.path\n   '/~guido'\n   &gt;&gt;&gt; url.query_string\n   'arg=1'\n   &gt;&gt;&gt; url.query\n   \n   &gt;&gt;&gt; url.fragment\n   'frag'\n\nAll url manipulations produce a new url object:\n\n.. code-block:: pycon\n\n   &gt;&gt;&gt; url = URL('https://www.python.org')\n   &gt;&gt;&gt; url / 'foo' / 'bar'\n   URL('https://www.python.org/foo/bar')\n   &gt;&gt;&gt; url / 'foo' % {'bar': 'baz'}\n   URL('https://www.python.org/foo?bar=baz')\n\nStrings passed to constructor and modification methods are\nautomatically encoded giving canonical representation as result:\n\n.. code-block:: pycon\n\n   &gt;&gt;&gt; url = URL('https://www.python.org/\u0448\u043b\u044f\u0445')\n   &gt;&gt;&gt; url\n   URL('https://www.python.org/%D1%88%D0%BB%D1%8F%D1%85')\n\nRegular properties are *percent-decoded*, use ``raw_`` versions for\ngetting *encoded* strings:\n\n.. code-block:: pycon\n\n   &gt;&gt;&gt; url.path\n   '/\u0448\u043b\u044f\u0445'\n\n   &gt;&gt;&gt; url.raw_path\n   '/%D1%88%D0%BB%D1%8F%D1%85'\n\nHuman readable representation of URL is available as ``.human_repr()``:\n\n.. code-block:: pycon\n\n   &gt;&gt;&gt; url.human_repr()\n   'https://www.python.org/\u0448\u043b\u044f\u0445'\n\nFor full documentation please read https://yarl.aio-libs.org.\n\n\nInstallation\n------------\n\n::\n\n   $ pip install yarl\n\nThe library is Python 3 only!\n\nPyPI contains binary wheels for Linux, Windows and MacOS.  If you want to install\n``yarl`` on another operating system where wheels are not provided,\nthe tarball will be used to compile the library from\nthe source code. It requires a C compiler and and Python headers installed.\n\nTo skip the compilation you must explicitly opt-in by using a PEP 517\nconfiguration setting ``pure-python``, or setting the ``YARL_NO_EXTENSIONS``\nenvironment variable to a non-empty value, e.g.:\n\n.. code-block:: console\n\n   $ pip install yarl --config-settings=pure-python=false\n\nPlease note that the pure-Python (uncompiled) version is much slower. However,\nPyPy always uses a pure-Python implementation, and, as such, it is unaffected\nby this variable.\n\nDependencies\n------------\n\nYARL requires multidict_ and propcache_ libraries.\n\n\nAPI documentation\n------------------\n\nThe documentation is located at https://yarl.aio-libs.org.\n\n\nWhy isn't boolean supported by the URL query API?\n-------------------------------------------------\n\nThere is no standard for boolean representation of boolean values.\n\nSome systems prefer ``true``/``false``, others like ``yes``/``no``, ``on``/``off``,\n``Y``/``N``, ``1``/``0``, etc.\n\n``yarl`` cannot make an unambiguous decision on how to serialize ``bool`` values because\nit is specific to how the end-user's application is built and would be different for\ndifferent apps.  The library doesn't accept booleans in the API; a user should convert\nbools into strings using own preferred translation protocol.\n\n\nComparison with other URL libraries\n------------------------------------\n\n* furl (https://pypi.python.org/pypi/furl)\n\n  The library has rich functionality but the ``furl`` object is mutable.\n\n  I'm afraid to pass this object into foreign code: who knows if the\n  code will modify my url in a terrible way while I just want to send URL\n  with handy helpers for accessing URL properties.\n\n  ``furl`` has other non-obvious tricky things but the main objection\n  is mutability.\n\n* URLObject (https://pypi.python.org/pypi/URLObject)\n\n  URLObject is immutable, that's pretty good.\n\n  Every URL change generates a new URL object.\n\n  But the library doesn't do any decode/encode transformations leaving the\n  end user to cope with these gory details.\n\n\nSource code\n-----------\n\nThe project is hosted on GitHub_\n\nPlease file an issue on the `bug tracker\n`_ if you have found a bug\nor have some suggestion in order to improve the library.\n\nDiscussion list\n---------------\n\n*aio-libs* google group: https://groups.google.com/forum/#!forum/aio-libs\n\nFeel free to post your questions and ideas here.\n\n\nAuthors and License\n-------------------\n\nThe ``yarl`` package is written by Andrew Svetlov.\n\nIt's *Apache 2* licensed and freely available.\n\n\n.. _GitHub: https://github.com/aio-libs/yarl\n\n.. _multidict: https://github.com/aio-libs/multidict\n\n.. _propcache: https://github.com/aio-libs/propcache\n\n=========\nChangelog\n=========\n\n..\n    You should *NOT* be adding new change log entries to this file, this\n    file is managed by towncrier. You *may* edit previous change logs to\n    fix problems like typo corrections or such.\n    To add a new change log entry, please see\n    https://pip.pypa.io/en/latest/development/#adding-a-news-entry\n    we named the news folder \"changes\".\n\n    WARNING: Don't drop the next directive!\n\n.. towncrier release notes start\n\nv1.24.2\n=======\n\n*(2026-05-19)*\n\n\nContributor-facing changes\n--------------------------\n\n- Switched the aarch64 and armv7l wheel builds to GitHub's native ARM\n  runners. The aarch64 wheels now build without QEMU emulation, and\n  armv7l runs on aarch64 hosts so its 32-bit ARM execution is far\n  cheaper than the previous aarch64-on-x86_64 path\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1724 `__.\n\n- Restored per-runner native arches in the Windows wheel matrix on tag\n  releases. The previous ``CIBW_ARCHS_WINDOWS=AMD64 ARM64`` setting made\n  both ``windows-latest`` and ``windows-11-arm`` cross-compile the other\n  arch, producing two artifacts with identically-named wheels whose\n  bytes differed; the deploy job's ``download-artifact ... merge-multiple``\n  step tore those writes together, yielding a wheel that PyPI rejected\n  with ``400 Invalid distribution file. ZIP archive not accepted:\n  Mis-matched data size`` during the 1.24.0 and 1.24.1 releases\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1725 `__.\n\n\n----\n\n\nv1.24.1\n=======\n\n*(2026-05-19)*\n\n\nContributor-facing changes\n--------------------------\n\n- Allowed re-running the deploy job after a partial release failure: the\n  ``Make Release`` step now skips when the GitHub Release already exists,\n  and the PyPI publish step uses ``skip-existing`` so dists that were\n  already uploaded on a prior attempt do not break the retry\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1721 `__.\n\n\n----\n\n\nv1.24.0\n=======\n\n*(2026-05-19)*\n\n\nBug fixes\n---------\n\n- Delayed importing pydantic until it's needed to avoid increased import time -- by `@Dreamsorcerer `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1607 `__, `#1702 `__.\n\n- Fixed pickling of ``~yarl.URL`` on Python 3.15, where ``SplitResult``\n  gained a ``__getstate__`` that requires attributes set by ``__init__``.\n  ``__getstate__`` now returns the raw 5-tuple instead of a ``SplitResult``\n  built via ``tuple.__new__``, so pickling no longer touches ``SplitResult``\n  serialization at all. Pickles produced by older yarl releases (which embed\n  a ``SplitResult``) continue to load unchanged\n  -- by `@befeleme `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1632 `__, `#1642 `__, `#1687 `__.\n\n- Fixed a parsing issue where URLs containing text before an opening bracket\n  in the host component (e.g. ``http://127.0.0.1[aa::ff]``) were silently accepted\n  instead of being rejected as strictly invalid per RFC 3986\n  -- by `@rodrigobnogueira `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1654 `__.\n\n- Raise ``ValueError`` when a URL's authority component contains a\n  backslash, which is not a valid character per ``3986``\n  -- by `@rodrigobnogueira `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1659 `__.\n\n- Fixed a host-confusion parsing bug where URLs containing multiple bracket\n  characters in the host component (e.g. ``http://[:localhost[]].google:80``)\n  were silently parsed as an unintended host. Both ``split_url()`` and\n  ``split_netloc()`` now raise ``ValueError`` when more than one ``[`` or\n  ``]`` is found in the authority, or when ``[`` does not appear at the start of\n  the host subcomponent, in compliance with ``3986`` -- by\n  `@rodrigobnogueira `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1661 `__.\n\n- Fixed a parser/serializer inconsistency where percent-encoded characters in\n  the scheme portion of a URL (e.g. ``ht%74p://...``) were decoded by the\n  requoter, causing ``str()`` and ``yarl.URL.human_repr()`` to emit an\n  absolute URL with a scheme and host while the parsed properties\n  (``~yarl.URL.scheme``, ``~yarl.URL.host``, ``~yarl.URL.absolute``)\n  reported a relative, hostless URL. The fix preserves the percent-encoding of\n  the colon (``%3A``) in relative paths whenever decoding it would materialize a\n  URL scheme -- by `@rodrigobnogueira `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1669 `__.\n\n- Fixed a parsing issue where URLs containing text after the closing bracket\n  of an IP-literal host (e.g. ``http://[::1]allowed.example:1/``) were silently\n  accepted and normalized to the bracketed IP address (``http://[::1]:1/``),\n  dropping the trailing suffix and changing the effective host identity.\n  Per RFC 3986, after the closing ``]`` only ``:`` followed by a port number or\n  end-of-authority is valid\n  -- by `@rodrigobnogueira `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1672 `__.\n\n\nFeatures\n--------\n\n- Start building and shipping riscv64 wheels\n  -- by `@justeph `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1626 `__.\n\n\nRemovals and backward incompatible breaking changes\n---------------------------------------------------\n\n- Dropped support for the experimental free-threaded build of Python 3.13 -- by `@ngoldbaum `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1667 `__.\n\n\nImproved documentation\n----------------------\n\n- Added a note in the ``yarl.URL.with_query()`` documentation explaining\n  that types implementing ``__int__`` (e.g. ``~uuid.UUID``) are\n  converted to integers, and advising users to cast to ``str`` when the\n  human-readable representation is needed -- by `@r266-tech `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1638 `__, `#1645 `__.\n\n\nContributor-facing changes\n--------------------------\n\n- Resolved a ruff ``ISC004`` violation in the PEP 517 build backend so the\n  pre-commit ``ruff-check`` hook passes again\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1674 `__.\n\n- Renamed the ``actions/checkout`` ``depth`` input to ``fetch-depth`` in the\n  reusable codspeed workflow so the actionlint pre-commit hook passes and the\n  intended shallow clone actually takes effect\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1676 `__.\n\n- Bumped the pinned ``pyupgrade`` pre-commit hook to ``v3.21.2`` so it stops\n  crashing on Python 3.14, which made ``tokenize.cookie_re`` bytes-only\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1677 `__.\n\n- The type preciseness coverage report generated by `MyPy\n  `__ is now uploaded to `Coveralls\n  `__ and\n  will not be included in the `Codecov views\n  `__ going forward\n  -- by `@webknjaz `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1680 `__.\n\n- Raised the per-matrix-cell timeout of the CI ``Test`` job from\n  5 to 10 minutes to prevent false failures on slower runners\n  -- by `@aiolibsbot `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1683 `__.\n\n- Added an ``AGENTS.md`` orientation file at the repository root,\n  covering the pull request template, ``CHANGES/`` news fragment\n  conventions, draft-PR workflow, and the Cython quoter layout, so\n  LLM contributors land changes that match project style\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1685 `__.\n\n- Documented in ``AGENTS.md`` that the coverage gate also\n  applies to test code, so unreachable defensive ``raise`` guards\n  and one-sided cleanup branches in tests will fail CI\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1689 `__.\n\n- Shrunk the CI wheel-build matrix on pull requests and non-tag pushes by\n  restricting ``CIBW_ARCHS_MACOS`` to ``arm64``, ``CIBW_ARCHS_WINDOWS`` to\n  ``AMD64``, and skipping the ``windows-11-arm`` runner -- the test matrix only\n  exercises those architectures, so the previously-built ``x86_64`` macOS and\n  ``ARM64`` Windows wheels were never installed. Tag releases still build the\n  full architecture set\n  -- by `@aiolibsbot `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1692 `__.\n\n- Documented the docs spell check (``make doc-spelling``) in\n  ``AGENTS.md`` as a pre-push gate, mirroring\n  `aio-libs/multidict#1345\n  `__. The\n  spell checker reads every ``CHANGES/*.rst`` fragment as part\n  of the docs build, so an unknown technical word in a news\n  fragment fails CI before a human sees the PR\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1693 `__.\n\n- Added a ``CLAUDE.md`` at the repository root that imports\n  ``AGENTS.md`` via Claude Code's ``@``-syntax, so the\n  project's LLM contributor rules load automatically when\n  working in Claude Code\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1696 `__.\n\n- Enforced top-level imports across ``yarl`` and ``tests`` via the ruff\n  ``PLC0415`` rule, wired through a new ``ruff-check`` pre-commit hook.\n  Function-scoped imports must now opt in with ``# noqa: PLC0415`` plus\n  a comment explaining the import-time reason. Dropped the ``yesqa``\n  hook, which could not recognize ruff-only codes and stripped the new\n  ``noqa`` comments as stale; a wider migration off flake8 onto ruff\n  will follow separately\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1697 `__.\n\n- Migrated the main tree from standalone ``black`` and ``isort``\n  pre-commit hooks to ``ruff format`` and the ruff ``I`` lint rule,\n  sharing the existing ``[tool.ruff]`` config in ``pyproject.toml``.\n  ``ruff-check`` now runs with ``--fix`` so import-order fixes apply\n  on commit, and the orphan ``[isort]`` block in ``setup.cfg`` was\n  removed. The ``packaging/pep517_backend/`` subtree keeps its own\n  ``.ruff.toml`` and is unaffected\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1698 `__.\n\n- Switched the ``cibuildwheel`` build frontend to ``build[uv]`` so\n  that ``uv`` provisions every build and test virtual environment\n  in the wheel matrix. Test-dependency installation in particular\n  drops from a multi-second ``pip install`` per ABI to a roughly\n  sub-second ``uv`` resolve\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1699 `__.\n\n- Restructured the root ``CLAUDE.md`` to import contributor\n  context from a shared ``aio-libs`` layer\n  (``~/.claude/aio-libs/context.md``), a project-specific layer\n  (``~/.claude/aio-libs/yarl/context.md``), the in-tree\n  ``AGENTS.md``, and an optional per-checkout\n  ``CLAUDE.local.md`` override (added to ``.gitignore``),\n  so shared ``aio-libs`` guidance can live outside the repository\n  while project rules continue to load automatically in Claude\n  Code -- by `@aiolibsbot `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1700 `__, `#1701 `__.\n\n- Switched CI/CD to ``tox-dev/workflow``'s ``reusable-tox.yml``\n  driven by an in-tree ``tox.ini``. The ``build``,\n  ``metadata-validation`` and ``lint`` (``pre-commit``,\n  ``spellcheck-docs``, ``build-docs``) jobs all run through the\n  reusable workflow; MyPy coverage uploads to Coveralls from a\n  ``post-tox-job`` hook\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1711 `__.\n\n- Switched the CI ``test`` job from ``actions/setup-python`` to\n  ``astral-sh/setup-uv`` with ``uv pip install``. Pre-release\n  interpreters skip the wheel cache so each run resolves freshly\n  against the current snapshot\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1715 `__.\n\n- Switched the ``Aiohttp`` workflow that runs the aiohttp test\n  suite against the in-tree yarl checkout from\n  ``actions/setup-python`` to ``astral-sh/setup-uv`` with ``uv\n  pip install``\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1716 `__.\n\n- Switched the ``Aiohttp`` workflow's ``make .develop`` step to\n  install aiohttp's dev env through ``uv pip`` by passing\n  ``PIP=\"uv pip\"``\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1717 `__.\n\n\n----\n\n\n1.23.0\n======\n\n*(2025-12-16)*\n\n\nFeatures\n--------\n\n- Added support for ``pydantic``, the ``~yarl.URL`` could be used as a\n  field type in ``pydantic`` models seamlessly.\n\n  *Related issues and pull requests on GitHub:*\n  `#1607 `__.\n\n\nPackaging updates and notes for downstreams\n-------------------------------------------\n\n- The CI has been set up to notify Codecov about upload completion\n  -- by `@webknjaz `__.\n\n  With this, Codecov no longer needs to guess whether it received all\n  the intended coverage reports or not.\n\n  *Related issues and pull requests on GitHub:*\n  `#1577 `__.\n\n- The in-tree build backend allows the end-users appending\n  ``CFLAGS`` and ``LDFLAGS`` by setting respective environment\n  variables externally.\n\n  It additionally sets up default compiler flags to perform\n  building with maximum optimization in release mode. This\n  makes the resulting artifacts shipped to PyPI smaller.\n\n  When line tracing is requested, the compiler and linker\n  flags are configured to include as much information as\n  possible for debugging and coverage tracking. The\n  development builds are therefore smaller.\n\n  -- by `@webknjaz `__\n\n  *Related issues and pull requests on GitHub:*\n  `#1586 `__.\n\n- The `PEP 517 `__ build backend now supports a new config\n  setting for controlling whether to build the project in-tree\n  or in a temporary directory. It only affects wheels and is\n  set up to build in a temporary directory by default. It does\n  not affect editable wheel builds \u2014 they will keep being\n  built in-tree regardless.\n\n  -- by `@webknjaz `__\n\n  Here's an example of using this setting:\n\n  .. code-block:: console\n\n     $ python -m build \\\n         --config-setting=build-inplace=true\n\n  *Related issues and pull requests on GitHub:*\n  `#1590 `__.\n\n- Starting this version, when building the wheels is happening\n  in an automatically created temporary directory, the build\n  backend makes an effort to normalize the respective file\n  system path to a deterministic source checkout directory.\n\n  -- by `@webknjaz `__\n\n  It does so by injecting the ``-ffile-prefix-map`` compiler\n  option into the ``CFLAGS`` environment variable as suggested\n  by known `reproducible build practices\n  `__.\n\n  The effect is that downstreams will get more reproducible\n  build results.\n\n  *Related issues and pull requests on GitHub:*\n  `#1591 `__.\n\n- Dropped Python 3.9 support; Python 3.10 is the minimal supported Python version\n  -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1609 `__.\n\n\nContributor-facing changes\n--------------------------\n\n- The deprecated license classifier was removed from ``setup.cfg``\n  -- by `@yegorich `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1550 `__.\n\n- The in-tree build backend allows the end-users appending\n  ``CFLAGS`` and ``LDFLAGS`` by setting respective environment\n  variables externally.\n\n  It additionally sets up default compiler flags to perform\n  building with maximum optimization in release mode. This\n  makes the resulting artifacts shipped to PyPI smaller.\n\n  When line tracing is requested, the compiler and linker\n  flags are configured to include as much information as\n  possible for debugging and coverage tracking. The\n  development builds are therefore smaller.\n\n  -- by `@webknjaz `__\n\n  *Related issues and pull requests on GitHub:*\n  `#1586 `__.\n\n- The CI has been updated to consistently benchmark optimized\n  release builds -- by `@webknjaz `__.\n\n  When the release workflow is triggered, the pre-built wheels\n  ready to hit PyPI are being tested. Otherwise, the job\n  builds the project from source, while the rest of the\n  workflow uses debug builds for line tracing and coverage\n  collection.\n\n  *Related issues and pull requests on GitHub:*\n  `#1587 `__.\n\n\n----\n\n\n1.22.0\n======\n\n*(2025-10-05)*\n\n\nFeatures\n--------\n\n- Added arm64 Windows wheel builds\n  -- by `@finnagin `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1516 `__.\n\n\n----\n\n\n1.21.0\n======\n\n*(2025-10-05)*\n\n\nContributor-facing changes\n--------------------------\n\n- The ``reusable-cibuildwheel.yml`` workflow has been refactored to\n  be more generic and ``ci-cd.yml`` now holds all the configuration\n  toggles -- by `@webknjaz `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1535 `__.\n\n- When building wheels, the source distribution is now passed directly\n  to the ``cibuildwheel`` invocation -- by `@webknjaz `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1536 `__.\n\n- Added CI for Python 3.14 -- by `@kumaraditya303 `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1560 `__.\n\n\n----\n\n\n1.20.1\n======\n\n*(2025-06-09)*\n\n\nBug fixes\n---------\n\n- Started raising a ``ValueError`` exception raised for corrupted\n  IPv6 URL values.\n\n  These fixes the issue where exception ``IndexError`` was\n  leaking from the internal code because of not being handled and\n  transformed into a user-facing error. The problem was happening\n  under the following conditions: empty IPv6 URL, brackets in\n  reverse order.\n\n  -- by `@MaelPic `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1512 `__.\n\n\nPackaging updates and notes for downstreams\n-------------------------------------------\n\n- Updated to use Cython 3.1 universally across the build path -- by `@lysnikolaou `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1514 `__.\n\n- Made Cython line tracing opt-in via the ``with-cython-tracing`` build config setting -- by `@bdraco `__.\n\n  Previously, line tracing was enabled by default in ``pyproject.toml``, which caused build issues for some users and made wheels nearly twice as slow.\n  Now line tracing is only enabled when explicitly requested via ``pip install . --config-setting=with-cython-tracing=true`` or by setting the ``YARL_CYTHON_TRACING`` environment variable.\n\n  *Related issues and pull requests on GitHub:*\n  `#1521 `__.\n\n\n----\n\n\n1.20.0\n======\n\n*(2025-04-16)*\n\n\nFeatures\n--------\n\n- Implemented support for the free-threaded build of CPython 3.13 -- by `@lysnikolaou `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1456 `__.\n\n\nPackaging updates and notes for downstreams\n-------------------------------------------\n\n- Started building wheels for the free-threaded build of CPython 3.13 -- by `@lysnikolaou `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1456 `__.\n\n\n----\n\n\n1.19.0\n======\n\n*(2025-04-05)*\n\n\nBug fixes\n---------\n\n- Fixed entire name being re-encoded when using ``yarl.URL.with_suffix()`` -- by `@NTFSvolume `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1468 `__.\n\n\nFeatures\n--------\n\n- Started building armv7l wheels for manylinux -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1495 `__.\n\n\nContributor-facing changes\n--------------------------\n\n- GitHub Actions CI/CD is now configured to manage caching pip-ecosystem\n  dependencies using `re-actors/cache-python-deps`_ -- an action by\n  `@webknjaz `__ that takes into account ABI stability and the exact\n  version of Python runtime.\n\n  .. _`re-actors/cache-python-deps`:\n     https://github.com/marketplace/actions/cache-python-deps\n\n  *Related issues and pull requests on GitHub:*\n  `#1471 `__.\n\n- Increased minimum `propcache`_ version to 0.2.1 to fix failing tests -- by `@bdraco `__.\n\n  .. _`propcache`:\n     https://github.com/aio-libs/propcache\n\n  *Related issues and pull requests on GitHub:*\n  `#1479 `__.\n\n- Added all hidden folders to pytest's ``norecursedirs`` to prevent it\n  from trying to collect tests there -- by `@lysnikolaou `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1480 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved accuracy of type annotations -- by `@Dreamsorcerer `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1484 `__.\n\n- Improved performance of parsing query strings -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1493 `__, `#1497 `__.\n\n- Improved performance of the C unquoter -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1496 `__, `#1498 `__.\n\n\n----\n\n\n1.18.3\n======\n\n*(2024-12-01)*\n\n\nBug fixes\n---------\n\n- Fixed uppercase ASCII hosts being rejected by ``URL.build()()`` and ``yarl.URL.with_host()`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#954 `__, `#1442 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performances of multiple path properties on cache miss -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1443 `__.\n\n\n----\n\n\n1.18.2\n======\n\n*(2024-11-29)*\n\n\nNo significant changes.\n\n\n----\n\n\n1.18.1\n======\n\n*(2024-11-29)*\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved cache performance when ``~yarl.URL`` objects are constructed from ``yarl.URL.build()`` with ``encoded=True`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1432 `__.\n\n- Improved cache performance for operations that produce a new ``~yarl.URL`` object -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1434 `__, `#1436 `__.\n\n\n----\n\n\n1.18.0\n======\n\n*(2024-11-21)*\n\n\nFeatures\n--------\n\n- Added ``keep_query`` and ``keep_fragment`` flags in the ``yarl.URL.with_path()``, ``yarl.URL.with_name()`` and ``yarl.URL.with_suffix()`` methods, allowing users to optionally retain the query string and fragment in the resulting URL when replacing the path -- by `@paul-nameless `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#111 `__, `#1421 `__.\n\n\nContributor-facing changes\n--------------------------\n\n- Started running downstream ``aiohttp`` tests in CI -- by `@Cycloctane `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1415 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of converting ``~yarl.URL`` to a string -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1422 `__.\n\n\n----\n\n\n1.17.2\n======\n\n*(2024-11-17)*\n\n\nBug fixes\n---------\n\n- Stopped implicitly allowing the use of Cython pre-release versions when\n  building the distribution package -- by `@ajsanchezsanz `__ and\n  `@markgreene74 `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1411 `__, `#1412 `__.\n\n- Fixed a bug causing ``~yarl.URL.port`` to return the default port when the given port was zero\n  -- by `@gmacon `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1413 `__.\n\n\nFeatures\n--------\n\n- Make error messages include details of incorrect type when ``port`` is not int in ``yarl.URL.build()``.\n  -- by `@Cycloctane `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1414 `__.\n\n\nPackaging updates and notes for downstreams\n-------------------------------------------\n\n- Stopped implicitly allowing the use of Cython pre-release versions when\n  building the distribution package -- by `@ajsanchezsanz `__ and\n  `@markgreene74 `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1411 `__, `#1412 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of the ``yarl.URL.joinpath()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1418 `__.\n\n\n----\n\n\n1.17.1\n======\n\n*(2024-10-30)*\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of many ``~yarl.URL`` methods -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1396 `__, `#1397 `__, `#1398 `__.\n\n- Improved performance of passing a `dict` or `str` to ``yarl.URL.extend_query()`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1401 `__.\n\n\n----\n\n\n1.17.0\n======\n\n*(2024-10-28)*\n\n\nFeatures\n--------\n\n- Added ``~yarl.URL.host_port_subcomponent`` which returns the ``3986#section-3.2.2`` host and ``3986#section-3.2.3`` port subcomponent -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1375 `__.\n\n\n----\n\n\n1.16.0\n======\n\n*(2024-10-21)*\n\n\nBug fixes\n---------\n\n- Fixed blocking I/O to load Python code when creating a new ``~yarl.URL`` with non-ascii characters in the network location part -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1342 `__.\n\n\nRemovals and backward incompatible breaking changes\n---------------------------------------------------\n\n- Migrated to using a single cache for encoding hosts -- by `@bdraco `__.\n\n  Passing ``ip_address_size`` and ``host_validate_size`` to ``yarl.cache_configure()`` is deprecated in favor of the new ``encode_host_size`` parameter and will be removed in a future release. For backwards compatibility, the old parameters affect the ``encode_host`` cache size.\n\n  *Related issues and pull requests on GitHub:*\n  `#1348 `__, `#1357 `__, `#1363 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of constructing ``~yarl.URL`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1336 `__.\n\n- Improved performance of calling ``yarl.URL.build()`` and constructing unencoded ``~yarl.URL`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1345 `__.\n\n- Reworked the internal encoding cache to improve performance on cache hit -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1369 `__.\n\n\n----\n\n\n1.15.5\n======\n\n*(2024-10-18)*\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of the ``yarl.URL.joinpath()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1304 `__.\n\n- Improved performance of the ``yarl.URL.extend_query()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1305 `__.\n\n- Improved performance of the ``yarl.URL.origin()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1306 `__.\n\n- Improved performance of the ``yarl.URL.with_path()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1307 `__.\n\n- Improved performance of the ``yarl.URL.with_query()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1308 `__, `#1328 `__.\n\n- Improved performance of the ``yarl.URL.update_query()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1309 `__, `#1327 `__.\n\n- Improved performance of the ``yarl.URL.join()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1313 `__.\n\n- Improved performance of ``~yarl.URL`` equality checks -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1315 `__.\n\n- Improved performance of ``~yarl.URL`` methods that modify the network location -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1316 `__.\n\n- Improved performance of the ``yarl.URL.with_fragment()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1317 `__.\n\n- Improved performance of calculating the hash of ``~yarl.URL`` objects -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1318 `__.\n\n- Improved performance of the ``yarl.URL.relative()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1319 `__.\n\n- Improved performance of the ``yarl.URL.with_name()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1320 `__.\n\n- Improved performance of ``~yarl.URL.parent`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1321 `__.\n\n- Improved performance of the ``yarl.URL.with_scheme()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1322 `__.\n\n\n----\n\n\n1.15.4\n======\n\n*(2024-10-16)*\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of the quoter when all characters are safe -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1288 `__.\n\n- Improved performance of unquoting strings -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1292 `__, `#1293 `__.\n\n- Improved performance of calling ``yarl.URL.build()`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1297 `__.\n\n\n----\n\n\n1.15.3\n======\n\n*(2024-10-15)*\n\n\nBug fixes\n---------\n\n- Fixed ``yarl.URL.build()`` failing to validate paths must start with a ``/`` when passing ``authority`` -- by `@bdraco `__.\n\n  The validation only worked correctly when passing ``host``.\n\n  *Related issues and pull requests on GitHub:*\n  `#1265 `__.\n\n\nRemovals and backward incompatible breaking changes\n---------------------------------------------------\n\n- Removed support for Python 3.8 as it has reached end of life -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1203 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of constructing ``~yarl.URL`` when the net location is only the host -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1271 `__.\n\n\n----\n\n\n1.15.2\n======\n\n*(2024-10-13)*\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of converting ``~yarl.URL`` to a string -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1234 `__.\n\n- Improved performance of ``yarl.URL.joinpath()`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1248 `__, `#1250 `__.\n\n- Improved performance of constructing query strings from ``~multidict.MultiDict`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1256 `__.\n\n- Improved performance of constructing query strings with ``int`` values -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1259 `__.\n\n\n----\n\n\n1.15.1\n======\n\n*(2024-10-12)*\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of calling ``yarl.URL.build()`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1222 `__.\n\n- Improved performance of all ``~yarl.URL`` methods that create new ``~yarl.URL`` objects -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1226 `__.\n\n- Improved performance of ``~yarl.URL`` methods that modify the network location -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1229 `__.\n\n\n----\n\n\n1.15.0\n======\n\n*(2024-10-11)*\n\n\nBug fixes\n---------\n\n- Fixed validation with ``yarl.URL.with_scheme()`` when passed scheme is not lowercase -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1189 `__.\n\n\nFeatures\n--------\n\n- Started building ``armv7l`` wheels -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1204 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of constructing unencoded ``~yarl.URL`` objects -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1188 `__.\n\n- Added a cache for parsing hosts to reduce overhead of encoding ``~yarl.URL`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1190 `__.\n\n- Improved performance of constructing query strings from ``~collections.abc.Mapping`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1193 `__.\n\n- Improved performance of converting ``~yarl.URL`` objects to strings -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1198 `__.\n\n\n----\n\n\n1.14.0\n======\n\n*(2024-10-08)*\n\n\nPackaging updates and notes for downstreams\n-------------------------------------------\n\n- Switched to using the ``propcache`` package for property caching\n  -- by `@bdraco `__.\n\n  The ``propcache`` package is derived from the property caching\n  code in ``yarl`` and has been broken out to avoid maintaining it for multiple\n  projects.\n\n  *Related issues and pull requests on GitHub:*\n  `#1169 `__.\n\n\nContributor-facing changes\n--------------------------\n\n- Started testing with Hypothesis -- by `@webknjaz `__ and `@bdraco `__.\n\n  Special thanks to `@Zac-HD `__ for helping us get started with this framework.\n\n  *Related issues and pull requests on GitHub:*\n  `#860 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of ``yarl.URL.is_default_port()`` when no explicit port is set -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1168 `__.\n\n- Improved performance of converting ``~yarl.URL`` to a string when no explicit port is set -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1170 `__.\n\n- Improved performance of the ``yarl.URL.origin()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1175 `__.\n\n- Improved performance of encoding hosts -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1176 `__.\n\n\n----\n\n\n1.13.1\n======\n\n*(2024-09-27)*\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of calling ``yarl.URL.build()`` with ``authority`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1163 `__.\n\n\n----\n\n\n1.13.0\n======\n\n*(2024-09-26)*\n\n\nBug fixes\n---------\n\n- Started rejecting ASCII hostnames with invalid characters. For host strings that\n  look like authority strings, the exception message includes advice on what to do\n  instead -- by `@mjpieters `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#880 `__, `#954 `__.\n\n- Fixed IPv6 addresses missing brackets when the ``~yarl.URL`` was converted to a string -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1157 `__, `#1158 `__.\n\n\nFeatures\n--------\n\n- Added ``~yarl.URL.host_subcomponent`` which returns the ``3986#section-3.2.2`` host subcomponent -- by `@bdraco `__.\n\n  The only current practical difference between ``~yarl.URL.raw_host`` and ``~yarl.URL.host_subcomponent`` is that IPv6 addresses are returned bracketed.\n\n  *Related issues and pull requests on GitHub:*\n  `#1159 `__.\n\n\n----\n\n\n1.12.1\n======\n\n*(2024-09-23)*\n\n\nNo significant changes.\n\n\n----\n\n\n1.12.0\n======\n\n*(2024-09-23)*\n\n\nFeatures\n--------\n\n- Added ``~yarl.URL.path_safe`` to be able to fetch the path without ``%2F`` and ``%25`` decoded -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1150 `__.\n\n\nRemovals and backward incompatible breaking changes\n---------------------------------------------------\n\n- Restore decoding ``%2F`` (``/``) in ``URL.path`` -- by `@bdraco `__.\n\n  This change restored the behavior before `#1057 `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1151 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of processing paths -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1143 `__.\n\n\n----\n\n\n1.11.1\n======\n\n*(2024-09-09)*\n\n\nBug fixes\n---------\n\n- Allowed scheme replacement for relative URLs if the scheme does not require a host -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#280 `__, `#1138 `__.\n\n- Allowed empty host for URL schemes other than the special schemes listed in the WHATWG URL spec -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1136 `__.\n\n\nFeatures\n--------\n\n- Loosened restriction on integers as query string values to allow classes that implement ``__int__`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1139 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of normalizing paths -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1137 `__.\n\n\n----\n\n\n1.11.0\n======\n\n*(2024-09-08)*\n\n\nFeatures\n--------\n\n- Added ``URL.extend_query()()`` method, which can be used to extend parameters without replacing same named keys -- by `@bdraco `__.\n\n  This method was primarily added to replace the inefficient hand rolled method currently used in ``aiohttp``.\n\n  *Related issues and pull requests on GitHub:*\n  `#1128 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of the Cython ``cached_property`` implementation -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1122 `__.\n\n- Simplified computing ports by removing unnecessary code -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1123 `__.\n\n- Improved performance of encoding non IPv6 hosts -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1125 `__.\n\n- Improved performance of ``URL.build()()`` when the path, query string, or fragment is an empty string -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1126 `__.\n\n- Improved performance of the ``URL.update_query()()`` method -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1130 `__.\n\n- Improved performance of processing query string changes when arguments are ``str`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1131 `__.\n\n\n----\n\n\n1.10.0\n======\n\n*(2024-09-06)*\n\n\nBug fixes\n---------\n\n- Fixed joining a path when the existing path was empty -- by `@bdraco `__.\n\n  A regression in ``URL.join()()`` was introduced in `#1082 `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1118 `__.\n\n\nFeatures\n--------\n\n- Added ``URL.without_query_params()()`` method, to drop some parameters from query string -- by `@hongquan `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#774 `__, `#898 `__, `#1010 `__.\n\n- The previously protected types ``_SimpleQuery``, ``_QueryVariable``, and ``_Query`` are now available for use externally as ``SimpleQuery``, ``QueryVariable``, and ``Query`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1050 `__, `#1113 `__.\n\n\nContributor-facing changes\n--------------------------\n\n- Replaced all ``~typing.Optional`` with ``~typing.Union`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1095 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Significantly improved performance of parsing the network location -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1112 `__.\n\n- Added internal types to the cache to prevent future refactoring errors -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1117 `__.\n\n\n----\n\n\n1.9.11\n======\n\n*(2024-09-04)*\n\n\nBug fixes\n---------\n\n- Fixed a ``TypeError`` with ``MultiDictProxy`` and Python 3.8 -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1084 `__, `#1105 `__, `#1107 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of encoding hosts -- by `@bdraco `__.\n\n  Previously, the library would unconditionally try to parse a host as an IP Address. The library now avoids trying to parse a host as an IP Address if the string is not in one of the formats described in ``3986#section-3.2.2``.\n\n  *Related issues and pull requests on GitHub:*\n  `#1104 `__.\n\n\n----\n\n\n1.9.10\n======\n\n*(2024-09-04)*\n\n\nBug fixes\n---------\n\n- ``URL.join()()`` has been changed to match\n  ``3986`` and align with\n  ``/ operation()`` and ``URL.joinpath()()``\n  when joining URLs with empty segments.\n  Previously ``urllib.parse.urljoin`` was used,\n  which has known issues with empty segments\n  (`python/cpython#84774 `_).\n\n  Due to the semantics of ``URL.join()()``, joining an\n  URL with scheme requires making it relative, prefixing with ``./``.\n\n  .. code-block:: pycon\n\n     &gt;&gt;&gt; URL(\"https://web.archive.org/web/\").join(URL(\"./https://github.com/aio-libs/yarl\"))\n     URL('https://web.archive.org/web/https://github.com/aio-libs/yarl')\n\n\n  Empty segments are honored in the base as well as the joined part.\n\n  .. code-block:: pycon\n\n     &gt;&gt;&gt; URL(\"https://web.archive.org/web/https://\").join(URL(\"github.com/aio-libs/yarl\"))\n     URL('https://web.archive.org/web/https://github.com/aio-libs/yarl')\n\n\n\n  -- by `@commonism `__\n\n  This change initially appeared in 1.9.5 but was reverted in 1.9.6 to resolve a problem with query string handling.\n\n  *Related issues and pull requests on GitHub:*\n  `#1039 `__, `#1082 `__.\n\n\nFeatures\n--------\n\n- Added ``~yarl.URL.absolute`` which is now preferred over ``URL.is_absolute()`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1100 `__.\n\n\n----\n\n\n1.9.9\n=====\n\n*(2024-09-04)*\n\n\nBug fixes\n---------\n\n- Added missing type on ``~yarl.URL.port`` -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1097 `__.\n\n\n----\n\n\n1.9.8\n=====\n\n*(2024-09-03)*\n\n\nFeatures\n--------\n\n- Covered the ``~yarl.URL`` object with types -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1084 `__.\n\n- Cache parsing of IP Addresses when encoding hosts -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1086 `__.\n\n\nContributor-facing changes\n--------------------------\n\n- Covered the ``~yarl.URL`` object with types -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1084 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of handling ports -- by `@bdraco `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1081 `__.\n\n\n----\n\n\n1.9.7\n=====\n\n*(2024-09-01)*\n\n\nRemovals and backward incompatible breaking changes\n---------------------------------------------------\n\n- Removed support ``3986#section-3.2.3`` port normalization when the scheme is not one of ``http``, ``https``, ``wss``, or ``ws`` -- by `@bdraco `__.\n\n  Support for port normalization was recently added in `#1033 `__ and contained code that would do blocking I/O if the scheme was not one of the four listed above. The code has been removed because this library is intended to be safe for usage with ``asyncio``.\n\n  *Related issues and pull requests on GitHub:*\n  `#1076 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- Improved performance of property caching -- by `@bdraco `__.\n\n  The ``reify`` implementation from ``aiohttp`` was adapted to replace the internal ``cached_property`` implementation.\n\n  *Related issues and pull requests on GitHub:*\n  `#1070 `__.\n\n\n----\n\n\n1.9.6\n=====\n\n*(2024-08-30)*\n\n\nBug fixes\n---------\n\n- Reverted ``3986`` compatible ``URL.join()()`` honoring empty segments which was introduced in `#1039 `__.\n\n  This change introduced a regression handling query string parameters with joined URLs. The change was reverted to maintain compatibility with the previous behavior.\n\n  *Related issues and pull requests on GitHub:*\n  `#1067 `__.\n\n\n----\n\n\n1.9.5\n=====\n\n*(2024-08-30)*\n\n\nBug fixes\n---------\n\n- Joining URLs with empty segments has been changed\n  to match ``3986``.\n\n  Previously empty segments would be removed from path,\n  breaking use-cases such as\n\n  .. code-block:: python\n\n     URL(\"https://web.archive.org/web/\") / \"https://github.com/\"\n\n  Now ``/ operation()`` and ``URL.joinpath()()``\n  keep empty segments, but do not introduce new empty segments.\n  e.g.\n\n  .. code-block:: python\n\n     URL(\"https://example.org/\") / \"\"\n\n  does not introduce an empty segment.\n\n  -- by `@commonism `__ and `@youtux `__\n\n  *Related issues and pull requests on GitHub:*\n  `#1026 `__.\n\n- The default protocol ports of well-known URI schemes are now taken into account\n  during the normalization of the URL string representation in accordance with\n  ``3986#section-3.2.3``.\n\n  Specified ports are removed from the ``str`` representation of a ``~yarl.URL``\n  if the port matches the scheme's default port -- by `@commonism `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1033 `__.\n\n- ``URL.join()()`` has been changed to match\n  ``3986`` and align with\n  ``/ operation()`` and ``URL.joinpath()()``\n  when joining URLs with empty segments.\n  Previously ``urllib.parse.urljoin`` was used,\n  which has known issues with empty segments\n  (`python/cpython#84774 `_).\n\n  Due to the semantics of ``URL.join()()``, joining an\n  URL with scheme requires making it relative, prefixing with ``./``.\n\n  .. code-block:: pycon\n\n     &gt;&gt;&gt; URL(\"https://web.archive.org/web/\").join(URL(\"./https://github.com/aio-libs/yarl\"))\n     URL('https://web.archive.org/web/https://github.com/aio-libs/yarl')\n\n\n  Empty segments are honored in the base as well as the joined part.\n\n  .. code-block:: pycon\n\n     &gt;&gt;&gt; URL(\"https://web.archive.org/web/https://\").join(URL(\"github.com/aio-libs/yarl\"))\n     URL('https://web.archive.org/web/https://github.com/aio-libs/yarl')\n\n\n\n  -- by `@commonism `__\n\n  *Related issues and pull requests on GitHub:*\n  `#1039 `__.\n\n\nRemovals and backward incompatible breaking changes\n---------------------------------------------------\n\n- Stopped decoding ``%2F`` (``/``) in ``URL.path``, as this could lead to code incorrectly treating it as a path separator\n  -- by `@Dreamsorcerer `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1057 `__.\n\n- Dropped support for Python 3.7 -- by `@Dreamsorcerer `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1016 `__.\n\n\nImproved documentation\n----------------------\n\n- On the ``Contributing docs`` page,\n  a link to the ``Towncrier philosophy`` has been fixed.\n\n  *Related issues and pull requests on GitHub:*\n  `#981 `__.\n\n- The pre-existing ``/ magic method()``\n  has been documented in the API reference -- by `@commonism `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1026 `__.\n\n\nPackaging updates and notes for downstreams\n-------------------------------------------\n\n- A flaw in the logic for copying the project directory into a\n  temporary folder that led to infinite recursion when ``TMPDIR``\n  was set to a project subdirectory path. This was happening in Fedora\n  and its downstream due to the use of `pyproject-rpm-macros\n  `__. It was\n  only reproducible with ``pip wheel`` and was not affecting the\n  ``pyproject-build`` users.\n\n  -- by `@hroncok `__ and `@webknjaz `__\n\n  *Related issues and pull requests on GitHub:*\n  `#992 `__, `#1014 `__.\n\n- Support Python 3.13 and publish non-free-threaded wheels\n\n  *Related issues and pull requests on GitHub:*\n  `#1054 `__.\n\n\nContributor-facing changes\n--------------------------\n\n- The CI/CD setup has been updated to test ``arm64`` wheels\n  under macOS 14, except for Python 3.7 that is unsupported\n  in that environment -- by `@webknjaz `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1015 `__.\n\n- Removed unused type ignores and casts -- by `@hauntsaninja `__.\n\n  *Related issues and pull requests on GitHub:*\n  `#1031 `__.\n\n\nMiscellaneous internal changes\n------------------------------\n\n- ``port``, ``scheme``, and ``raw_host`` are now ``cached_property`` -- by `@bdraco `__.\n\n  ``aiohttp`` accesses these properties quite often, which cause ``urllib`` to build the ``_hostinfo`` property every time. ``port``, ``scheme``, and ``raw_host`` are now cached properties, which will improve performance.\n\n  *Related issues and pull requests on GitHub:*\n  `#1044 `__, `#1058 `__.\n\n\n----\n\n\n1.9.4 (2023-12-06)\n==================\n\nBug fixes\n---------\n\n- Started raising ``TypeError`` when a string value is passed into\n  ``yarl.URL.build()`` as the ``port`` argument  -- by `@commonism `__.\n\n  Previously the empty string as port would create malformed URLs when rendered as string representations. (`#883 `__)\n\n\nPackaging updates and notes for downstreams\n-------------------------------------------\n\n- The leading ``--`` has been dropped from the `PEP 517 `__ in-tree build\n  backend config setting names. ``--pure-python`` is now just ``pure-python``\n  -- by `@webknjaz `__.\n\n  The usage now looks as follows:\n\n  .. code-block:: console\n\n      $ python -m build \\\n          --config-setting=pure-python=true \\\n          --config-setting=with-cython-tracing=true\n\n  (`#963 `__)\n\n\nContributor-facing changes\n--------------------------\n\n- A step-by-step ``Release Guide`` guide has\n  been added, describing how to release *yarl* -- by `@webknjaz `__.\n\n  This is primarily targeting maintainers. (`#960 `__)\n- Coverage collection has been implemented for the Cython modules\n  -- by `@webknjaz `__.\n\n  It will also be reported to Codecov from any non-release CI jobs.\n\n  To measure coverage in a development environment, *yarl* can be\n  installed in editable mode:\n\n  .. code-block:: console\n\n      $ python -Im pip install -e .\n\n  Editable install produces C-files required for the Cython coverage\n  plugin to map the measurements back to the PYX-files.\n\n  `#961 `__\n\n- It is now possible to request line tracing in Cython builds using the\n  ``with-cython-tracing`` `PEP 517 `__ config setting\n  -- `@webknjaz `__.\n\n  This can be used in CI and development environment to measure coverage\n  on Cython modules, but is not normally useful to the end-users or\n  downstream packagers.\n\n  Here's a usage example:\n\n  .. code-block:: console\n\n      $ python -Im pip install . --config-settings=with-cython-tracing=true\n\n  For editable installs, this setting is on by default. Otherwise, it's\n  off unless requested explicitly.\n\n  The following produces C-files required for the Cython coverage\n  plugin to map the measurements back to the PYX-files:\n\n  .. code-block:: console\n\n      $ python -Im pip install -e .\n\n  Alternatively, the ``YARL_CYTHON_TRACING=1`` environment variable\n  can be set to do the same as the `PEP 517 `__ config setting.\n\n  `#962 `__\n\n\n1.9.3 (2023-11-20)\n==================\n\nBug fixes\n---------\n\n- Stopped dropping trailing slashes in ``yarl.URL.joinpath()`` -- by `@gmacon `__. (`#862 `__, `#866 `__)\n- Started accepting string subclasses in ``yarl.URL.__truediv__()`` operations (``URL / segment``) -- by `@mjpieters `__. (`#871 `__, `#884 `__)\n- Fixed the human representation of URLs with square brackets in usernames and passwords -- by `@mjpieters `__. (`#876 `__, `#882 `__)\n- Updated type hints to include ``URL.missing_port()``, ``URL.__bytes__()``\n  and the ``encoding`` argument to ``yarl.URL.joinpath()``\n  -- by `@mjpieters `__. (`#891 `__)\n\n\nPackaging updates and notes for downstreams\n-------------------------------------------\n\n- Integrated Cython 3 to enable building *yarl* under Python 3.12 -- by `@mjpieters `__. (`#829 `__, `#881 `__)\n- Declared modern ``setuptools.build_meta`` as the `PEP 517 `__ build\n  backend in ``pyproject.toml`` explicitly -- by `@webknjaz `__. (`#886 `__)\n- Converted most of the packaging setup into a declarative ``setup.cfg``\n  config -- by `@webknjaz `__. (`#890 `__)\n- The packaging is replaced from an old-fashioned ``setup.py`` to an\n  in-tree `PEP 517 `__ build backend -- by `@webknjaz `__.\n\n  Whenever the end-users or downstream packagers need to build ``yarl`` from\n  source (a Git checkout or an sdist), they may pass a ``config_settings``\n  flag ``--pure-python``. If this flag is not set, a C-extension will be built\n  and included into the distribution.\n\n  Here is how this can be done with ``pip``:\n\n  .. code-block:: console\n\n      $ python -m pip install . --config-settings=--pure-python=false\n\n  This will also work with ``-e | --editable``.\n\n  The same can be achieved via ``pypa/build``:\n\n  .. code-block:: console\n\n      $ python -m build --config-setting=--pure-python=false\n\n  Adding ``-w | --wheel`` can force ``pypa/build`` produce a wheel from source\n  directly, as opposed to building an ``sdist`` and then building from it. (`#893 `__)\n\n  .. attention::\n\n     v1.9.3 was the only version using the ``--pure-python`` setting name.\n     Later versions dropped the ``--`` prefix, making it just ``pure-python``.\n\n- Declared Python 3.12 supported officially in the distribution package metadata\n  -- by `@edgarrmondragon `__. (`#942 `__)\n\n\nContributor-facing changes\n--------------------------\n\n- A regression test for no-host URLs was added per `#821 `__\n  and ``3986`` -- by `@kenballus `__. (`#821 `__, `#822 `__)\n- Started testing *yarl* against Python 3.12 in CI -- by `@mjpieters `__. (`#881 `__)\n- All Python 3.12 jobs are now marked as required to pass in CI\n  -- by `@edgarrmondragon `__. (`#942 `__)\n- MyST is now integrated in Sphinx -- by `@webknjaz `__.\n\n  This allows the contributors to author new documents in Markdown\n  when they have difficulties with going straight RST. (`#953 `__)\n\n\n1.9.2 (2023-04-25)\n==================\n\nBugfixes\n--------\n\n- Fix regression with ``yarl.URL.__truediv__()`` and absolute URLs with empty paths causing the raw path to lack the leading ``/``.\n  (`#854 `_)\n\n\n1.9.1 (2023-04-21)\n==================\n\nBugfixes\n--------\n\n- Marked tests that fail on older Python patch releases (&lt; 3.7.10, &lt; 3.8.8 and &lt; 3.9.2) as expected to fail due to missing a security fix for CVE-2021-23336. (`#850 `_)\n\n\n1.9.0 (2023-04-19)\n==================\n\nThis release was never published to PyPI, due to issues with the build process.\n\nFeatures\n--------\n\n- Added ``URL.joinpath(*elements)``, to create a new URL appending multiple path elements. (`#704 `_)\n- Made ``URL.__truediv__()()`` return ``NotImplemented`` if called with an\n  unsupported type \u2014 by `@michaeljpeters `__.\n  (`#832 `_)\n\n\nBugfixes\n--------\n\n- Path normalization for absolute URLs no longer raises a ValueError exception\n  when ``..`` segments would otherwise go beyond the URL path root.\n  (`#536 `_)\n- Fixed an issue with update_query() not getting rid of the query when argument is None. (`#792 `_)\n- Added some input restrictions on with_port() function to prevent invalid boolean inputs or out of valid port inputs; handled incorrect 0 port representation. (`#793 `_)\n- Made ``yarl.URL.build()`` raise a ``TypeError`` if the ``host`` argument is ``None`` \u2014 by `@paulpapacz `__. (`#808 `_)\n- Fixed an issue with ``update_query()`` getting rid of the query when the argument\n  is empty but not ``None``. (`#845 `_)\n\n\nMisc\n----\n\n- `#220 `_\n\n\n1.8.2 (2022-12-03)\n==================\n\nThis is the first release that started shipping wheels for Python 3.11.\n\n\n1.8.1 (2022-08-01)\n==================\n\nMisc\n----\n\n- `#694 `_, `#699 `_, `#700 `_, `#701 `_, `#702 `_, `#703 `_, `#739 `_\n\n\n1.8.0 (2022-08-01)\n==================\n\nFeatures\n--------\n\n- Added ``URL.raw_suffix``, ``URL.suffix``, ``URL.raw_suffixes``, ``URL.suffixes``, ``URL.with_suffix``. (`#613 `_)\n\n\nImproved Documentation\n----------------------\n\n- Fixed broken internal references to ``yarl.URL.human_repr()``.\n  (`#665 `_)\n- Fixed broken external references to ``multidict:index`` docs. (`#665 `_)\n\n\nDeprecations and Removals\n-------------------------\n\n- Dropped Python 3.6 support. (`#672 `_)\n\n\nMisc\n----\n\n- `#646 `_, `#699 `_, `#701 `_\n\n\n1.7.2 (2021-11-01)\n==================\n\nBugfixes\n--------\n\n- Changed call in ``with_port()`` to stop reencoding parts of the URL that were already encoded. (`#623 `_)\n\n\n1.7.1 (2021-10-07)\n==================\n\nBugfixes\n--------\n\n- Fix 1.7.0 build error\n\n1.7.0 (2021-10-06)\n==================\n\nFeatures\n--------\n\n- Add ``__bytes__()`` magic method so that ``bytes(url)`` will work and use optimal ASCII encoding.\n  (`#582 `_)\n- Started shipping platform-specific arm64 wheels for Apple Silicon. (`#622 `_)\n- Started shipping platform-specific wheels with the ``musl`` tag targeting typical Alpine Linux runtimes. (`#622 `_)\n- Added support for Python 3.10. (`#622 `_)\n\n\n1.6.3 (2020-11-14)\n==================\n\nBugfixes\n--------\n\n- No longer loose characters when decoding incorrect percent-sequences (like ``%e2%82%f8``). All non-decodable percent-sequences are now preserved.\n  `#517 `_\n- Provide x86 Windows wheels.\n  `#535 `_\n\n\n----\n\n\n1.6.2 (2020-10-12)\n==================\n\n\nBugfixes\n--------\n\n- Provide generated ``.c`` files in TarBall distribution.\n  `#530  `_\n\n1.6.1 (2020-10-12)\n==================\n\nFeatures\n--------\n\n- Provide wheels for ``aarch64``, ``i686``, ``ppc64le``, ``s390x`` architectures on\n  Linux as well as ``x86_64``.\n  `#507  `_\n- Provide wheels for Python 3.9.\n  `#526 `_\n\nBugfixes\n--------\n\n- ``human_repr()`` now always produces valid representation equivalent to the original URL (if the original URL is valid).\n  `#511 `_\n- Fixed  requoting a single percent followed by a percent-encoded character in the Cython implementation.\n  `#514 `_\n- Fix ValueError when decoding ``%`` which is not followed by two hexadecimal digits.\n  `#516 `_\n- Fix decoding ``%`` followed by a space and hexadecimal digit.\n  `#520 `_\n- Fix annotation of ``with_query()``/``update_query()`` methods for ``key=[val1, val2]`` case.\n  `#528 `_\n\nRemoval\n-------\n\n- Drop Python 3.5 support; Python 3.6 is the minimal supported Python version.\n\n\n----\n\n\n1.6.0 (2020-09-23)\n==================\n\nFeatures\n--------\n\n- Allow for int and float subclasses in query, while still denying bool.\n  `#492 `_\n\n\nBugfixes\n--------\n\n- Do not requote arguments in ``URL.build()``, ``with_xxx()`` and in ``/`` operator.\n  `#502 `_\n- Keep IPv6 brackets in ``origin()``.\n  `#504 `_\n\n\n----\n\n\n1.5.1 (2020-08-01)\n==================\n\nBugfixes\n--------\n\n- Fix including relocated internal ``yarl._quoting_c`` C-extension into published PyPI dists.\n  `#485 `_\n\n\nMisc\n----\n\n- `#484 `_\n\n\n----\n\n\n1.5.0 (2020-07-26)\n==================\n\nFeatures\n--------\n\n- Convert host to lowercase on URL building.\n  `#386 `_\n- Allow using ``mod`` operator (``%``) for updating query string (an alias for ``update_query()`` method).\n  `#435 `_\n- Allow use of sequences such as ``list`` and ``tuple`` in the values\n  of a mapping such as ``dict`` to represent that a key has many values::\n\n      url = URL(\"http://example.com\")\n      assert url.with_query({\"a\": [1, 2]}) == URL(\"http://example.com/?a=1&amp;a=2\")\n\n  `#443 `_\n- Support ``URL.build()`` with scheme and path (creates a relative URL).\n  `#464 `_\n- Cache slow IDNA encode/decode calls.\n  `#476 `_\n- Add ``@final`` / ``Final`` type hints\n  `#477 `_\n- Support URL authority/raw_authority properties and authority argument of ``URL.build()`` method.\n  `#478 `_\n- Hide the library implementation details, make the exposed public list very clean.\n  `#483 `_\n\n\nBugfixes\n--------\n\n- Fix tests with newer Python (3.7.6, 3.8.1 and 3.9.0+).\n  `#409 `_\n- Fix a bug where query component, passed in a form of mapping or sequence, is unquoted in unexpected way.\n  `#426 `_\n- Hide ``Query`` and ``QueryVariable`` type aliases in ``__init__.pyi``, now they are prefixed with underscore.\n  `#431 `_\n- Keep IPv6 brackets after updating port/user/password.\n  `#451 `_\n\n\n----\n\n\n1.4.2 (2019-12-05)\n==================\n\nFeatures\n--------\n\n- Workaround for missing ``str.isascii()`` in Python 3.6\n  `#389 `_\n\n\n----\n\n\n1.4.1 (2019-11-29)\n==================\n\n* Fix regression, make the library work on Python 3.5 and 3.6 again.\n\n1.4.0 (2019-11-29)\n==================\n\n* Distinguish an empty password in URL from a password not provided at all (#262)\n\n* Fixed annotations for optional parameters of ``URL.build`` (#309)\n\n* Use None as default value of ``user`` parameter of ``URL.build`` (#309)\n\n* Enforce building C Accelerated modules when installing from source tarball, use\n  ``YARL_NO_EXTENSIONS`` environment variable for falling back to (slower) Pure Python\n  implementation (#329)\n\n* Drop Python 3.5 support\n\n* Fix quoting of plus in path by pure python version (#339)\n\n* Don't create a new URL if fragment is unchanged (#292)\n\n* Included in error message the path that produces starting slash forbidden error (#376)\n\n* Skip slow IDNA encoding for ASCII-only strings (#387)\n\n\n1.3.0 (2018-12-11)\n==================\n\n* Fix annotations for ``query`` parameter (#207)\n\n* An incoming query sequence can have int variables (the same as for\n  Mapping type) (#208)\n\n* Add ``URL.explicit_port`` property (#218)\n\n* Give a friendlier error when port can't be converted to int (#168)\n\n* ``bool(URL())`` now returns ``False`` (#272)\n\n1.2.6 (2018-06-14)\n==================\n\n* Drop Python 3.4 trove classifier (#205)\n\n1.2.5 (2018-05-23)\n==================\n\n* Fix annotations for ``build`` (#199)\n\n1.2.4 (2018-05-08)\n==================\n\n* Fix annotations for ``cached_property`` (#195)\n\n1.2.3 (2018-05-03)\n==================\n\n* Accept ``str`` subclasses in ``URL`` constructor (#190)\n\n1.2.2 (2018-05-01)\n==================\n\n* Fix build\n\n1.2.1 (2018-04-30)\n==================\n\n* Pin minimal required Python to 3.5.3 (#189)\n\n1.2.0 (2018-04-30)\n==================\n\n* Forbid inheritance, replace ``__init__`` with ``__new__`` (#171)\n\n* Support PEP-561 (provide type hinting marker) (#182)\n\n1.1.1 (2018-02-17)\n==================\n\n* Fix performance regression: don't encode empty ``netloc`` (#170)\n\n1.1.0 (2018-01-21)\n==================\n\n* Make pure Python quoter consistent with Cython version (#162)\n\n1.0.0 (2018-01-15)\n==================\n\n* Use fast path if quoted string does not need requoting (#154)\n\n* Speed up quoting/unquoting by ``_Quoter`` and ``_Unquoter`` classes (#155)\n\n* Drop ``yarl.quote`` and ``yarl.unquote`` public functions (#155)\n\n* Add custom string writer, reuse static buffer if available (#157)\n  Code is 50-80 times faster than Pure Python version (was 4-5 times faster)\n\n* Don't recode IP zone (#144)\n\n* Support ``encoded=True`` in ``yarl.URL.build()`` (#158)\n\n* Fix updating query with multiple keys (#160)\n\n0.18.0 (2018-01-10)\n===================\n\n* Fallback to IDNA 2003 if domain name is not IDNA 2008 compatible (#152)\n\n0.17.0 (2017-12-30)\n===================\n\n* Use IDNA 2008 for domain name processing (#149)\n\n0.16.0 (2017-12-07)\n===================\n\n* Fix raising ``TypeError`` by ``url.query_string()`` after\n  ``url.with_query({})`` (empty mapping) (#141)\n\n0.15.0 (2017-11-23)\n===================\n\n* Add ``raw_path_qs`` attribute (#137)\n\n0.14.2 (2017-11-14)\n===================\n\n* Restore ``strict`` parameter as no-op in ``quote`` / ``unquote``\n\n0.14.1 (2017-11-13)\n===================\n\n* Restore ``strict`` parameter as no-op for sake of compatibility with\n  aiohttp 2.2\n\n0.14.0 (2017-11-11)\n===================\n\n* Drop strict mode (#123)\n\n* Fix ``\"ValueError: Unallowed PCT %\"`` when there's a ``\"%\"`` in the URL (#124)\n\n0.13.0 (2017-10-01)\n===================\n\n* Document ``encoded`` parameter (#102)\n\n* Support relative URLs like ``'?key=value'`` (#100)\n\n* Unsafe encoding for QS fixed. Encode ``;`` character in value parameter (#104)\n\n* Process passwords without user names (#95)\n\n0.12.0 (2017-06-26)\n===================\n\n* Properly support paths without leading slash in ``URL.with_path()`` (#90)\n\n* Enable type annotation checks\n\n0.11.0 (2017-06-26)\n===================\n\n* Normalize path (#86)\n\n* Clear query and fragment parts in ``.with_path()`` (#85)\n\n0.10.3 (2017-06-13)\n===================\n\n* Prevent double URL arguments unquoting (#83)\n\n0.10.2 (2017-05-05)\n===================\n\n* Unexpected hash behavior (#75)\n\n\n0.10.1 (2017-05-03)\n===================\n\n* Unexpected compare behavior (#73)\n\n* Do not quote or unquote + if not a query string. (#74)\n\n\n0.10.0 (2017-03-14)\n===================\n\n* Added ``URL.build`` class method (#58)\n\n* Added ``path_qs`` attribute (#42)\n\n\n0.9.8 (2017-02-16)\n==================\n\n* Do not quote ``:`` in path\n\n\n0.9.7 (2017-02-16)\n==================\n\n* Load from pickle without _cache (#56)\n\n* Percent-encoded pluses in path variables become spaces (#59)\n\n\n0.9.6 (2017-02-15)\n==================\n\n* Revert backward incompatible change (BaseURL)\n\n\n0.9.5 (2017-02-14)\n==================\n\n* Fix BaseURL rich comparison support\n\n\n0.9.4 (2017-02-14)\n==================\n\n* Use BaseURL\n\n\n0.9.3 (2017-02-14)\n==================\n\n* Added BaseURL\n\n\n0.9.2 (2017-02-08)\n==================\n\n* Remove debug print\n\n\n0.9.1 (2017-02-07)\n==================\n\n* Do not lose tail chars (#45)\n\n\n0.9.0 (2017-02-07)\n==================\n\n* Allow to quote ``%`` in non strict mode (#21)\n\n* Incorrect parsing of query parameters with %3B (;) inside (#34)\n\n* Fix core dumps (#41)\n\n* ``tmpbuf`` - compiling error (#43)\n\n* Added ``URL.update_path()`` method\n\n* Added ``URL.update_query()`` method (#47)\n\n\n0.8.1 (2016-12-03)\n==================\n\n* Fix broken aiohttp: revert back ``quote`` / ``unquote``.\n\n\n0.8.0 (2016-12-03)\n==================\n\n* Support more verbose error messages in ``.with_query()`` (#24)\n\n* Don't percent-encode ``@`` and ``:`` in path (#32)\n\n* Don't expose ``yarl.quote`` and ``yarl.unquote``, these functions are\n  part of private API\n\n0.7.1 (2016-11-18)\n==================\n\n* Accept not only ``str`` but all classes inherited from ``str`` also (#25)\n\n0.7.0 (2016-11-07)\n==================\n\n* Accept ``int`` as value for ``.with_query()``\n\n0.6.0 (2016-11-07)\n==================\n\n* Explicitly use UTF8 encoding in ``setup.py`` (#20)\n* Properly unquote non-UTF8 strings (#19)\n\n0.5.3 (2016-11-02)\n==================\n\n* Don't use ``typing.NamedTuple`` fields but indexes on URL construction\n\n0.5.2 (2016-11-02)\n==================\n\n* Inline ``_encode`` class method\n\n0.5.1 (2016-11-02)\n==================\n\n* Make URL construction faster by removing extra classmethod calls\n\n0.5.0 (2016-11-02)\n==================\n\n* Add Cython optimization for quoting/unquoting\n* Provide binary wheels\n\n0.4.3 (2016-09-29)\n==================\n\n* Fix typing stubs\n\n0.4.2 (2016-09-29)\n==================\n\n* Expose ``quote()`` and ``unquote()`` as public API\n\n0.4.1 (2016-09-28)\n==================\n\n* Support empty values in query (``'/path?arg'``)\n\n0.4.0 (2016-09-27)\n==================\n\n* Introduce ``relative()`` (#16)\n\n0.3.2 (2016-09-27)\n==================\n\n* Typo fixes #15\n\n0.3.1 (2016-09-26)\n==================\n\n* Support sequence of pairs as ``with_query()`` parameter\n\n0.3.0 (2016-09-26)\n==================\n\n* Introduce ``is_default_port()``\n\n0.2.1 (2016-09-26)\n==================\n\n* Raise ValueError for URLs like 'http://:8080/'\n\n0.2.0 (2016-09-18)\n==================\n\n* Avoid doubling slashes when joining paths (#13)\n\n* Appending path starting from slash is forbidden (#12)\n\n0.1.4 (2016-09-09)\n==================\n\n* Add ``kwargs`` support for ``with_query()`` (#10)\n\n0.1.3 (2016-09-07)\n==================\n\n* Document ``with_query()``, ``with_fragment()`` and ``origin()``\n\n* Allow ``None`` for ``with_query()`` and ``with_fragment()``\n\n0.1.2 (2016-09-07)\n==================\n\n* Fix links, tune docs theme.\n\n0.1.1 (2016-09-06)\n==================\n\n* Update README, old version used obsolete API\n\n0.1.0 (2016-09-06)\n==================\n\n* The library was deeply refactored, bytes are gone away but all\n  accepted strings are encoded if needed.\n\n0.0.1 (2016-08-30)\n==================\n\n* The first release.\n", "creation_timestamp": "2026-06-05T08:53:16.000000Z"}]}