Skip to content

v0.14.0

Latest

Choose a tag to compare

@floatdrop floatdrop released this 07 Sep 14:44
· 1 commit to main since this release
d1e5c63

A module dependency report, derived from what registrations already carry.
go doc -all against 0.13.1 adds Scope.Modules and changes no signature;
an upgrade cannot break a caller.

Added

  • Scope.Modules() renders the modules registered into a scope and its
    ancestors: what each provides, what it needs and which module serves it,
    what it wraps, and which of its constructors are closures whose needs are
    known only when they run. A need only a resolving scope can provide is
    reported as owed, as Validate reports it, and a module's dependency on its
    own services is left out. It is derived from what registrations already
    carry, the module label and the parameters Wire declares, so there is
    nothing to declare twice. Keys are named by their package rather than their
    import path, to read beside the module labels.