github uber-go/dig v1.14.0

latest releases: v1.17.1, v1.17.0, v1.16.1...
2 years ago

Added

  • Introduce dig.Scope which creates a scoped dependency injection
    container to scope dependencies.
  • Introduce Scope.Decorate and Container.Decorate which allows a
    decorator to modify a dependency already provided in the dependency graph.
  • Add FillDecorateInfo Option and DecorateInfo struct which exposes
    information on what Dig was able to understand from the decorator provided
    with Scope.Decorate or Container.Decorate.

Changed

  • The error message that appears when a cycle is detected in the dependency graph
    has been changed slightly.

Fixed

  • A stack overflow bug that happens when cycles are introduced via self-pointing
    dependencies with DeferAcyclicVerification.

Don't miss a new dig release

NewReleases is sending notifications on new releases.