You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add `Pecorino::Block` for setting blocks directly. These are available both to `Throttle` with the same key and on their own. This can be used to set arbitrary blocks without having to configure a `Throttle` first.
4
+
5
+
## 0.5.0
2
6
3
7
- Add `CachedThrottle` for caching the throttle blocks. This allows protection to the database when the throttle is in a blocked state.
4
8
- Add `Throttle#throttled` for silencing alerts
5
9
-**BREAKING CHANGE** Remove `Throttle::State#retry_after`, because there is no reasonable value for that member if the throttle is not in the "blocked" state
6
10
- Allow accessing `Throttle::State` from the `Throttled` exception so that the blocked throttle state can be cached downstream (in Rails cache, for example)
7
11
- Make `Throttle#request!` return the new state if there was no exception raised
8
12
9
-
## [0.4.1] - 2024-02-11
13
+
## 0.4.1
10
14
11
15
- Make sure Pecorino works on Ruby 2.7 as well by removing 3.x-exclusive syntax
12
16
13
-
## [0.4.0] - 2024-01-22
17
+
## 0.4.0
14
18
15
19
- Use Bucket#connditional_fillup inside Throttle and throttle only when the capacity _would_ be exceeded, as opposed
16
20
to throttling when capacity has already been exceeded. This allows for finer-grained throttles such as
@@ -21,17 +25,17 @@
21
25
- Allow "conditional fillup" - only add tokens to the leaky bucket if the bucket has enough space.
22
26
- Fix `over_time` leading to incorrect `leak_rate`. The divider/divisor were swapped, leading to the inverse leak rate getting computed.
23
27
24
-
## [0.3.0] - 2024-01-18
28
+
## 0.3.0
25
29
26
30
- Allow `over_time` in addition to `leak_rate`, which is a more intuitive parameter to tweak
27
31
- Set default `block_for` to the time it takes the bucket to leak out completely instead of 30 seconds
28
32
29
-
## [0.2.0] - 2024-01-09
33
+
## 0.2.0
30
34
31
35
-[Add support for SQLite](https://github.com/cheddar-me/pecorino/pull/9)
32
36
-[Use comparisons in SQL to determine whether the leaky bucket did overflow](https://github.com/cheddar-me/pecorino/pull/8)
33
37
-[Change the way Structs are defined to appease Tapioca/Sorbet](https://github.com/cheddar-me/pecorino/pull/6)
0 commit comments