Skip to content

Commit 7497522

Browse files
authored
docs(release): 0.13.1 release notes (#154)
Curated notes are mandatory for a stable tag; the release workflow aborts before `just publish` if the file is missing.
1 parent 9ad7970 commit 7497522

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

‎planning/releases/0.13.1.md‎

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# faststream-outbox 0.13.1 — cap fastapi below 0.140
2+
3+
**Patch release.** No package code changes. The only change that reaches an
4+
installed environment is a dependency constraint: the `fastapi` extra now caps
5+
fastapi below `0.140`, because the FastAPI integration is broken with it.
6+
7+
## Why
8+
9+
fastapi 0.140.0 made `Dependant` a **slotted** dataclass and dropped `model`
10+
from its fields. faststream's FastAPI integration assigns `dependant.model` in
11+
`faststream/_internal/fastapi/get_dependant.py`, so registering any FastStream
12+
subscriber inside a FastAPI app now raises:
13+
14+
```
15+
AttributeError: 'Dependant' object has no attribute 'model' and no __dict__ for setting new attributes
16+
```
17+
18+
The bug is upstream in faststream, tracked at
19+
[ag2ai/faststream#2959](https://github.com/ag2ai/faststream/issues/2959). No
20+
fixed faststream release exists yet.
21+
22+
Before this release, a fresh `pip install faststream-outbox[fastapi]` resolved
23+
straight into the broken pairing:
24+
25+
```
26+
+ fastapi==0.140.1
27+
+ faststream==0.7.2
28+
+ faststream-outbox==0.13.0
29+
```
30+
31+
faststream declares **no fastapi dependency of its own** — not even an optional
32+
extra — so it reaches FastAPI through an optional import and expects the caller
33+
to supply it. That makes this package's `fastapi` extra the only place in the
34+
dependency graph where the pairing can be constrained.
35+
36+
## Who was affected
37+
38+
- **Affected:** fresh installs or unpinned re-resolves of
39+
`faststream-outbox[fastapi]` or `[all]` that use the FastAPI integration path
40+
(an `OutboxRouter` mounted in a FastAPI app).
41+
- **Not affected:** the core outbox — producers, subscribers, the lease and
42+
terminal-write paths, timers, asyncpg, Kafka, Prometheus, and OpenTelemetry
43+
are untouched. Environments already pinned to fastapi `<0.140` are unaffected.
44+
45+
## Compatibility
46+
47+
No API change. If you do not install the `fastapi` extra, nothing changes for
48+
you. If you do, resolution now holds you at fastapi `0.139.x` instead of
49+
resolving a version that fails at route registration.
50+
51+
## Lifting the cap
52+
53+
The cap is a proxy for the real requirement — a faststream new enough to handle
54+
a slotted `Dependant`. Once #2959 ships, the follow-up release should **drop the
55+
fastapi cap** and **raise the faststream floor** in `[project.dependencies]`
56+
instead, so the constraint states the actual requirement and fastapi is free to
57+
move again.
58+
59+
## Touched surface
60+
61+
- `pyproject.toml` — `fastapi` extra capped to `>=0.95,<0.140`; the same cap in
62+
the dev dependency group. **No package code changed.**
63+
- Lint config: `CPY001` ignored and two autofixes (`ISC004`, an unused
64+
`RUF100` `noqa`) taken for ruff 0.16.0, which stabilized those rules out of
65+
preview. Markdown code blocks reformatted, which ruff 0.16.0 now formats.
66+
None of this affects the installed package.
67+
68+
## See also
69+
70+
- PR: [#153](https://github.com/modern-python/faststream-outbox/pull/153).
71+
- Upstream: [ag2ai/faststream#2959](https://github.com/ag2ai/faststream/issues/2959).

0 commit comments

Comments
 (0)