fx v1.17.0 Release Notes

Release Date: 2021-02-28 // over 1 year ago
  • ➕ 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.