Skip to content

Commit b5a061b

Browse files
authored
Release 3.12.0b3 (#10955)
1 parent 2eb3f6c commit b5a061b

File tree

2 files changed

+232
-1
lines changed

2 files changed

+232
-1
lines changed

CHANGES.rst

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

1111
.. towncrier release notes start
1212
13+
3.12.0b3 (2025-05-22)
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 connection reuse for file-like data payloads by ensuring buffer
28+
truncation respects content-length boundaries and preventing premature
29+
connection closure race -- by :user:`bdraco`.
30+
31+
32+
*Related issues and pull requests on GitHub:*
33+
:issue:`10325`, :issue:`10915`, :issue:`10941`, :issue:`10943`.
34+
35+
36+
37+
- Fixed pytest plugin to not use deprecated :py:mod:`asyncio` policy APIs.
38+
39+
40+
*Related issues and pull requests on GitHub:*
41+
:issue:`10851`.
42+
43+
44+
45+
- Fixed :py:class:`~aiohttp.resolver.AsyncResolver` not using the ``loop`` argument in versions 3.x where it should still be supported -- by :user:`bdraco`.
46+
47+
48+
*Related issues and pull requests on GitHub:*
49+
:issue:`10951`.
50+
51+
52+
53+
54+
Features
55+
--------
56+
57+
- Added a comprehensive HTTP Digest Authentication client middleware (DigestAuthMiddleware)
58+
that implements RFC 7616. The middleware supports all standard hash algorithms
59+
(MD5, SHA, SHA-256, SHA-512) with session variants, handles both 'auth' and
60+
'auth-int' quality of protection options, and automatically manages the
61+
authentication flow by intercepting 401 responses and retrying with proper
62+
credentials -- by :user:`feus4177`, :user:`TimMenninger`, and :user:`bdraco`.
63+
64+
65+
*Related issues and pull requests on GitHub:*
66+
:issue:`2213`, :issue:`10725`.
67+
68+
69+
70+
- Added client middleware support -- by :user:`bdraco` and :user:`Dreamsorcerer`.
71+
72+
This change allows users to add middleware to the client session and requests, enabling features like
73+
authentication, logging, and request/response modification without modifying the core
74+
request logic. Additionally, the ``session`` attribute was added to ``ClientRequest``,
75+
allowing middleware to access the session for making additional requests.
76+
77+
78+
*Related issues and pull requests on GitHub:*
79+
:issue:`9732`, :issue:`10902`, :issue:`10952`.
80+
81+
82+
83+
- Allow user setting zlib compression backend -- by :user:`TimMenninger`
84+
85+
This change allows the user to call :func:`aiohttp.set_zlib_backend()` with the
86+
zlib compression module of their choice. Default behavior continues to use
87+
the builtin ``zlib`` library.
88+
89+
90+
*Related issues and pull requests on GitHub:*
91+
:issue:`9798`.
92+
93+
94+
95+
- Added support for overriding the base URL with an absolute one in client sessions
96+
-- by :user:`vivodi`.
97+
98+
99+
*Related issues and pull requests on GitHub:*
100+
:issue:`10074`.
101+
102+
103+
104+
- Added ``host`` parameter to ``aiohttp_server`` fixture -- by :user:`christianwbrock`.
105+
106+
107+
*Related issues and pull requests on GitHub:*
108+
:issue:`10120`.
109+
110+
111+
112+
- Detect blocking calls in coroutines using BlockBuster -- by :user:`cbornet`.
113+
114+
115+
*Related issues and pull requests on GitHub:*
116+
:issue:`10433`.
117+
118+
119+
120+
- Added ``socket_factory`` to :py:class:`aiohttp.TCPConnector` to allow specifying custom socket options
121+
-- by :user:`TimMenninger`.
122+
123+
124+
*Related issues and pull requests on GitHub:*
125+
:issue:`10474`, :issue:`10520`.
126+
127+
128+
129+
- Started building armv7l manylinux wheels -- by :user:`bdraco`.
130+
131+
132+
*Related issues and pull requests on GitHub:*
133+
:issue:`10797`.
134+
135+
136+
137+
- Implemented shared DNS resolver management to fix excessive resolver object creation
138+
when using multiple client sessions. The new ``_DNSResolverManager`` singleton ensures
139+
only one ``DNSResolver`` object is created for default configurations, significantly
140+
reducing resource usage and improving performance for applications using multiple
141+
client sessions simultaneously -- by :user:`bdraco`.
142+
143+
144+
*Related issues and pull requests on GitHub:*
145+
:issue:`10847`, :issue:`10923`, :issue:`10946`.
146+
147+
148+
149+
150+
Packaging updates and notes for downstreams
151+
-------------------------------------------
152+
153+
- Removed non SPDX-license description from ``setup.cfg`` -- by :user:`devanshu-ziphq`.
154+
155+
156+
*Related issues and pull requests on GitHub:*
157+
:issue:`10662`.
158+
159+
160+
161+
- Added support for building against system ``llhttp`` library -- by :user:`mgorny`.
162+
163+
This change adds support for :envvar:`AIOHTTP_USE_SYSTEM_DEPS` environment variable that
164+
can be used to build aiohttp against the system install of the ``llhttp`` library rather
165+
than the vendored one.
166+
167+
168+
*Related issues and pull requests on GitHub:*
169+
:issue:`10759`.
170+
171+
172+
173+
- ``aiodns`` is now installed on Windows with speedups extra -- by :user:`bdraco`.
174+
175+
As of ``aiodns`` 3.3.0, ``SelectorEventLoop`` is no longer required when using ``pycares`` 4.7.0 or later.
176+
177+
178+
*Related issues and pull requests on GitHub:*
179+
:issue:`10823`.
180+
181+
182+
183+
- Fixed compatibility issue with Cython 3.1.1 -- by :user:`bdraco`
184+
185+
186+
*Related issues and pull requests on GitHub:*
187+
:issue:`10877`.
188+
189+
190+
191+
192+
Contributor-facing changes
193+
--------------------------
194+
195+
- Sped up tests by disabling ``blockbuster`` fixture for ``test_static_file_huge`` and ``test_static_file_huge_cancel`` tests -- by :user:`dikos1337`.
196+
197+
198+
*Related issues and pull requests on GitHub:*
199+
:issue:`9705`, :issue:`10761`.
200+
201+
202+
203+
- Updated tests to avoid using deprecated :py:mod:`asyncio` policy APIs and
204+
make it compatible with Python 3.14.
205+
206+
207+
*Related issues and pull requests on GitHub:*
208+
:issue:`10851`.
209+
210+
211+
212+
- Added Winloop to test suite to support in the future -- by :user:`Vizonex`.
213+
214+
215+
*Related issues and pull requests on GitHub:*
216+
:issue:`10922`.
217+
218+
219+
220+
221+
Miscellaneous internal changes
222+
------------------------------
223+
224+
- Added support for the ``partitioned`` attribute in the ``set_cookie`` method.
225+
226+
227+
*Related issues and pull requests on GitHub:*
228+
:issue:`9870`.
229+
230+
231+
232+
- Setting :attr:`aiohttp.web.StreamResponse.last_modified` to an unsupported type will now raise :exc:`TypeError` instead of silently failing -- by :user:`bdraco`.
233+
234+
235+
*Related issues and pull requests on GitHub:*
236+
:issue:`10146`.
237+
238+
239+
240+
241+
----
242+
243+
13244
3.12.0b2 (2025-05-22)
14245
=====================
15246

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.0b2"
1+
__version__ = "3.12.0b3"
22

33
from typing import TYPE_CHECKING, Tuple
44

0 commit comments

Comments
 (0)