Skip to content

v1.17.0

Compare
Choose a tag to compare
@sywhang sywhang released this 01 Mar 02:56
· 211 commits to master since this release
2f82f30

Added

  • Add fx.Module which scopes any modifications made to the dependency graph.
  • Add fx.Decorate and fx.Replace that lets you modify a dependency graph with decorators.
  • Add fxevent.Decorated event which gets emitted upon a dependency getting decorated.

Changed

  • fx.Annotate: Validate that fx.In or fx.Out structs are not passed to it.
  • fx.Annotate: Upon failure to Provide, the error contains the actual location
    of the provided constructor.