All Versions
24
Latest Version
Avg Release Cycle
79 days
Latest Release
760 days ago

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 and Container.Decorate which allows a decorator to modify a dependency already provided in the dependency graph.
    • โž• Add FillDecorateInfo Option and DecorateInfo struct which exposes information on what Dig was able to understand from the decorator provided with Scope.Decorate or Container.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.
  • 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.
  • 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.
  • v1.11.0 Changes

    June 09, 2021

    โž• Added

    • ๐Ÿ‘Œ Support unexported fields on dig.In structs with the ignore-unexported:"true struct tag.
  • v1.10.0 Changes

    June 16, 2020

    โž• 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 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 for Provide to add value groups to the container without ๐Ÿ‘€ rewriting constructors. See package doucmentation for more information.
  • 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.