From 93b71b76ca76a051da3cf82f8973653b6811b641 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Tue, 7 Jul 2026 22:24:38 +0300 Subject: [PATCH] =?UTF-8?q?docs(release):=202.1.0=20notes=20=E2=80=94=20mo?= =?UTF-8?q?dern-di=202.25=20integration=20seams=20adoption?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- planning/releases/2.1.0.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 planning/releases/2.1.0.md 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.