- Breaking change: allow usage of the request object in the except_when function (thanks @colin99d)
- Fix
limit_value
typehint inlimit()
function (thanks @PookieBuns) - Fix
limit_value
typehint inshared_limit()
function (thanks @aberlioz) - Only pass
".env"
to starletteConfig
if".env"
file exists (thanks @daniellok-db)
- Loosen restriction on the limits dependency (thanks @sanders41)
- Fix redis install error (thanks @sanders41)
- Add Python 3.11 support (thanks @sanders41)
- Added ASGI middleware alternative (thanks @thentgesMindee)
- Added support for custom cost per hit (thanks @nootr)
- Added
key_style
parameter to choose between endpoint or url (thanks @thentgesMindee)
- Added feature to support providing functions for dynamically defined limits (thanks @maratsarbasov)
- Added github action to check for unused imports (thanks @twcurrie)
- Added coverage report in CI (thanks @karlnewell)
- Added Python 3.10 to CI (thanks @Reuben Thomas-Davis)
- Shifted redis to extras, removed test imports of library (thanks @ME-ON1)
- Upgraded dependencies (thanks @dependabot, @Rested, @laurents)
- Updated documentation and example code (thanks @Dustyposa, @laurents, @nootr)
- Set minimum Python version to 3.6.2 (thanks @Rested)
- Fixed exempt decorator for async routes (thanks @laurents)
- Handled newly raised exception from parsing library (thanks @Rested)
- Switched to poetry-core for building #54 (thanks @fabaff)
- Improved the docs
- Upgraded a few dependencies (thanks @dependabot)
- Resolved bug of unregistered endpoints in the disabled state #46 (thanks @twcurrie)
- Fixed bug with Retry-After headers #60 (thanks again @twcurrie)
- Made the enabled option actually useful (thanks @kodekracker for the report) #35
- Fixed 2 bugs in middleware #30 and #37 (thanks @xuxygo for the PR, and @papapumpnz for the report)
- Fixed errors in docs
- Bump lxml to 4.6.2 (dependabot - only used for doc generation)
- Added some setup examples in documentation
- Routes returning a dict don't error when turning on headers (#18), thanks to @glinmac
- Fix CI crash following github actions changes in env settings
- Added support for default limits and exempt routes, thanks to @Rested
- Added documentation
- Added more tests, thanks to @thomasleveil
- Fix documentation bug, thanks to @brumar
- Added CI checks for formatting, typing and tests
- Upgraded supported version of Starlette (0.13.6) and FastApi (0.61.1)
- Added explicit support for typing
- Upgraded supported version of Starlette (0.13.2) and FastApi (0.52.0)
Initial release