fx v1.18.0 Release NotesRelease Date: 2022-08-05 // 4 months ago
- Soft value groups that lets you specify value groups as best-effort dependencies.
fx.OnStopannotations which lets you annotate dependencies to provide OnStart and OnStop lifecycle hooks.
- A new
fxevent.Replacedevent written to
- ⬆️ Upgrade Dig dependency to v1.14.1 to address a couple of issues with decorations. Refer to Dig v1.14.1 release notes for more details.
fx.WithLoggerno longer ignores decorations and replacements of types that it depends on.
- Don't run lifecycle hooks if the context for them has already expired.
App.Stopno longer deadlock if the OnStart/OnStop hook exits the current goroutine.
fxevent.ConsoleLoggerno longer emits an extraneous argument for the Supplied event.
fx.Extractin favor of