Skip to content

Releases: alisaifee/flask-limiter

3.1.0

29 Dec 19:58
3.1.0
Compare
Choose a tag to compare

Feature

  • Skip logging an error if a decorated limit uses a callable
    to return the "current" rate limit and returns an empty string.
    Treat this is a signal that the rate limit should be skipped for
    this request.

3.0.0b2

28 Dec 20:48
3.0.0b2
Compare
Choose a tag to compare

Breaking changes

  • Remove deprecated config variable RATELIMIT_STORAGE_URL
  • Remove legacy backward compatibility path for flask < 2
  • Enforce key_func as a required argument

Chores

  • Simplify registration of decorated function & blueprint limits

3.0.0

28 Dec 21:35
3.0.0
Compare
Choose a tag to compare

Breaking changes

  • Change order of extension constructor arguments to only require
    key_func as the first positional argument and all other arguments
    as keyword arguments.
  • Separate positional/keyword arguments in limit/shared_limit decorators
  • Remove deprecated config variable RATELIMIT_STORAGE_URL
  • Remove legacy backward compatibility path for flask < 2

Features

  • Allow scoping regular limit decorators / context managers

3.0.0b1

27 Dec 00:47
3.0.0b1
Compare
Choose a tag to compare

Breaking changes

  • Change order of extension constructor arguments to only require
    key_func as the first positional argument and all other arguments
    as keyword arguments.
  • Separate positional/keyword arguments in limit/shared_limit decorators

Features

  • Allow scoping regular limit decorators / context managers

2.9.2

26 Dec 22:06
2.9.2
Compare
Choose a tag to compare

Feature

  • Extend customization by http method to shared_limit decorator

2.9.1

26 Dec 18:27
2.9.1
Compare
Choose a tag to compare

Chores

  • Update documentation quick start
  • Refresh documentation for class based views

2.9.0

24 Dec 18:43
2.9.0
Compare
Choose a tag to compare

Features

  • Allow using limit & shared_limit decorators on pure
    functions that are not decorated as routes. The functions
    when called from within a request context will get rate limited.
  • Allow using limit as a context manager to rate limit a code block
    explicitly within a request

Chores

  • Updated development dependencies
  • Fix error running tests depending on docker locally
  • Update internals to use dataclasses

2.8.1

15 Nov 17:29
2.8.1
Compare
Choose a tag to compare

Chores

  • Add sponsorship banner to rtd
  • Update documentation dependencies

2.8.0

13 Nov 21:46
2.8.0
Compare
Choose a tag to compare

Breaking changes

  • Any exception raised when calling an on_breach callback will
    be re-raised instead of being absorbed unless swallow_errors is set.
    In the case of swallow_errors the exception will now be logged
    at ERROR level instead of WARN
  • Reduce log level of rate limit exceeded log messages to INFO

2.7.0

25 Oct 20:43
2.7.0
Compare
Choose a tag to compare

Bug Fix

  • Add default value for RateLimitExceeded optional parameter
  • Fix suppression of errors when using conditional deduction (Issue 363)