diff --git a/CHANGES.rst b/CHANGES.rst index e87023824..28743196e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,42 @@ Changelog .. towncrier release notes start +1.13.0 +====== + +*(2024-09-26)* + + +Bug fixes +--------- + +- Started rejecting ASCII hostnames with invalid characters. For host strings that + look like authority strings, the exception message includes advice on what to do + instead -- by :user:`mjpieters`. + + *Related issues and pull requests on GitHub:* + :issue:`880`, :issue:`954`. + +- Fixed IPv6 addresses missing brackets when the :class:`~yarl.URL` was converted to a string -- by :user:`bdraco`. + + *Related issues and pull requests on GitHub:* + :issue:`1157`, :issue:`1158`. + + +Features +-------- + +- Added :attr:`~yarl.URL.host_subcomponent` which returns the :rfc:`3986#section-3.2.2` host subcomponent -- by :user:`bdraco`. + + The only current practical difference between :attr:`~yarl.URL.raw_host` and :attr:`~yarl.URL.host_subcomponent` is that IPv6 addresses are returned bracketed. + + *Related issues and pull requests on GitHub:* + :issue:`1159`. + + +---- + + 1.12.1 ====== diff --git a/CHANGES/1157.bugfix.rst b/CHANGES/1157.bugfix.rst deleted file mode 120000 index 0082490cd..000000000 --- a/CHANGES/1157.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -1158.bugfix.rst \ No newline at end of file diff --git a/CHANGES/1158.bugfix.rst b/CHANGES/1158.bugfix.rst deleted file mode 100644 index d6f8330e2..000000000 --- a/CHANGES/1158.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed IPv6 addresses missing brackets when the :class:`~yarl.URL` was converted to a string -- by :user:`bdraco`. diff --git a/CHANGES/1159.feature.rst b/CHANGES/1159.feature.rst deleted file mode 100644 index 25d06f550..000000000 --- a/CHANGES/1159.feature.rst +++ /dev/null @@ -1,3 +0,0 @@ -Added :attr:`~yarl.URL.host_subcomponent` which returns the :rfc:`3986#section-3.2.2` host subcomponent -- by :user:`bdraco`. - -The only current practical difference between :attr:`~yarl.URL.raw_host` and :attr:`~yarl.URL.host_subcomponent` is that IPv6 addresses are returned bracketed. diff --git a/CHANGES/880.bugfix.rst b/CHANGES/880.bugfix.rst deleted file mode 100644 index 39a64ea03..000000000 --- a/CHANGES/880.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -Started rejecting ASCII hostnames with invalid characters. For host strings that -look like authority strings, the exception message includes advice on what to do -instead -- by :user:`mjpieters`. diff --git a/CHANGES/954.bugfix.rst b/CHANGES/954.bugfix.rst deleted file mode 120000 index e6d288437..000000000 --- a/CHANGES/954.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -880.bugfix.rst \ No newline at end of file diff --git a/yarl/__init__.py b/yarl/__init__.py index 0ecff77bc..749689df9 100644 --- a/yarl/__init__.py +++ b/yarl/__init__.py @@ -8,7 +8,7 @@ cache_info, ) -__version__ = "1.12.2.dev0" +__version__ = "1.13.0" __all__ = ( "URL",