From dee274c0f53d6c39d4a4a1d26dd30b35fbe92ba7 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Wed, 10 Nov 2021 23:58:50 +0200 Subject: [PATCH] Bump changelog. --- CHANGES.rst | 63 +++++++++++++++++++++++++++++++++++++++++++++ CHANGES/716.feature | 3 --- CHANGES/717.feature | 10 ------- CHANGES/719.misc | 2 -- CHANGES/723.feature | 2 -- CHANGES/724.feature | 8 ------ CHANGES/725.misc | 1 - CHANGES/726.bugfix | 1 - CHANGES/727.misc | 3 --- CHANGES/734.bugfix | 1 - CHANGES/736.bugfix | 1 - CHANGES/744.misc | 2 -- 12 files changed, 63 insertions(+), 34 deletions(-) delete mode 100644 CHANGES/716.feature delete mode 100644 CHANGES/717.feature delete mode 100644 CHANGES/719.misc delete mode 100644 CHANGES/723.feature delete mode 100644 CHANGES/724.feature delete mode 100644 CHANGES/725.misc delete mode 100644 CHANGES/726.bugfix delete mode 100644 CHANGES/727.misc delete mode 100644 CHANGES/734.bugfix delete mode 100644 CHANGES/736.bugfix delete mode 100644 CHANGES/744.misc diff --git a/CHANGES.rst b/CHANGES.rst index c7966fa4..aa81cabd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,69 @@ Changelog .. towncrier release notes start +3.0.0a18 (2021-11-10) +====================== + +Features +-------- + +- Breaking: Changed the signature of the session middlewares + Breaking: Renamed AiohttpSession.make_request method parameter from call to method to match the naming in the base class + Added middleware for logging outgoing requests + `#716 `_ +- Improved description of filters resolving error. + For example when you try to pass wrong type of argument to the filter but don't know why filter is not resolved now you can get error like this: + + .. code-block:: python3 + + aiogram.exceptions.FiltersResolveError: Unknown keyword filters: {'content_types'} + Possible cases: + - 1 validation error for ContentTypesFilter + content_types + Invalid content types {'42'} is not allowed here (type=value_error) + `#717 `_ +- **Breaking internal API change** + Reworked FSM Storage record keys propagation + `#723 `_ +- Implemented new filter named :code:`MagicData(magic_data)` that helps to filter event by data from middlewares or other filters + + For example your bot is running with argument named :code:`config` that contains the application config then you can filter event by value from this config: + + .. code_block: python3 + + @router.message(magic_data=F.event.from_user.id == F.config.admin_id) + ... + `#724 `_ + + +Bugfixes +-------- + +- Fixed I18n context inside error handlers + `#726 `_ +- Fixed bot session closing before emit shutdown + `#734 `_ +- Fixed: bound filter resolving does not require children routers + `#736 `_ + + +Misc +---- + +- Enabled testing on Python 3.10 + Removed `async_lru` dependency (is incompatible with Python 3.10) and replaced usage with protected property + `#719 `_ +- Converted README.md to README.rst and use it as base file for docs + `#725 `_ +- Rework filters resolving: + * Automatically apply Bound Filters with default values to handlers + * Fix data transfer from parent to included routers filters + `#727 `_ +- Added full support of Bot API 5.4 + https://core.telegram.org/bots/api-changelog#november-5-2021 + `#744 `_ + + 3.0.0a17 (2021-09-24) ====================== diff --git a/CHANGES/716.feature b/CHANGES/716.feature deleted file mode 100644 index 0f78445d..00000000 --- a/CHANGES/716.feature +++ /dev/null @@ -1,3 +0,0 @@ -Breaking: Changed the signature of the session middlewares -Breaking: Renamed AiohttpSession.make_request method parameter from call to method to match the naming in the base class -Added middleware for logging outgoing requests diff --git a/CHANGES/717.feature b/CHANGES/717.feature deleted file mode 100644 index 5fcadf91..00000000 --- a/CHANGES/717.feature +++ /dev/null @@ -1,10 +0,0 @@ -Improved description of filters resolving error. -For example when you try to pass wrong type of argument to the filter but don't know why filter is not resolved now you can get error like this: - -.. code-block:: python3 - - aiogram.exceptions.FiltersResolveError: Unknown keyword filters: {'content_types'} - Possible cases: - - 1 validation error for ContentTypesFilter - content_types - Invalid content types {'42'} is not allowed here (type=value_error) diff --git a/CHANGES/719.misc b/CHANGES/719.misc deleted file mode 100644 index bcfb4759..00000000 --- a/CHANGES/719.misc +++ /dev/null @@ -1,2 +0,0 @@ -Enabled testing on Python 3.10 -Removed `async_lru` dependency (is incompatible with Python 3.10) and replaced usage with protected property diff --git a/CHANGES/723.feature b/CHANGES/723.feature deleted file mode 100644 index 0d411340..00000000 --- a/CHANGES/723.feature +++ /dev/null @@ -1,2 +0,0 @@ -**Breaking internal API change** -Reworked FSM Storage record keys propagation diff --git a/CHANGES/724.feature b/CHANGES/724.feature deleted file mode 100644 index 052a25fb..00000000 --- a/CHANGES/724.feature +++ /dev/null @@ -1,8 +0,0 @@ -Implemented new filter named :code:`MagicData(magic_data)` that helps to filter event by data from middlewares or other filters - -For example your bot is running with argument named :code:`config` that contains the application config then you can filter event by value from this config: - -.. code_block: python3 - - @router.message(magic_data=F.event.from_user.id == F.config.admin_id) - ... diff --git a/CHANGES/725.misc b/CHANGES/725.misc deleted file mode 100644 index 1f726b5a..00000000 --- a/CHANGES/725.misc +++ /dev/null @@ -1 +0,0 @@ -Converted README.md to README.rst and use it as base file for docs diff --git a/CHANGES/726.bugfix b/CHANGES/726.bugfix deleted file mode 100644 index d40b5372..00000000 --- a/CHANGES/726.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixed I18n context inside error handlers diff --git a/CHANGES/727.misc b/CHANGES/727.misc deleted file mode 100644 index e595b91b..00000000 --- a/CHANGES/727.misc +++ /dev/null @@ -1,3 +0,0 @@ -Rework filters resolving: -* Automatically apply Bound Filters with default values to handlers -* Fix data transfer from parent to included routers filters diff --git a/CHANGES/734.bugfix b/CHANGES/734.bugfix deleted file mode 100644 index 94a5951f..00000000 --- a/CHANGES/734.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixed bot session closing before emit shutdown diff --git a/CHANGES/736.bugfix b/CHANGES/736.bugfix deleted file mode 100644 index 4dbd2bd2..00000000 --- a/CHANGES/736.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixed: bound filter resolving does not require children routers diff --git a/CHANGES/744.misc b/CHANGES/744.misc deleted file mode 100644 index d7f17458..00000000 --- a/CHANGES/744.misc +++ /dev/null @@ -1,2 +0,0 @@ -Added full support of Bot API 5.4 -https://core.telegram.org/bots/api-changelog#november-5-2021