Releases: alisaifee/flask-limiter
Releases · alisaifee/flask-limiter
2.2.0
Feature
- Allow a function to be used for the
cost
parameter
to limiter decorators.
2.1.1
Chore
- Update documentation theme
2.1
Feature
- Add
current_limit
attribute to extension to
allow clients to fetch the relevant current limit
that was evaluated.
- Update extension constructor parameters to match
flask config for header control
- Add
on_breach
callback for limit
and shared_limit
decorators to be used as hooks for when a limit is breached
- Add
cost
argument to limit
and shared_limit
to control
how much is deducted when a hit occurs.
Chore
- Improve documentation around configuration
Deprecation
- Remove hacks for managing incorrectly ordered
limit/route decorators
2.0.4
Chore
- Documentation theme upgrades
- Integrate pytest-docker plugin
- Mass linting
Deprecation
- Removed deprecated RATELIMIT_GLOBAL config
- Added deprecation doc for RATELIMIT_STORAGE_URL config
2.0.3
Documentation & test tweaks
2.0.2
Features
- Pin Flask, limits to >= 2
- Add type hints
2.0.1
Deprecations
- Remove deprecated get_ipaddr method
- Remove use of six
- Remove backward compatibility hacks for RateLimit exceptions
2.0.0
Drop support for python < 3.7 & Flask < 2.0
1.5
Final Release for python < 3.7
Features
- Prepend
key_prefix
to extension variables attached to g
- Expose
g.view_limits
1.4
Bug Fix
- Always set headers for conditional limits
- Skip init_app sequence when the rate limiter is disabled