fx.RecoverFromPanicsOption which allows Fx to recover from user-provided constructors
and invoked functions.
fx.Privatethat allows the constructor to limit the scope of its outputs to the wrapping
ExitCodeShutdownOption which allows setting custom exit code at the end of app
Waitwhich returns a channel that can be used for waiting on application shutdown.
- fxevent/ZapLogger now exposes
UseErrorLevelmethods to set
the level of the Zap logs produced by it.
- Add lifecycle hook-convertible methods:
that can be used with more function signatures.
fx.WithLoggercan now be passed at
fx.Modulelevel, setting custom logger at
Modulescope instead of the whole
fx.OnStopAnnotations now work with annotated types that was
provided by the annotated constructor.
- fxevent/ZapLogger: Errors from
fx.Supplyare now logged at
- A race condition in lifecycle Start/Stop methods.
- Typos in docs.