4.20.0
·
37 commits
to master
since this release
Changed
Helpers - FastAPI Rate Limit
- FastAPI Rate Limit Interceptor Deprecated -
FastAPIRestRateLimitHandler, the
fastapi.rate_limit.identifiershelpers (extract_bearer_token,resolve_jwt_access_token_sub),
andFastAPIRateLimitConfigare deprecated and will be removed in a future major release.
InstantiatingFastAPIRestRateLimitHandleror calling the identifier helpers now raises
DeprecationError.FastAPIRateLimitConfigemits aDeprecationWarningon
instantiation (it cannot raise becauseBaseConfiginstantiates it as a field default at
import time; the internal default suppresses the warning). - Replacement - The feature is superseded by the official
fastapi-redis-sdk (rate_limit()FastAPI
dependency,X-RateLimit-*/Retry-Afterheaders, distributed per-client counters, Redis 7.4+).
See the migration guide. - Unaffected - The gRPC rate-limit interceptor,
RateLimitUtils, andRateLimitWindowDTO
remain supported and are not deprecated.
Tests
Tests - FastAPI Rate Limit
- Feature Suite Removed - Removed
features/fastapi_rate_limit.featureand
features/steps/fastapi_rate_limit_steps.pytogether with the deprecated handler.