diff --git a/planning/releases/2.1.0.md b/planning/releases/2.1.0.md new file mode 100644 index 0000000..79003ed --- /dev/null +++ b/planning/releases/2.1.0.md @@ -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.