diff --git a/CHANGES.rst b/CHANGES.rst index 8c2a2707408..c26cc90e76e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,202 @@ .. towncrier release notes start +3.9.2 (2024-01-28) +================== + +Bug fixes +--------- + +- Fixed server-side websocket connection leak. + + + *Related issues and pull requests on GitHub:* + :issue:`7978`. + + + +- Fixed ``web.FileResponse`` doing blocking I/O in the event loop. + + + *Related issues and pull requests on GitHub:* + :issue:`8012`. + + + +- Fixed double compress when compression enabled and compressed file exists in server file responses. + + + *Related issues and pull requests on GitHub:* + :issue:`8014`. + + + +- Added runtime type check for ``ClientSession`` ``timeout`` parameter. + + + *Related issues and pull requests on GitHub:* + :issue:`8021`. + + + +- Fixed an unhandled exception in the Python HTTP parser on header lines starting with a colon -- by :user:`pajod`. + + Invalid request lines with anything but a dot between the HTTP major and minor version are now rejected. + Invalid header field names containing question mark or slash are now rejected. + Such requests are incompatible with :rfc:`9110#section-5.6.2` and are not known to be of any legitimate use. + + + *Related issues and pull requests on GitHub:* + :issue:`8074`. + + + +- Improved validation of paths for static resources requests to the server -- by :user:`bdraco`. + + + *Related issues and pull requests on GitHub:* + :issue:`8079`. + + + + +Features +-------- + +- Added support for passing :py:data:`True` to ``ssl`` parameter in ``ClientSession`` while + deprecating :py:data:`None` -- by :user:`xiangyan99`. + + + *Related issues and pull requests on GitHub:* + :issue:`7698`. + + + +Breaking changes +---------------- + +- Fixed an unhandled exception in the Python HTTP parser on header lines starting with a colon -- by :user:`pajod`. + + Invalid request lines with anything but a dot between the HTTP major and minor version are now rejected. + Invalid header field names containing question mark or slash are now rejected. + Such requests are incompatible with :rfc:`9110#section-5.6.2` and are not known to be of any legitimate use. + + + *Related issues and pull requests on GitHub:* + :issue:`8074`. + + + + +Improved documentation +---------------------- + +- Fixed examples of ``fallback_charset_resolver`` function in the :doc:`client_advanced` document. -- by :user:`henry0312`. + + + *Related issues and pull requests on GitHub:* + :issue:`7995`. + + + +- The Sphinx setup was updated to avoid showing the empty + changelog draft section in the tagged release documentation + builds on Read The Docs -- by :user:`webknjaz`. + + + *Related issues and pull requests on GitHub:* + :issue:`8067`. + + + + +Packaging updates and notes for downstreams +------------------------------------------- + +- The changelog categorization was made clearer. The + contributors can now mark their fragment files more + accurately -- by :user:`webknjaz`. + + The new category tags are: + + * ``bugfix`` + + * ``feature`` + + * ``deprecation`` + + * ``breaking`` (previously, ``removal``) + + * ``doc`` + + * ``packaging`` + + * ``contrib`` + + * ``misc`` + + + *Related issues and pull requests on GitHub:* + :issue:`8066`. + + + + +Contributor-facing changes +-------------------------- + +- Updated :ref:`contributing/Tests coverage ` section to show how we use ``codecov`` -- by :user:`Dreamsorcerer`. + + + *Related issues and pull requests on GitHub:* + :issue:`7916`. + + + +- The changelog categorization was made clearer. The + contributors can now mark their fragment files more + accurately -- by :user:`webknjaz`. + + The new category tags are: + + * ``bugfix`` + + * ``feature`` + + * ``deprecation`` + + * ``breaking`` (previously, ``removal``) + + * ``doc`` + + * ``packaging`` + + * ``contrib`` + + * ``misc`` + + + *Related issues and pull requests on GitHub:* + :issue:`8066`. + + + + +Miscellaneous internal changes +------------------------------ + +- Replaced all ``tmpdir`` fixtures with ``tmp_path`` in test suite. + + + *Related issues and pull requests on GitHub:* + :issue:`3551`. + + + + +---- + + 3.9.1 (2023-11-26) ================== diff --git a/CHANGES/3551.misc b/CHANGES/3551.misc deleted file mode 100644 index 63965c14821..00000000000 --- a/CHANGES/3551.misc +++ /dev/null @@ -1 +0,0 @@ -Replace all tmpdir fixtures with tmp_path in test suite. diff --git a/CHANGES/7698.feature b/CHANGES/7698.feature deleted file mode 100644 index e8c4b3fb452..00000000000 --- a/CHANGES/7698.feature +++ /dev/null @@ -1 +0,0 @@ -Added support for passing `True` to `ssl` while deprecating `None`. -- by :user:`xiangyan99` diff --git a/CHANGES/7916.doc b/CHANGES/7916.doc deleted file mode 100644 index b616ae85bbe..00000000000 --- a/CHANGES/7916.doc +++ /dev/null @@ -1 +0,0 @@ -Updated :ref:`contributing/Tests coverage ` section to show how we use ``codecov`` -- by :user:`Dreamsorcerer`. diff --git a/CHANGES/7978.bugfix b/CHANGES/7978.bugfix deleted file mode 100644 index 3c7dc096ca7..00000000000 --- a/CHANGES/7978.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix websocket connection leak diff --git a/CHANGES/7995.doc b/CHANGES/7995.doc deleted file mode 100644 index 70e3dfa5469..00000000000 --- a/CHANGES/7995.doc +++ /dev/null @@ -1 +0,0 @@ -Fix examples of `fallback_charset_resolver` function in client_advanced documentation. -- by :user:`henry0312` diff --git a/CHANGES/8010.doc b/CHANGES/8010.doc deleted file mode 100644 index db1b0aa3225..00000000000 --- a/CHANGES/8010.doc +++ /dev/null @@ -1,2 +0,0 @@ -On the `CHANGES/README.rst `_ page, -a link to the ``Towncrier philosophy`` has been fixed. diff --git a/CHANGES/8012.bugfix b/CHANGES/8012.bugfix deleted file mode 100644 index f5187075f3f..00000000000 --- a/CHANGES/8012.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix `web.FileResponse` doing blocking I/O in the event loop diff --git a/CHANGES/8014.bugfix b/CHANGES/8014.bugfix deleted file mode 100644 index 681bb5966ae..00000000000 --- a/CHANGES/8014.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix double compress when compression enabled and compressed file exists diff --git a/CHANGES/8021.bugfix b/CHANGES/8021.bugfix deleted file mode 100644 index f43843a587f..00000000000 --- a/CHANGES/8021.bugfix +++ /dev/null @@ -1 +0,0 @@ -Add runtime type check for ``ClientSession`` ``timeout`` parameter. diff --git a/CHANGES/8066.contrib.rst b/CHANGES/8066.contrib.rst deleted file mode 100644 index 2468018e99b..00000000000 --- a/CHANGES/8066.contrib.rst +++ /dev/null @@ -1,21 +0,0 @@ -The changelog categorization was made clearer. The -contributors can now mark their fragment files more -accurately -- by :user:`webknjaz`. - -The new category tags are: - - * ``bugfix`` - - * ``feature`` - - * ``deprecation`` - - * ``breaking`` (previously, ``removal``) - - * ``doc`` - - * ``packaging`` - - * ``contrib`` - - * ``misc`` diff --git a/CHANGES/8066.packaging.rst b/CHANGES/8066.packaging.rst deleted file mode 120000 index 57cdff225f5..00000000000 --- a/CHANGES/8066.packaging.rst +++ /dev/null @@ -1 +0,0 @@ -8066.contrib.rst \ No newline at end of file diff --git a/CHANGES/8067.doc.rst b/CHANGES/8067.doc.rst deleted file mode 100644 index 3206db9ae87..00000000000 --- a/CHANGES/8067.doc.rst +++ /dev/null @@ -1,3 +0,0 @@ -The Sphinx setup was updated to avoid showing the empty -changelog draft section in the tagged release documentation -builds on Read The Docs -- by :user:`webknjaz`. diff --git a/CHANGES/8074.bugfix.rst b/CHANGES/8074.bugfix.rst deleted file mode 100644 index 16c71445476..00000000000 --- a/CHANGES/8074.bugfix.rst +++ /dev/null @@ -1,5 +0,0 @@ -Fixed an unhandled exception in the Python HTTP parser on header lines starting with a colon -- by :user:`pajod`. - -Invalid request lines with anything but a dot between the HTTP major and minor version are now rejected. Invalid header field names containing question mark or slash are now rejected. Such requests are incompatible with :rfc:`9110#section-5.6.2` and are not known to be of any legitimate use. - -(BACKWARD INCOMPATIBLE) diff --git a/CHANGES/8079.bugfix.rst b/CHANGES/8079.bugfix.rst deleted file mode 100644 index 57bc8bfebcc..00000000000 --- a/CHANGES/8079.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Improved validation of paths for static resources -- by :user:`bdraco`. diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py index c0fd9817546..70ddb359640 100644 --- a/aiohttp/__init__.py +++ b/aiohttp/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.9.1.dev0" +__version__ = "3.9.2" from typing import TYPE_CHECKING, Tuple