All Versions
24
Latest Version
Avg Release Cycle
79 days
Latest Release
961 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v1.14.1 Changes
March 22, 2022๐ Fixed
- ๐ Fix an issue where a dependency for a decoration supplied by another decorator in the same scope is ignored.
- ๐ Fix a panic when submitting a single value as a value group in
Scope.Decorate
. - Upon a provide error, make the error message contain the function named specified by LocationForPC Option.
-
v1.14.0 Changes
February 23, 2022โ 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
-
v1.13.0 Changes
September 21, 2021โ Added
- ๐ Introduce
As
option which supports providing a type as interface(s) it implements to the container. - โ Add
LocationForPC
option which overrides the function inspection for a program counter address to a provided function info.
- ๐ Introduce
-
v1.12.0 Changes
July 29, 2021โ Added
- ๐ Support for ProvideInfo and FillProvideInfo that allow the caller of
Provide
to get info about what dig understood from the constructor.
- ๐ Support for ProvideInfo and FillProvideInfo that allow the caller of
-
v1.11.0 Changes
June 09, 2021โ Added
- ๐ Support unexported fields on
dig.In
structs with theignore-unexported:"true
struct tag.
- ๐ Support unexported fields on
-
v1.10.0 Changes
June 16, 2020โ Added
- Introduce
DryRun
Option which, when set to true, disables invocation of functions supplied toProvide
andInvoke
. This option will be used to build no-op containers, for example forfx.ValidateApp
method.
- Introduce
-
v1.9.0 Changes
March 31, 2020โ 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
.
-
v1.8.0 Changes
November 14, 2019๐ Changed
- Migrated to Go modules.
-
v1.7.0 Changes
January 04, 2019โ Added
- โ Added
Group
option forProvide
to add value groups to the container without ๐ rewriting constructors. See package doucmentation for more information.
- โ Added
-
v1.6.0 Changes
November 06, 2018๐ Changed
- When an error graph is visualized, the graph is pruned so that the graph only contains failure nodes.
- Container visualization is now oriented from right to left.