Releases: uber-go/dig
Releases · uber-go/dig
v1.14.0
Added
- Introduce
dig.Scope
which creates a scoped dependency injection
container to scope dependencies. - Introduce
Scope.Decorate
andContainer.Decorate
which allows a
decorator to modify a dependency already provided in the dependency graph. - Add
FillDecorateInfo
Option andDecorateInfo
struct which exposes
information on what Dig was able to understand from the decorator provided
withScope.Decorate
orContainer.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.
v1.13.0
v1.12.0
v1.11.0
v1.10.0
v1.9.0
Added
- GraphViz visualization of the graph now includes names of packages next to
constructors. - Added a
flatten
modifier to group tags for slices to allow providing
individual elements instead of the slice for a group value. See package
doucmentation for more information.
Changed
- Drop library dependency on
golang.org/x/lint
. - Support printing multi-line error messages with
%+v
.