All Versions
31
Latest Version
Avg Release Cycle
98 days
Latest Release
232 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v1.18.1 Changes
August 08, 2022๐ Fixed
- ๐ Fix a nil panic when
nil
is passed toOnStart
andOnStop
lifecycle methods.
- ๐ Fix a nil panic when
-
v1.18.0 Changes
August 05, 2022โ Added
- Soft value groups that lets you specify value groups as best-effort dependencies.
fx.OnStart
andfx.OnStop
annotations which lets you annotate dependencies to provide OnStart and OnStop lifecycle hooks.- A new
fxevent.Replaced
event written tofxevent.Logger
following anfx.Replace
.
๐ Fixed
- โฌ๏ธ 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.WithLogger
no 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.Start
andApp.Stop
no longer deadlock if the OnStart/OnStop hook exits the current goroutine.fxevent.ConsoleLogger
no longer emits an extraneous argument for the Supplied event.
๐ Deprecated
fx.Extract
in favor offx.Populate
.
-
v1.17.1 Changes
March 23, 2021โ Added
- ๐ฒ Logging for provide/invoke/decorate now includes the associated
fx.Module
name.
- ๐ฒ Logging for provide/invoke/decorate now includes the associated
-
v1.17.0 Changes
February 28, 2021โ Added
- โ Add
fx.Module
which scopes any modifications made to the dependency graph. - โ Add
fx.Decorate
andfx.Replace
that lets you modify a dependency graph with decorators. - โ Add
fxevent.Decorated
event which gets emitted upon a dependency getting decorated.
๐ Changed
fx.Annotate
: Validate thatfx.In
orfx.Out
structs are not passed to it.fx.Annotate
: Upon failure to Provide, the error contains the actual location of the provided constructor.
- โ Add
-
v1.16.0 Changes
December 02, 2021โ Added
- โ Add the ability to provide a function as multiple interfaces at once using
fx.As
.
๐ Changed
- ๐
fx.Annotate
: support variadic functions, and feeding value groups into them.
๐ Fixed
- ๐ Fix an issue where OnStop hooks weren't getting called on SIGINT on Windows.
- ๐ Fix a data race between app.Done() and shutdown.
- โ Add the ability to provide a function as multiple interfaces at once using
-
v1.15.0 Changes
November 08, 2021โ Added
- โ Add
fx.Annotate
to allow users to provide parameter and result tags easily without having to createfx.In
orfx.Out
structs. - โ Add
fx.As
that allows users to annotate a constructor to provide its result type(s) as interface(s) that they implement instead of the types themselves.
๐ Fixed
- ๐ Fix
fxevent.Stopped
not being logged whenApp.Stop
is called. - ๐ Fix
fxevent.Started
orfxevent.Stopped
not being logged when start or stop times out.
- โ Add
-
v1.14.2 Changes
August 16, 2021๐ Changed
- ๐ฒ For
fxevent
console implementation: no longer log non-error case forfxevent.Invoke
event, while for zap implementation, start loggingfx.Invoking
case without stack.
- ๐ฒ For
-
v1.14.1 Changes
August 16, 2021๐ Changed
fxevent.Invoked
was being logged atError
level even upon successfulInvoke
. This was changed to log atInfo
level whenInvoke
succeeded.
-
v1.14.0 Changes
August 12, 2021โ Added
- Introduce the new
fx.WithLogger
option. Provide a constructor forfxevent.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 thefx.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.
- Introduce the new
-
v1.13.1 Changes
August 19, 2020๐ Fixed
- ๐ Fix minimum version constraint for dig.
fx.ValidateGraph
requires at least dig 1.10.
- ๐ Fix minimum version constraint for dig.