Skip to content

Releases: uber-go/fx

v1.23.0

11 Oct 17:36
699948c
Compare
Choose a tag to compare

Added

  • Added Runtime to fxevent.Run event, which stores the runtime of
    a constructor or a decorator that's run, including functions created
    by fx.Supply and fx.Replace.

Changed

v1.22.2

07 Aug 15:19
61862da
Compare
Choose a tag to compare

Fixed

  • A deadlock with the relayer in signal receivers.

Changed

  • Upgrade Dig dependency to v1.18.0

v1.22.1

25 Jun 20:14
45af511
Compare
Choose a tag to compare

Fixed

  • Fx apps will only listen to signals when .Run(), .Wait(), or .Done()
    are called, fixing a regression introduced in v1.19.0.

Thank you @MarcoPolo for your contribution to the release.

v1.22.0

30 May 14:39
e6a361e
Compare
Choose a tag to compare

Added

  • Add fx.Self which can be passed to the fx.As annotation to signify
    that a type should be provided as itself.
  • Add fxtest.EnforceTimeout that can be passed to fxtest.NewLifecycle
    to force Start and Stop to return context errors when hook context expires.

Changed

  • fx.Private can now be used with fx.Supply.

Fixed

  • Fx apps will no longer listen to OS signals when they are stopped,
    solving blocking issues in programs that depended on OS signals
    after an Fx app stops.

Thank you @MarcoPolo for your contribution to the release.

v1.21.1

24 Apr 15:40
0db209f
Compare
Choose a tag to compare

Changed

  • Register Fx provides (e.g. fx.Lifecycle, fx.Shutdowner, fx.DotGraph) before
    user provides, to increase likelihood of successful custom logger creation.

v1.21.0

13 Mar 15:19
7940a27
Compare
Choose a tag to compare

Added

  • fxtest: Add WithTestLogger option that uses a testing.TB as the
    Fx event logger.
  • An fxevent logger that can log events using a slog logger has been added.

Changed

  • Upgrade Dig dependency to v1.17.1

Thanks to @robbert229 for their contribution to the release.

v1.20.1

17 Oct 23:18
9636854
Compare
Choose a tag to compare

Added

  • Provided, Decorated, Supplied, and Replaced events now include a trace
    of module locations through which the option was given to the App.
  • wasi support.

v1.20.0

12 Jun 17:34
1320bc6
Compare
Choose a tag to compare

Added

  • A new event fxevent.Run is now emitted when Fx runs a constructor, decorator,
    or supply/replace stub.

Changed

  • fx.Populate now works with fx.Annotate.
  • Upgrade Dig dependency to v1.17.0.

v1.19.3

08 May 17:37
2fec0b8
Compare
Choose a tag to compare

Changed

  • Fixed several typos in docs.
  • WASM build support.
  • Annotating In and Out structs with From/As annotations generated invalid results.
    The annotation check now blocks this.
  • Shutdown: Support calling from Invoke.

Deprecated

  • Deprecate ShutdownTimeout option.

Fixed

  • Respect Shutdowner ExitCode from calling Run.

v1.19.2

21 Feb 17:41
Compare
Choose a tag to compare

Changed

  • Upgrade Dig dependency to v1.16.1.