2022-03-18 18:00:33 +01:00
# Changes
2023-09-16 01:30:38 +02:00
## Unreleased
2022-09-11 01:06:57 +02:00
2023-01-07 02:15:26 +01:00
- Update `redis` dependency to `0.22` .
2023-09-16 01:30:38 +02:00
## 0.4.0
2023-01-07 02:02:02 +01:00
2022-09-11 01:02:54 +02:00
- Add `Builder::key_by` for setting a custom rate limit key function.
2022-07-31 04:03:43 +02:00
- Implement `Default` for `RateLimiter` .
2022-08-07 21:56:33 +02:00
- `RateLimiter` is marked `#[non_exhaustive]` ; use `RateLimiter::default()` instead.
2022-08-28 21:49:14 +02:00
- In the middleware errors from the count function are matched and respond with `INTERNAL_SERVER_ERROR` if it's an unexpected error, instead of the default `TOO_MANY_REQUESTS` .
2022-08-28 21:30:32 +02:00
- Minimum supported Rust version (MSRV) is now 1.59 due to transitive `time` dependency.
2023-09-16 01:30:38 +02:00
## 0.3.0
2023-01-07 02:02:02 +01:00
2022-07-11 03:05:22 +02:00
- `Limiter::builder` now takes an `impl Into<String>` .
- Removed lifetime from `Builder` .
- Updated `actix-session` dependency to `0.7` .
2022-03-22 16:36:41 +01:00
2023-09-16 01:30:38 +02:00
## 0.2.0
2023-01-07 02:02:02 +01:00
2022-07-31 04:03:43 +02:00
- Update Actix Web dependency to v4 ecosystem.
- Update Tokio dependencies to v1 ecosystem.
- Rename `Limiter::{build => builder}()` .
- Rename `Builder::{finish => build}()` .
- Exceeding the rate limit now returns a 429 Too Many Requests response.
2022-03-18 18:00:33 +01:00
2023-09-16 01:30:38 +02:00
## 0.1.4
2023-01-07 02:02:02 +01:00
2022-03-18 18:00:33 +01:00
- Adopted into @actix org from < https: // github . com / 0xmad / actix-limitation > .