Releases: uber-go/fx
Releases · uber-go/fx
v1.24.0
Added
- A new event
fxevent.BeforeRunis now emitted before Fx runs a constructor,
decorator, or supply/replace stub.
Changed
- Clearer error messages are now used when annotation building fails.
Thanks to @Groxx, @abhinav, @90Byte, @Giatroo, and @jkanywhere for their contributions to this release.
v1.23.0
Added
- Added
Runtimetofxevent.Runevent, which stores the runtime of
a constructor or a decorator that's run, including functions created
byfx.Supplyandfx.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.Selfwhich can be passed to thefx.Asannotation to signify
that a type should be provided as itself. - Add
fxtest.EnforceTimeoutthat can be passed tofxtest.NewLifecycle
to forceStartandStopto return context errors when hook context expires.
Changed
fx.Privatecan 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.TBas 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
ShutdownTimeoutoption.
Fixed
- Respect Shutdowner ExitCode from calling
Run.