Skip to content

Releases: uber-go/fx

v1.14.2

Choose a tag to compare

@shirchen shirchen released this 16 Aug 21:41
1622a99

Changed

  • For fxevent console implementation: no longer log non-error case for fxevent.Invoke event, while for zap implementation, start logging fx.Invoking case without stack.

v1.14.1

Choose a tag to compare

@sywhang sywhang released this 16 Aug 17:37
a857d1a

Changed

  • fxevent.Invoked was being logged at Error level even upon successful Invoke.
    This was changed to log at Info level when Invoke succeeded.

v1.14.0

Choose a tag to compare

@shirchen shirchen released this 12 Aug 21:49
af8dcf3

Added

  • Introduce the new fx.WithLogger option. Provide a constructor for
    fxevent.Logger objects with it to customize how Fx logs events.
  • Add new fxevent package that exposes events from Fx in a structured way.
    Use this to write custom logger implementations for use with the
    fx.WithLogger option.
  • Expose and log additional information when lifecycle hooks time out.

Changed

  • Fx now emits structured JSON logs by default. These may be parsed and
    processed by log ingestion systems.
  • fxtest.Lifecycle now logs to the provided testing.TB instead of stderr.
  • fx.In and fx.Out are now type aliases instead of structs.

v1.13.1

Choose a tag to compare

@shirchen shirchen released this 19 Aug 23:07
59a1838

Fixed

  • Fix minimum version constraint for dig. fx.ValidateGraph requires at least
    dig 1.10.

v1.13.0

Choose a tag to compare

@shirchen shirchen released this 16 Jun 23:00

Added

  • Added fx.ValidateGraph which allows graph cycle validation and dependency correctness
    without running anything. This is useful if fx.Invoke has side effects, does I/O, etc.

v1.12.0

Choose a tag to compare

@abhinav abhinav released this 09 Apr 22:21

Added

  • Added fx.Supply to provide externally created values to Fx containers
    without building anonymous constructors.

Changed

  • Drop library dependency on development tools.

v1.11.0

Choose a tag to compare

@robbertvanginkel robbertvanginkel released this 01 Apr 20:11
bf89f9c

Added

  • Value groups can use the flatten option to indicate values in a slice should
    be provided individually rather than providing the slice itself. See package
    documentation for details.

v1.10.0

Choose a tag to compare

@abhinav abhinav released this 20 Nov 19:59
ad2e5fa

Added

  • All fx.Options now include readable string representations.
  • Report stack traces when fx.Provide and fx.Invoke calls fail. This
    should make these errors more debuggable.

Changed

  • Migrated to Go modules.

v1.9.0

Choose a tag to compare

@abhinav abhinav released this 22 Jan 18:50
3de044d

Added

  • Add the ability to shutdown Fx applications from inside the container. See
    the Shutdowner documentation for details.
  • Add fx.Annotated to allow users to provide named values without creating a
    new constructor.

v1.8.0

Choose a tag to compare

@zmt zmt released this 06 Nov 19:07
9c82e1d

Added

  • Provide DOT graph of dependencies in the container.