Skip to content
Merged
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
30 changes: 30 additions & 0 deletions planning/releases/2.1.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# modern-di-aiohttp 2.1.0 — adopt the modern-di 2.25 integration seams

Internal refactor, no behavior or API change: the integration now calls the
blessed `Container` seams instead of reaching into internals.

## Internal refactors

- **`container.add_providers(...)` replaces the `providers_registry` reach-in.**
`setup_di` now registers the connection providers via
`container.add_providers(*_CONNECTION_PROVIDERS)` instead of
`container.providers_registry.add_providers(...)`.
- **`container.resolve_dependency(...)` replaces the marker-dispatch
`isinstance` check.** `_resolve_di_params` now delegates provider-or-type
dispatch to `Container.resolve_dependency` instead of re-implementing the
`isinstance(marker.dependency, providers.AbstractProvider)` branch.

## Packaging

- Bumps the `modern-di` floor to `>=2.25.0,<3` (from `>=2.21.0,<3`), the
release that adds these seams
([modern-python/modern-di#283](https://github.com/modern-python/modern-di/pull/283)).

## Downstream

No action needed beyond picking up the new floor — no public API changed.

## Internals

- 100% line coverage; `ruff`, `ty`, and `eof-fixer` clean across Python
3.10–3.14.