Skip to content

fastapi-canon 0.26.0

Choose a tag to compare

0.26.0 - 2026-11-23

Breaking changes

See the upgrade guide.

  • CANON-026-FEATURE-ERRORS — Feature.errors holds only the explicit
    errors= list. Read Feature.error_registry for 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 use Composition.override()
    when you need to replace it.
  • CANON-026-TELEMETRY-BINDING — Configure the Telemetry(...)
    integration directly if you previously used Composition.override() to
    replace its reserved Dishka binding.

Added

  • Integration.final_providers lets integrations decorate effective bindings
    after overrides.
  • Integration.finalizer runs cleanup after application shutdown closes the
    container or when the initial build() fails. Pass Telemetry(shutdown=...)
    to release application-owned SDK providers at that point (#208).
  • fastapi-canon generate --native selects all configured Canon generators and
    skips external targets (#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-scoped Inject[T] constructor parameters. See
    middleware (#207).

Fixed

  • dataclasses.replace() works on Feature and keeps its explicit errors (#205).
  • dataclasses.replace() works on Composition and 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).