v1.19.0
BeforeCallbacks can be registered usingWithProviderBeforeCallbackandWithDecoratorBeforeCallbackto hook custom callbacks into Dig to be run before constructors or decorators are run.
- Dot graph generation now results in much more clean and organized dot files.
Thanks to @Groxx, @architagr, and @pgimalac for their contributions to this release.
v1.17.1
- Suggestions for value vs. pointer elements for slice and array types.
- An issue where value group values were not getting decorated by decorators within the same module when using dig.Export(true).
- A typo in docs.
- An issue where false positives in cycle detection were occurring when providing to a child scope.
Thanks to @paullen and @lcarilla for their contributions to this release.
v1.17.0
- Allow using
dig.Aswithdig.Group. - Add
FillInvokeInfoOption andInvokeInfostruct to help extract the types requested by anInvokestatement. - To get visibility into constructor and decorator calls, introduce
WithProviderCallbackandWithDecoratorCallbackOptions to provide callback functions.
v1.14.1
- 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.