Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions planning/releases/3.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# modern-di-taskiq 3.0.0 — modern-di 3.x

Requires **modern-di >= 3, < 4**. **No public API change** — `FromDI`,
`fetch_di_container`, `setup_di`, and `taskiq_message_provider` keep their
signatures and behavior. The adapter already drove the explicit open/close
container lifecycle (`async with` around the per-task child container, and
`container.open()` / `await container.close_async()` on the root container
via the `WORKER_STARTUP` / `WORKER_SHUTDOWN` event handlers), so no adapter
code changed for
[modern-di 3.0's mandatory-open lifecycle](https://modern-di.modern-python.org/migration/to-3.x/).

## Packaging

- **Bumped the `modern-di` dependency to `>=3,<4`.** Requires modern-di 3.x;
drops support for modern-di 2.x.

## Downstream

No action needed beyond raising your own `modern-di` floor to `>=3`. If your
code builds child containers, open them with `with` / `async with` (or
`open()`) before resolving — see the
[modern-di 3.x migration guide](https://modern-di.modern-python.org/migration/to-3.x/).

## Internals

- 100% line coverage; `ruff`, `ty` clean.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ classifiers = [
"Typing :: Typed",
"Topic :: Software Development :: Libraries",
]
dependencies = ["taskiq>=0.11,<0.13", "modern-di>=2.28,<3"]
dependencies = ["taskiq>=0.11,<0.13", "modern-di>=3,<4"]
version = "0"

[project.urls]
Expand Down
Loading