Skip to content

Commit f07c021

Browse files
authored
Release 3.11.0b0 (#9580)
1 parent 125c7ed commit f07c021

File tree

2 files changed

+269
-1
lines changed

2 files changed

+269
-1
lines changed

CHANGES.rst

+268
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,274 @@
1010

1111
.. towncrier release notes start
1212
13+
3.11.0b0 (2024-10-28)
14+
=====================
15+
16+
Bug fixes
17+
---------
18+
19+
- Raise :exc:`aiohttp.ServerFingerprintMismatch` exception on client-side if request through http proxy with mismatching server fingerprint digest: `aiohttp.ClientSession(headers=headers, connector=TCPConnector(ssl=aiohttp.Fingerprint(mismatch_digest), trust_env=True).request(...)` -- by :user:`gangj`.
20+
21+
22+
*Related issues and pull requests on GitHub:*
23+
:issue:`6652`.
24+
25+
26+
27+
- Made ``TestClient.app`` a ``Generic`` so type checkers will know the correct type (avoiding unneeded ``client.app is not None`` checks) -- by :user:`Dreamsorcerer`.
28+
29+
30+
*Related issues and pull requests on GitHub:*
31+
:issue:`8977`.
32+
33+
34+
35+
- Authentication provided by a redirect now takes precedence over provided ``auth`` when making requests with the client -- by :user:`PLPeeters`.
36+
37+
38+
*Related issues and pull requests on GitHub:*
39+
:issue:`9436`.
40+
41+
42+
43+
44+
Features
45+
--------
46+
47+
- Added ``strategy`` parameter to :meth:`aiohttp.web.StreamResponse.enable_compression`
48+
The value of this parameter is passed to the :func:`zlib.compressobj` function, allowing people
49+
to use a more sufficient compression algorithm for their data served by :mod:`aiohttp.web`
50+
-- by :user:`shootkin`
51+
52+
53+
*Related issues and pull requests on GitHub:*
54+
:issue:`6257`.
55+
56+
57+
58+
- Exported :py:class:`~aiohttp.ClientWSTimeout` to top-level namespace -- by :user:`Dreamsorcerer`.
59+
60+
61+
*Related issues and pull requests on GitHub:*
62+
:issue:`8612`.
63+
64+
65+
66+
- Added ``secure``/``httponly``/``samesite`` parameters to ``.del_cookie()`` -- by :user:`Dreamsorcerer`.
67+
68+
69+
*Related issues and pull requests on GitHub:*
70+
:issue:`8956`.
71+
72+
73+
74+
- Updated :py:class:`~aiohttp.ClientSession`'s auth logic to include default auth only if the request URL's origin matches _base_url; otherwise, the auth will not be included -- by :user:`MaximZemskov`
75+
76+
77+
*Related issues and pull requests on GitHub:*
78+
:issue:`8966`, :issue:`9466`.
79+
80+
81+
82+
- Added ``proxy`` and ``proxy_auth`` parameters to :py:class:`~aiohttp.ClientSession` -- by :user:`meshya`.
83+
84+
85+
*Related issues and pull requests on GitHub:*
86+
:issue:`9207`.
87+
88+
89+
90+
- Added ``default_to_multipart`` parameter to ``FormData``.
91+
92+
93+
*Related issues and pull requests on GitHub:*
94+
:issue:`9335`.
95+
96+
97+
98+
- Added :py:meth:`~aiohttp.ClientWebSocketResponse.send_frame` and :py:meth:`~aiohttp.web.WebSocketResponse.send_frame` for WebSockets -- by :user:`bdraco`.
99+
100+
101+
*Related issues and pull requests on GitHub:*
102+
:issue:`9348`.
103+
104+
105+
106+
- Improved performance of reading WebSocket messages with a Cython implementation -- by :user:`bdraco`.
107+
108+
109+
*Related issues and pull requests on GitHub:*
110+
:issue:`9543`, :issue:`9554`, :issue:`9556`, :issue:`9558`.
111+
112+
113+
114+
- Added ``writer_limit`` to the :py:class:`~aiohttp.web.WebSocketResponse` to be able to adjust the limit before the writer forces the buffer to be drained -- by :user:`bdraco`.
115+
116+
117+
*Related issues and pull requests on GitHub:*
118+
:issue:`9572`.
119+
120+
121+
122+
123+
Deprecations (removal in next major release)
124+
--------------------------------------------
125+
126+
- Deprecate obsolete `timeout: float` and `receive_timeout: Optional[float]` in :py:meth:`~aiohttp.ClientSession.ws_connect`. Change default websocket receive timeout from `None` to `10.0`.
127+
128+
129+
*Related issues and pull requests on GitHub:*
130+
:issue:`3945`.
131+
132+
133+
134+
135+
Removals and backward incompatible breaking changes
136+
---------------------------------------------------
137+
138+
- Dropped support for Python 3.8 -- by :user:`Dreamsorcerer`.
139+
140+
141+
*Related issues and pull requests on GitHub:*
142+
:issue:`8797`.
143+
144+
145+
146+
- Increased minimum yarl version to 1.17.0 -- by :user:`bdraco`.
147+
148+
149+
*Related issues and pull requests on GitHub:*
150+
:issue:`8909`, :issue:`9079`, :issue:`9305`, :issue:`9574`.
151+
152+
153+
154+
- Removed the ``is_ipv6_address`` and ``is_ip4_address`` helpers are they are no longer used -- by :user:`bdraco`.
155+
156+
157+
*Related issues and pull requests on GitHub:*
158+
:issue:`9344`.
159+
160+
161+
162+
- Changed ``ClientRequest.connection_key`` to be a `NamedTuple` to improve client performance -- by :user:`bdraco`.
163+
164+
165+
*Related issues and pull requests on GitHub:*
166+
:issue:`9365`.
167+
168+
169+
170+
171+
Packaging updates and notes for downstreams
172+
-------------------------------------------
173+
174+
- Switched to using the :mod:`propcache <propcache.api>` package for property caching
175+
-- by :user:`bdraco`.
176+
177+
The :mod:`propcache <propcache.api>` package is derived from the property caching
178+
code in :mod:`yarl` and has been broken out to avoid maintaining it for multiple
179+
projects.
180+
181+
182+
*Related issues and pull requests on GitHub:*
183+
:issue:`9394`.
184+
185+
186+
187+
- Separated ``aiohttp.http_websocket`` into multiple files to make it easier to maintain -- by :user:`bdraco`.
188+
189+
190+
*Related issues and pull requests on GitHub:*
191+
:issue:`9542`, :issue:`9552`.
192+
193+
194+
195+
196+
Contributor-facing changes
197+
--------------------------
198+
199+
- Changed diagram images generator from ``blockdiag`` to ``GraphViz``.
200+
Generating documentation now requires the GraphViz executable to be included in $PATH or sphinx build configuration.
201+
202+
203+
*Related issues and pull requests on GitHub:*
204+
:issue:`9359`.
205+
206+
207+
208+
209+
Miscellaneous internal changes
210+
------------------------------
211+
212+
- Added flake8 settings to avoid some forms of implicit concatenation. -- by :user:`booniepepper`.
213+
214+
215+
*Related issues and pull requests on GitHub:*
216+
:issue:`7731`.
217+
218+
219+
220+
- Enabled keep-alive support on proxies (which was originally disabled several years ago) -- by :user:`Dreamsorcerer`.
221+
222+
223+
*Related issues and pull requests on GitHub:*
224+
:issue:`8920`.
225+
226+
227+
228+
- Changed web entry point to not listen on TCP when only a Unix path is passed -- by :user:`Dreamsorcerer`.
229+
230+
231+
*Related issues and pull requests on GitHub:*
232+
:issue:`9033`.
233+
234+
235+
236+
- Disabled automatic retries of failed requests in :class:`aiohttp.test_utils.TestClient`'s client session
237+
(which could potentially hide errors in tests) -- by :user:`ShubhAgarwal-dev`.
238+
239+
240+
*Related issues and pull requests on GitHub:*
241+
:issue:`9141`.
242+
243+
244+
245+
- Changed web ``keepalive_timeout`` default to around an hour in order to reduce race conditions on reverse proxies -- by :user:`Dreamsorcerer`.
246+
247+
248+
*Related issues and pull requests on GitHub:*
249+
:issue:`9285`.
250+
251+
252+
253+
- Reduced memory required for stream objects created during the client request lifecycle -- by :user:`bdraco`.
254+
255+
256+
*Related issues and pull requests on GitHub:*
257+
:issue:`9407`.
258+
259+
260+
261+
- Improved performance of the client request lifecycle when there are no cookies -- by :user:`bdraco`.
262+
263+
264+
*Related issues and pull requests on GitHub:*
265+
:issue:`9470`.
266+
267+
268+
269+
- Improved performance of sending client requests when the writer can finish synchronously -- by :user:`bdraco`.
270+
271+
272+
*Related issues and pull requests on GitHub:*
273+
:issue:`9485`.
274+
275+
276+
277+
278+
----
279+
280+
13281
3.10.10 (2024-10-10)
14282
====================
15283

aiohttp/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.11.0.dev0"
1+
__version__ = "3.11.0b0"
22

33
from typing import TYPE_CHECKING, Tuple
44

0 commit comments

Comments
 (0)