From 1d2c2e33ab5478ea121446f1e40a272a8da280b4 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Tue, 7 Jul 2026 22:25:59 +0300 Subject: [PATCH] docs: release notes for 2.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add planning/releases/2.1.0.md — the verbatim GitHub Release body the tag-driven Release workflow will publish. Maintenance release: fixture dispatch now delegates to modern-di 2.25's Container.resolve_dependency seam (modern-python/modern-di#283), floor bumped to modern-di>=2.25,<3. No public API change. Minor bump per the org-wide ruling that a dep-floor raise ships as minor. --- planning/releases/2.1.0.md | 22 ++++++++++++++++++++++ 1 file changed, 22 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..605320c --- /dev/null +++ b/planning/releases/2.1.0.md @@ -0,0 +1,22 @@ +# modern-di-pytest 2.1.0 — adopt modern-di's resolve_dependency seam + +A maintenance release. No public API changes — `expose` and `modern_di_fixture` +keep the same signatures and behavior. + +## Internal refactors + +- **`modern_di_fixture` delegates to `container.resolve_dependency`.** The + inline `isinstance(dependency, AbstractProvider)` dispatch — `resolve_provider` + for a Provider, `resolve` for a type — is now `container.resolve_dependency(dependency)`, + the single provider-or-type entry point modern-di 2.25 added for integrations + (`add_providers`/`resolve_dependency`, [modern-python/modern-di#283](https://github.com/modern-python/modern-di/pull/283)). + Overrides, caching, scope checks, and "did you mean" suggestions behave + exactly as before. +- The `modern-di` floor is bumped to `>=2.25,<3` accordingly. This plugin never + reached into `container.providers_registry`, so the sibling `add_providers` + seam does not apply here. + +## Downstream + +Upgrade `modern-di` to `>=2.25` (or let this bump pull it in). No code changes +needed — the fixture and `expose()` contracts are unchanged.