Skip to content

Commit a61fcc6

Browse files
authored
Release 3.12.0b0 (#10911)
1 parent 437dffa commit a61fcc6

File tree

2 files changed

+194
-1
lines changed

2 files changed

+194
-1
lines changed

CHANGES.rst

Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,199 @@
1010

1111
.. towncrier release notes start
1212
13+
3.12.0b0 (2025-05-20)
14+
=====================
15+
16+
Bug fixes
17+
---------
18+
19+
- Response is now always True, instead of using MutableMapping behaviour (False when map is empty)
20+
21+
22+
*Related issues and pull requests on GitHub:*
23+
:issue:`10119`.
24+
25+
26+
27+
- Fixed pytest plugin to not use deprecated :py:mod:`asyncio` policy APIs.
28+
29+
30+
*Related issues and pull requests on GitHub:*
31+
:issue:`10851`.
32+
33+
34+
35+
36+
Features
37+
--------
38+
39+
- Added a comprehensive HTTP Digest Authentication client middleware (DigestAuthMiddleware)
40+
that implements RFC 7616. The middleware supports all standard hash algorithms
41+
(MD5, SHA, SHA-256, SHA-512) with session variants, handles both 'auth' and
42+
'auth-int' quality of protection options, and automatically manages the
43+
authentication flow by intercepting 401 responses and retrying with proper
44+
credentials -- by :user:`feus4177`, :user:`TimMenninger`, and :user:`bdraco`.
45+
46+
47+
*Related issues and pull requests on GitHub:*
48+
:issue:`2213`, :issue:`10725`.
49+
50+
51+
52+
- Added client middleware support -- by :user:`bdraco` and :user:`Dreamsorcerer`.
53+
54+
This change allows users to add middleware to the client session and requests, enabling features like
55+
authentication, logging, and request/response modification without modifying the core
56+
request logic. Additionally, the ``session`` attribute was added to ``ClientRequest``,
57+
allowing middleware to access the session for making additional requests.
58+
59+
60+
*Related issues and pull requests on GitHub:*
61+
:issue:`9732`, :issue:`10902`.
62+
63+
64+
65+
- Allow user setting zlib compression backend -- by :user:`TimMenninger`
66+
67+
This change allows the user to call :func:`aiohttp.set_zlib_backend()` with the
68+
zlib compression module of their choice. Default behavior continues to use
69+
the builtin ``zlib`` library.
70+
71+
72+
*Related issues and pull requests on GitHub:*
73+
:issue:`9798`.
74+
75+
76+
77+
- Added support for overriding the base URL with an absolute one in client sessions
78+
-- by :user:`vivodi`.
79+
80+
81+
*Related issues and pull requests on GitHub:*
82+
:issue:`10074`.
83+
84+
85+
86+
- Added ``host`` parameter to ``aiohttp_server`` fixture -- by :user:`christianwbrock`.
87+
88+
89+
*Related issues and pull requests on GitHub:*
90+
:issue:`10120`.
91+
92+
93+
94+
- Detect blocking calls in coroutines using BlockBuster -- by :user:`cbornet`.
95+
96+
97+
*Related issues and pull requests on GitHub:*
98+
:issue:`10433`.
99+
100+
101+
102+
- Added ``socket_factory`` to :py:class:`aiohttp.TCPConnector` to allow specifying custom socket options
103+
-- by :user:`TimMenninger`.
104+
105+
106+
*Related issues and pull requests on GitHub:*
107+
:issue:`10474`, :issue:`10520`.
108+
109+
110+
111+
- Started building armv7l manylinux wheels -- by :user:`bdraco`.
112+
113+
114+
*Related issues and pull requests on GitHub:*
115+
:issue:`10797`.
116+
117+
118+
119+
- Implemented shared DNS resolver management to fix excessive resolver object creation
120+
when using multiple client sessions. The new ``_DNSResolverManager`` singleton ensures
121+
only one ``DNSResolver`` object is created for default configurations, significantly
122+
reducing resource usage and improving performance for applications using multiple
123+
client sessions simultaneously -- by :user:`bdraco`.
124+
125+
126+
*Related issues and pull requests on GitHub:*
127+
:issue:`10847`.
128+
129+
130+
131+
132+
Packaging updates and notes for downstreams
133+
-------------------------------------------
134+
135+
- Removed non SPDX-license description from ``setup.cfg`` -- by :user:`devanshu-ziphq`.
136+
137+
138+
*Related issues and pull requests on GitHub:*
139+
:issue:`10662`.
140+
141+
142+
143+
- ``aiodns`` is now installed on Windows with speedups extra -- by :user:`bdraco`.
144+
145+
As of ``aiodns`` 3.3.0, ``SelectorEventLoop`` is no longer required when using ``pycares`` 4.7.0 or later.
146+
147+
148+
*Related issues and pull requests on GitHub:*
149+
:issue:`10823`.
150+
151+
152+
153+
- Fixed compatibility issue with Cython 3.1.1 -- by :user:`bdraco`
154+
155+
156+
*Related issues and pull requests on GitHub:*
157+
:issue:`10877`.
158+
159+
160+
161+
162+
Contributor-facing changes
163+
--------------------------
164+
165+
- Sped up tests by disabling ``blockbuster`` fixture for ``test_static_file_huge`` and ``test_static_file_huge_cancel`` tests -- by :user:`dikos1337`.
166+
167+
168+
*Related issues and pull requests on GitHub:*
169+
:issue:`9705`, :issue:`10761`.
170+
171+
172+
173+
- Updated tests to avoid using deprecated :py:mod:`asyncio` policy APIs and
174+
make it compatible with Python 3.14.
175+
176+
177+
*Related issues and pull requests on GitHub:*
178+
:issue:`10851`.
179+
180+
181+
182+
183+
Miscellaneous internal changes
184+
------------------------------
185+
186+
- Added support for the ``partitioned`` attribute in the ``set_cookie`` method.
187+
188+
189+
*Related issues and pull requests on GitHub:*
190+
:issue:`9870`.
191+
192+
193+
194+
- Setting :attr:`aiohttp.web.StreamResponse.last_modified` to an unsupported type will now raise :exc:`TypeError` instead of silently failing -- by :user:`bdraco`.
195+
196+
197+
*Related issues and pull requests on GitHub:*
198+
:issue:`10146`.
199+
200+
201+
202+
203+
----
204+
205+
13206
3.11.18 (2025-04-20)
14207
====================
15208

aiohttp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.12.0.dev0"
1+
__version__ = "3.12.0b0"
22

33
from typing import TYPE_CHECKING, Tuple
44

0 commit comments

Comments
 (0)