Skip to content

Releases: alisaifee/flask-limiter

2.1

22 Apr 02:41
2.1
Compare
Choose a tag to compare
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

22 Apr 02:41
2.0.4
Compare
Choose a tag to compare

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

22 Apr 02:41
2.0.3
Compare
Choose a tag to compare

Documentation & test tweaks

2.0.2

22 Apr 02:41
2.0.2
Compare
Choose a tag to compare

Features

  • Pin Flask, limits to >= 2
  • Add type hints

2.0.1

22 Apr 02:41
2.0.1
Compare
Choose a tag to compare

Deprecations

  • Remove deprecated get_ipaddr method
  • Remove use of six
  • Remove backward compatibility hacks for RateLimit exceptions

2.0.0

22 Apr 02:41
2.0.0
Compare
Choose a tag to compare

Drop support for python < 3.7 & Flask < 2.0

1.5

22 Apr 02:41
1.5
Compare
Choose a tag to compare
1.5

Final Release for python < 3.7

Features

  • Prepend key_prefix to extension variables attached to g
  • Expose g.view_limits

1.4

22 Apr 02:40
1.4
Compare
Choose a tag to compare
1.4

Bug Fix

  • Always set headers for conditional limits
  • Skip init_app sequence when the rate limiter is disabled

1.3.1

22 Apr 02:40
1.3.1
Compare
Choose a tag to compare

Bug Fix

  • Ensure headers provided explictely by setting _header_mapping
    take precedence over configuration values.

1.3

22 Apr 02:40
1.3
Compare
Choose a tag to compare
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 the before_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