Skip to content

Releases: uber-go/dig

v1.11.0

09 Jun 21:08
7673eb2
Compare
Choose a tag to compare

Added

  • Support unexported fields on dig.In structs with the
    ignore-unexported:"true struct tag.

v1.10.0

16 Jun 22:49
627535a
Compare
Choose a tag to compare

Added

  • Introduce DryRun Option which, when set to true, disables invocation
    of functions supplied to Provide and Invoke. This option will be
    used to build no-op containers, for example for fx.ValidateApp method.

v1.9.0

06 Apr 21:42
781ef04
Compare
Choose a tag to compare

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

14 Nov 21:59
be30405
Compare
Choose a tag to compare

Changed

  • Migrated to Go modules.

v1.7.0

04 Jan 17:50
Compare
Choose a tag to compare

Added

  • Added Group option for Provide to add value groups to the container without
    rewriting constructors. See package doucmentation for more information.

v1.6.0

06 Nov 19:13
12c8ada
Compare
Choose a tag to compare

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.

v1.5.1

01 Nov 20:08
bc5e6a1
Compare
Choose a tag to compare

Fixed

  • Fixed a test that was causing Dig to be unusable with Go Modules.

v1.5.0

19 Sep 16:44
Compare
Choose a tag to compare

Added

  • Added a DeferAcyclicVerification container option that defers graph cycle
    detection until the next Invoke.

Changed

  • Improved cycle-detection performance by 50x in certain degenerative cases.

v1.4.0

17 Aug 00:31
Compare
Choose a tag to compare

Added

  • Added Visualize function to visualize the state of the container in the
    GraphViz DOT format. This allows visualization of error types and the
    dependency relationships of types in the container.
  • Added CanVisualizeError function to determine if an error can be visualized
    in the graph.
  • Added Name option for Provide to add named values to the container
    without rewriting constructors. See package documentation for more
    information.

Changed

  • name:"..." tags on nested Result Objects will now cause errors instead of
    being ignored.

v1.3.0

04 Dec 19:53
Compare
Choose a tag to compare
  • Improved messages for errors thrown by Dig under a many scenarios to be more
    informative.