Releases: alisaifee/flask-limiter
Releases · alisaifee/flask-limiter
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 forlimit
andshared_limit
decorators to be used as hooks for when a limit is breached - Add
cost
argument tolimit
andshared_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
2.0.3
2.0.2
2.0.1
2.0.0
1.5
1.4
1.3.1
1.3
Features
- Add new
deduct_when
argument that accepts a function to decorated limits
to conditionally perform depletion of a rate limit (Pull Request 248) - Add new
default_limits_deduct_when
argument to Limiter constructor to
conditionally perform depletion of default rate limits - Add
default_limits_exempt_when
argument that accepts a function to
allow skipping the default limits in thebefore_request
phase
Bug Fix
- Fix handling of storage failures during
after_request
phase.
Code Quality
- Use github-actions instead of travis for CI
- Use pytest instaad of nosetests
- Add docker configuration for test dependencies
- Increase code coverage to 100%
- Ensure pyflake8 compliance