Repository navigation
fastapi-canon 0.26.0
0.26.0 - 2026-11-23
Breaking changes
See the upgrade guide.
CANON-026-FEATURE-ERRORS—Feature.errorsholds only the explicit
errors=list. ReadFeature.error_registryfor the catalog merged with
router declarations.CANON-026-SHADOWED-BINDINGS— A Dishka binding provided by both a
feature and an integration, or by two integrations, can fail preflight with
canon.providers.E006. Keep one binding and useComposition.override()
when you need to replace it.CANON-026-TELEMETRY-BINDING— Configure theTelemetry(...)
integration directly if you previously usedComposition.override()to
replace its reserved Dishka binding.
Added
Integration.final_providerslets integrations decorate effective bindings
after overrides.Integration.finalizerruns cleanup after application shutdown closes the
container or when the initialbuild()fails. PassTelemetry(shutdown=...)
to release application-owned SDK providers at that point (#208).fastapi-canon generate --nativeselects all configured Canon generators and
skipsexternaltargets (#209).Composition.container()opens the composed Dishka container without a
FastAPI application or application lifespans (#206).Composition(middleware=[...])declares ASGI middleware outermost first, with
support for APP-scopedInject[T]constructor parameters. See
middleware (#207).
Fixed
dataclasses.replace()works onFeatureand keeps its explicit errors (#205).dataclasses.replace()works onCompositionand keeps its overrides, which
Composition(overrides=[...])now also accepts (#211).- Telemetry resource adapters instrument
Composition.override()replacements
and no longer depend on integration order (#204).