Releases: uber-go/fx
Releases · uber-go/fx
v1.23.0
Added
- Added
Runtime
tofxevent.Run
event, which stores the runtime of
a constructor or a decorator that's run, including functions created
byfx.Supply
andfx.Replace
.
Changed
- Overhauled the documentation website. (https://uber-go.github.io/fx/)
v1.22.2
v1.22.1
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
Added
- Add
fx.Self
which can be passed to thefx.As
annotation to signify
that a type should be provided as itself. - Add
fxtest.EnforceTimeout
that can be passed tofxtest.NewLifecycle
to forceStart
andStop
to return context errors when hook context expires.
Changed
fx.Private
can now be used withfx.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
v1.21.0
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
v1.20.0
v1.19.3
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 fromInvoke
.
Deprecated
- Deprecate
ShutdownTimeout
option.
Fixed
- Respect Shutdowner ExitCode from calling
Run
.