Skip to content

Commit 69a7fd7

Browse files
authored
Release 3.12.0b1 (#10940)
1 parent 69182c7 commit 69a7fd7

File tree

2 files changed

+224
-1
lines changed

2 files changed

+224
-1
lines changed

CHANGES.rst

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

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

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

33
from typing import TYPE_CHECKING, Tuple
44

0 commit comments

Comments
 (0)