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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+31-2Lines changed: 31 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,39 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) — versioning
8
8
9
9
## [Unreleased]
10
10
11
+
---
12
+
13
+
## [3.0.0] — 2026-06-04
14
+
15
+
### Breaking Changes
16
+
17
+
-`flush_interval` parameter **removed** from `ApiForgeMiddleware` — passing it now raises `TypeError`. The flush window is fixed at **60 seconds**.
18
+
-`env` no longer falls back to `os.environ.get("ENV")` — must be passed explicitly. Default is now `'production'`.
19
+
-`release` no longer falls back to `os.environ.get("APP_VERSION")` — must be passed explicitly. Default is now `None`.
20
+
11
21
### Added
12
22
13
-
-`bytes_avg` field: average response body size (bytes) per route per bucket, sourced from the `Content-Length` response header — stored in SQLite and exposed via `/api/routes`
14
-
- 4 unit tests covering `bytes_avg` aggregation and storage
23
+
-`bytes_avg` field: average response body size (bytes) per route per bucket, sourced from the `Content-Length` response header
24
+
-`inflight_avg` and `inflight_max` per route — inflight concurrency count captured via ASGI scope and aggregated per minute bucket
25
+
26
+
### Migration guide
27
+
28
+
```python
29
+
# Before (v2.x)
30
+
app.add_middleware(
31
+
ApiForgeMiddleware,
32
+
flush_interval=30_000, # ← remove (TypeError in v3)
0 commit comments