Changelog#

2.3.0 (2024-02-11)#

Features:

  • Bump Python dev version to 3.12.2 (and drop Python 3.7) (#195)

Other:

  • [#196] Configure Trusted Publisher for the repository (#197)

  • [#196] Grant permissions to Package reusable wofklow in CI config (#200)

2.2.1 (2023-11-23)#

Fixes:

  • (cors) Fix typo in docstring (#150)

  • Fix importing Middleware type alias (#185)

Other:

  • Update Python dev version to 3.11.1 (#140)

  • (deps) bump certifi from 2022.9.24 to 2022.12.7 (#139)

  • Sync common project files (#141)

  • Monthly maintenance (Jan 2023) (#144)

  • (deps) Bump actions/checkout to 3.3.0 (#145)

  • Bump dev Python version to 3.11.2 (#151)

  • (deps-dev) Bump pytest from 7.2.0 to 7.2.1 (#146)

  • (deps-dev) Bump sphinx-autodoc-typehints from 1.19.5 to 1.22 (#147)

  • (deps-dev) Bump sphinxext-opengraph from 0.7.4 to 0.7.5 (#148)

  • (dev-deps) Update mypy from 0.991 to 1.0.1 (#153)

  • Fix another typo in docstring (#152)

  • Monthly maintenance (Apr 2023) (#163)

  • (deps) Bump actions/checkout from 3.3.0 to 3.5.0 (#161)

  • Monthly maintenance (Nov 2023) (#187)

  • Update some deps to latest Python 3.7 compatible versions (#188)

2.2.0 (2022-10-26)#

Set 3.11.0 as Python dev version, which ensures that aiohttp-middlewares works well with latest Python.

Features:

  • Ensure Python 3.11.0 support (#135)

2.1.1 (2022-10-23)#

Other:

  • Sync common project files (#119, #130)

  • (docs) Bump requirements for docs (#121)

  • Use poetry 1.2.0 for managing project dependencies (#122)

  • Fix read the docs configuration (#124)

  • Tell poetry to not create virtual envs at read the docs (#125)

  • Install project and docs deps on post install job (#126)

  • Do not expect to fail on Python 3.11 (#123)

  • (deps) bump peter-evans/create-pull-request from 4.0.4 to 4.1.2 (#128)

  • Update Python dev version to 3.10.8 (#131)

  • Enforce mypy no-implicit-optional setting (#132)

  • Integrate no-optional pre-commit hook (#133)

2.1.0 (2022-07-25)#

Fixes:

  • BREAKING CHANGE: (cors) Handle CORS correctly in case of HTTPException (#98)

Other:

  • Fix auto release tag workflow (#107)

  • Introduce reusable actions & workflows (#108)

  • Add tests to latest changes in CORS middleware (#109)

  • (deps-dev) bump coverage from 6.4.1 to 6.4.2 (#110)

  • (deps-dev) bump mypy from 0.961 to 0.971 (#111)

  • (deps-dev) bump pytest-asyncio from 0.18.3 to 0.19.0 (#112)

2.0.0 (2022-06-22)#

Drop support of Python 3.6 as well as bump lower bounds of library dependencies.

Now aiohttp-middlewares requires,

  • aiohttp>=3.8.1,<4.0 instead of >=3.7.0,<4.0

  • async-timeout>=4.0.2,<5.0 instead of >=3.0,<5.0

Refactoring:

  • [#81] BREAKING CHANGE: Bump aiohttp & async-timeout deps lower bounds (#105)

Other:

  • BREAKING CHANGE: Drop support of Python 3.6 (#99)

  • (deps) bump actions/checkout from 2.3.5 to 2.4.0 (#70)

  • (deps) bump actions/cache from 2.1.6 to 2.1.7 (#66)

  • (deps) bump actions/setup-python from 2.2.2 to 2.3.1 (#67)

  • (deps) bump tibdex/github-app-token from 1.4 to 1.5 (#69)

  • (deps) bump peter-evans/create-pull-request from 3.10.1 to 3.11.0 (#68)

  • (deps) bump aiohttp from 3.8.0 to 3.8.1 (#65)

  • (deps) bump async-timeout from 4.0.0 to 4.0.1 (#62)

  • (deps) bump yarl from 1.7.0 to 1.7.2 (#64)

  • (deps-dev) bump coverage from 6.1.1 to 6.2 (#63)

  • (deps) bump async-timeout from 4.0.1 to 4.0.2 (#71)

  • (deps-dev) bump mypy from 0.910 to 0.930 (#72)

  • (deps) bump peter-evans/create-pull-request from 3.11.0 to 3.12.0 (#73)

  • Update Python dev version to 3.10.1 (#74)

  • (deps) bump pypa/gh-action-pypi-publish from 1.4.2 to 1.5.0 (#77)

  • (deps) bump peter-evans/create-pull-request from 3.12.0 to 3.12.1 (#76)

  • (deps-dev) bump mypy from 0.930 to 0.931 (#75)

  • (deps) bump peter-evans/create-pull-request from 3.12.1 to 4.0.4 (#100)

  • Update default branch name (#103)

  • Bump requirements (#102)

  • Various improvements for CI jobs (#104)

1.2.1 (2021-11-06)#

Other:

  • Tweak documentation (#60)

1.2.0 (2021-11-01)#

Release new version, which supports latest aiohttp 3.8.0 release and ensures support of Python 3.9 & 3.10.

Features:

  • Support latest aiohttp release (#55)

Refactoring:

  • Move code to src directory

Other:

  • Update pre-commit hooks

  • Massive updates to internal library infrastructure

  • Bump pre-commit hooks

  • Update config

  • Bump github actions to use

  • Update library infrastructure

  • Update package version

  • Update common files

  • (deps-dev) bump pytest from 6.0.1 to 6.1.0 (#29)

  • (deps-dev) bump coverage from 5.2.1 to 5.3 (#28)

  • (deps) bump aiohttp from 3.6.2 to 3.7.2 (#30)

  • (deps-dev) bump pytest from 6.1.0 to 6.1.2 (#31)

  • Use Python 3.10 as dev version (#52)

  • (deps) bump actions/checkout from 2.3.4 to 2.3.5 (#53)

  • Update docs requirements (#54)

  • Bump requirements for docs (#56)

  • Switch to Furo theme (#57)

  • Update Read the Docs configuration (#58)

1.1.0 (2020-04-21)#

  • Provide get_error_response coroutine to allow other projects to reuse error handling logic

1.0.0 (2020-01-14)#

  • chore: Release 1.0.0 version which highlights updates to error middleware and first class support of yarl.URL instances within the library

1.0.0b1 (2020-01-14)#

  • chore: Make default error handler available to import as,

    from aiohttp_middlewares import default_error_handler
    

1.0.0b0 (2020-01-14)#

  • chore: Return empty response for CORS preflight requests

1.0.0a0 (2020-01-12)#

  • feature: Provide default error handler and enable it in error middleware

  • feature: Allow to ignore exceptions from handling by error middleware

  • feature: First class support of yarl.URL within all library

0.3.1 (2019-11-13)#

  • chore: Release 0.3.1 version

0.3.1a0 (2019-11-13)#

  • chore: Pulbish aiohttp-middlewares to PyPI from py38 image to ensure Python 3.8 classifier used

0.3.0 (2019-11-12)#

  • feature: Ensure Python 3.8 support

  • chore: Speedup matching text URLs for timeout & shield middlewares

0.2.0 (2019-07-23)#

  • chore: Release 0.2.0 version with new CORS & Error middlewares and dropped support of Python 3.5 and aiohttp < 3.5

0.2.0b2 (2019-07-22)#

  • feature: Add cors_middleware to simplify handling CORS headers for aiohttp apps comparing to aiohttp-cors library

  • chore: IDEMPOTENT_METHODS and NON_IDEMPOTENT_METHODS are now tuple of strings, not frozenset

0.2.0b1 (2019-07-19)#

  • fix: Fix global visibility for error context & middleware

0.2.0b0 (2019-07-19)#

  • feature: Add error_middleware to allow handle errors inside of aiohttp applications

  • chore: Drop Python 3.5 support

0.2.0a2 (2019-07-19)#

  • feature: Put match_path function to aiohttp_middlewares.utils module scope

0.2.0a1 (2019-07-19)#

  • chore: As aiohttp-middlewares heavily depends on aiohttp annotations, drop support of aiohttp < 3.5

  • chore: Wrap all middlewares into @web.middleware decorator

  • chore: Enable black code formatting

  • chore: Enable pre-commit hooks

0.2.0a0 (2018-10-23)#

  • Ensure Python 3.7 support

  • Drop aiohttp 2 support

  • Ensure support latest aiohttp version, 3.4.4

  • Make library PEP-561 compatible

0.1.1 (2018-05-25)#

  • Support async-timeout 3.0 version

0.1.0 (2018-02-20)#

  • First non-beta release

  • Support aiohttp 3.0 version

0.1.0b2 (2018-02-04)#

  • New shield_middleware to wrap request handler into asyncio.shield helper before execution

  • Allow to match URL by regexp for shield/timeout middleware

0.1.0b1 (2017-10-20)#

  • New https_middleware to allow use proper scheme in request.url, when deploying aiohttp behind reverse proxy with enabled HTTPS

  • Allow passing dict of URLs with list methods to flex process of matching request ignored to wrapping into timeout context manager

0.1.0a2 (2017-05-14)#

  • Rename timeout_middleware_factory to timeout_middleware

0.1.0a1 (2017-05-13)#

  • Initial release. Implements timeout middleware