Releases: uber-go/fx
Releases · uber-go/fx
v1.14.1
v1.14.0
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 providedtesting.TB
instead of stderr.fx.In
andfx.Out
are now type aliases instead of structs.
v1.13.1
v1.13.0
v1.12.0
v1.11.0
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
v1.9.0
v1.8.0
v1.7.1
Fixed
- Make
fxtest.New
ensure that the app was created successfully. Previously,
it would return the app (similar tofx.New
, which expects the user to verify
the error). - Update dig container to defer acyclic validation until after Invoke. Application
startup time should improve proportional to the size of the dependency graph. - Fix a goroutine leak in
fxtest.Lifecycle
.