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-starlette 2.1.0 — adopt modern-di 2.25 integration seams

Internal refactor, no API change. Swaps the two reach-into-modern-di-internals
spots for the blessed integration seams added in
[modern-di 2.25.0](https://github.com/modern-python/modern-di/releases/tag/2.25.0)
(see [modern-python/modern-di#283](https://github.com/modern-python/modern-di/pull/283)).

## Internal

- `setup_di` now registers the connection providers via
`container.add_providers(...)` instead of reaching into
`container.providers_registry`.
- `FromDI` resolution now dispatches through `container.resolve_dependency(dep)`
instead of an `isinstance`-on-`AbstractProvider` check reimplemented locally.
- `architecture/dependency-resolution.md` updated to describe the
`resolve_dependency` seam.

## Packaging

- Bumps the `modern-di` floor to `>=2.25.0,<3`.

## Downstream

No action needed — the public API (`setup_di`, `FromDI`, `@inject`,
`fetch_di_container`, `starlette_request_provider`/`starlette_websocket_provider`)
is unchanged. Upgrading only requires `modern-di>=2.25.0`.

## Internals

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