Skip to content

Releases: uber-go/dig

v1.19.0

13 May 19:45
af45368
Compare
Choose a tag to compare

Added

  • BeforeCallbacks can be registered using WithProviderBeforeCallback and
    WithDecoratorBeforeCallback to hook custom callbacks into Dig
    to be run before constructors or decorators are run.

Changed

  • 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.18.2

08 May 18:43
c8eb7b9
Compare
Choose a tag to compare

Fixed

  • The exported Version string incorrectly containing "-dev".

v1.18.1

03 Mar 19:31
79808e1
Compare
Choose a tag to compare

Changed

  • Dot graph generation's internal implementation was changed so that
    Go linker can successfully perform dead code elimination for Go apps
    that use Dig.

Thanks to @pgimalac for their contribution to this releaase.

v1.18.0

07 Aug 14:34
9b9307c
Compare
Choose a tag to compare

Added

  • Child scope constructors are now visualized via Visualize
  • CallbackInfo now includes constructor/decorator run time.

Thanks to @greeflas for their contribution to this release.

v1.17.1

19 Oct 17:04
3c7d5e3
Compare
Choose a tag to compare

Added

  • Suggestions for value vs. pointer elements for slice and array types.

Fixed

  • 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

03 May 22:21
Compare
Choose a tag to compare

Added

  • Allow using dig.As with dig.Group.
  • Add FillInvokeInfo Option and InvokeInfo struct to help
    extract the types requested by an Invoke statement.
  • To get visibility into constructor and decorator calls, introduce
    WithProviderCallback and WithDecoratorCallback Options to provide callback functions.

v1.16.1

11 Jan 18:45
67800c3
Compare
Choose a tag to compare

Fixed

  • A panic when DryRun was used with Decorate.

v1.16.0

04 Jan 07:24
Compare
Choose a tag to compare

Added

  • Add RecoverFromPanics option, which provides panic-recovery mechanism for Container.
  • Add Error interface which enables distinguishing errors from Dig using standard errors
    package.

Thanks to @mie998 for their contribution(s) to this release.

v1.15.0

03 Aug 00:09
8fe1219
Compare
Choose a tag to compare

Added

  • Support for soft value groups, which specify a value group that only gets populated
    with values from already-executed constructors.

Fixed

  • Fix an issue with invoke order affecting results provided by private provides.

Thanks to @hbdf for their contributions to this release.

v1.14.1

22 Mar 17:17
d14f6ca
Compare
Choose a tag to compare

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.