From ff625511d0a91c038d287278734002fa2f647b65 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sat, 17 Oct 2026 19:58:08 +0300 Subject: [PATCH] docs: note that modern-di-faststream 4.2.2 drops the request container context key --- docs/integrations/faststream.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/integrations/faststream.md b/docs/integrations/faststream.md index 5fcd304d..b3efc853 100644 --- a/docs/integrations/faststream.md +++ b/docs/integrations/faststream.md @@ -105,7 +105,9 @@ inside another framework's lifespan, such as FastAPI's, wrap it in `FastStream(b Since modern-di-faststream 4.0.1, the integration keeps its containers in the FastStream context under the keys `modern_di_root_container` and `modern_di_request_container`, so a context value of your own named `di_container` or `request_container` no longer replaces them. Code that read -`di_container` from the context should call `fetch_di_container(app)` instead. +`di_container` from the context should call `fetch_di_container(app)` instead. Since +modern-di-faststream 4.2.2, the request container is not in the FastStream context at all, so +`modern_di_request_container` is gone too; only the root container key remains. ## Framework context objects