dig v1.14.0 Release Notes
Release Date: 2022-02-23 // over 1 year ago-
โ 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.
- Introduce