Skip to content

4.20.0

Choose a tag to compare

@HosseinNejatiJavaremi HosseinNejatiJavaremi released this 08 Aug 11:57
· 37 commits to master since this release

Changed

Helpers - FastAPI Rate Limit

  • FastAPI Rate Limit Interceptor Deprecated - FastAPIRestRateLimitHandler, the
    fastapi.rate_limit.identifiers helpers (extract_bearer_token, resolve_jwt_access_token_sub),
    and FastAPIRateLimitConfig are deprecated and will be removed in a future major release.
    Instantiating FastAPIRestRateLimitHandler or calling the identifier helpers now raises
    DeprecationError. FastAPIRateLimitConfig emits a DeprecationWarning on
    instantiation (it cannot raise because BaseConfig instantiates 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-After headers, distributed per-client counters, Redis 7.4+).
    See the migration guide.
  • Unaffected - The gRPC rate-limit interceptor, RateLimitUtils, and RateLimitWindowDTO
    remain supported and are not deprecated.

Tests

Tests - FastAPI Rate Limit

  • Feature Suite Removed - Removed features/fastapi_rate_limit.feature and
    features/steps/fastapi_rate_limit_steps.py together with the deprecated handler.