From fc201e845dd5e98c6d96bc3bd3c9ea00e8035a29 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 30 Jul 2024 08:41:24 -0500 Subject: [PATCH] Release 3.10.0 (#8550) --- CHANGES.rst | 91 +++++++++++++++++---------------------------- aiohttp/__init__.py | 2 +- 2 files changed, 35 insertions(+), 58 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index e2617d23ee8..bd7a45b01f5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,7 +10,7 @@ .. towncrier release notes start -3.10.0rc0 (2024-07-29) +3.10.0 (2024-07-30) ======================== Bug fixes @@ -33,62 +33,6 @@ Bug fixes - -Removals and backward incompatible breaking changes ---------------------------------------------------- - -- The shutdown logic in 3.9 waited on all tasks, which caused issues with some libraries. - In 3.10 we've changed this logic to only wait on request handlers. This means that it's - important for developers to correctly handle the lifecycle of background tasks using a - library such as ``aiojobs``. If an application is using ``handler_cancellation=True`` then - it is also a good idea to ensure that any :func:`asyncio.shield` calls are replaced with - :func:`aiojobs.aiohttp.shield`. - - Please read the updated documentation on these points: - https://docs.aiohttp.org/en/stable/web_advanced.html#graceful-shutdown - https://docs.aiohttp.org/en/stable/web_advanced.html#web-handler-cancellation - - -- by :user:`Dreamsorcerer` - - - *Related issues and pull requests on GitHub:* - :issue:`8495`. - - - - -Miscellaneous internal changes ------------------------------- - -- Improve performance of filtering cookies -- by :user:`bdraco`. - - This change is a followup to the improvements in :issue:`7583` - - - *Related issues and pull requests on GitHub:* - :issue:`8535`. - - - - ----- - - -3.10.0b1 (2024-07-22) -======================== - -No significant changes. - - ----- - - -3.10.0b0 (2024-07-22) -========================= - -Bug fixes ---------- - - Fixed server response headers for ``Content-Type`` and ``Content-Encoding`` for static compressed files -- by :user:`steverep`. @@ -268,9 +212,42 @@ Contributor-facing changes +Removals and backward incompatible breaking changes +--------------------------------------------------- + +- The shutdown logic in 3.9 waited on all tasks, which caused issues with some libraries. + In 3.10 we've changed this logic to only wait on request handlers. This means that it's + important for developers to correctly handle the lifecycle of background tasks using a + library such as ``aiojobs``. If an application is using ``handler_cancellation=True`` then + it is also a good idea to ensure that any :func:`asyncio.shield` calls are replaced with + :func:`aiojobs.aiohttp.shield`. + + Please read the updated documentation on these points: + https://docs.aiohttp.org/en/stable/web_advanced.html#graceful-shutdown + https://docs.aiohttp.org/en/stable/web_advanced.html#web-handler-cancellation + + -- by :user:`Dreamsorcerer` + + + *Related issues and pull requests on GitHub:* + :issue:`8495`. + + + + Miscellaneous internal changes ------------------------------ +- Improve performance of filtering cookies -- by :user:`bdraco`. + + This change is a followup to the improvements in :issue:`7583` + + + *Related issues and pull requests on GitHub:* + :issue:`8535`. + + + - Improved URL handler resolution time by indexing resources in the UrlDispatcher. For applications with a large number of handlers, this should increase performance significantly. -- by :user:`bdraco` diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py index 5e6bd6ce387..c90ee364f5c 100644 --- a/aiohttp/__init__.py +++ b/aiohttp/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.10.0rc0" +__version__ = "3.10.0" from typing import TYPE_CHECKING, Tuple