Skip to content

Releases: uber-go/fx

v1.3.0

28 Nov 22:50
Compare
Choose a tag to compare
  • Improve readability of hook logging in addition to provide and invoke.
  • Fix bug which caused the OnStop for a lifecycle hook to be called even if it
    failed to start.

v1.2.0

06 Sep 17:38
Compare
Choose a tag to compare

Add fx.NopLogger which disables lifecycle output.

v1.1.0

22 Aug 22:07
Compare
Choose a tag to compare

Improve readability of start up logging.

v1.0.0

31 Jul 19:01
Compare
Choose a tag to compare

First stable release: no breaking changes will be made in the 1.x series.

  • [Breaking] Rename fx.Inject to fx.Extract.
  • [Breaking] Rename fxtest.Must* to fxtest.Require*.
  • [Breaking] Remove fx.Timeout and fx.DefaultTimeout.
  • fx.Extract now supports fx.In tags on target structs.

v1.0.0-rc2

21 Jul 18:42
Compare
Choose a tag to compare
v1.0.0-rc2 Pre-release
Pre-release
  • [Breaking] Lifecycle hooks now take a context.
  • Add fx.In and fx.Out which exposes optional and named types.
    Modules should embed these types instead of relying on dig.In and dig.Out.
  • Add an Err method to retrieve the underlying errors during the dependency
    graph construction. The same error is also returned from Start.
  • Graph resolution now happens as part of fx.New, rather than at the beginning
    of app.Start. This allows inspection of the graph errors through app.Err()
    before the decision to start the app.
  • Add a Logger option, which allows users to send Fx's logs to different
    sink.
  • Add fxtest.App, which redirects log output to the user's testing.TB and
    provides some lifecycle helpers.

v1.0.0-beta3.1

05 Jul 17:37
Compare
Choose a tag to compare
v1.0.0-beta3.1 Pre-release
Pre-release

Patch release to the widely adopted Beta3 version that updates the obsolete dependencies which have been causing problems, especially the logrus imports.

This release is only intended to remove the immediate pressure to migrate to RC1, there is no current plan to support the "beta3 branch".

v1.0.0-rc1

21 Jun 21:34
Compare
Choose a tag to compare
v1.0.0-rc1 Pre-release
Pre-release
  • [Breaking] Providing types into fx.App and invoking functions are now
    options passed during application construction. This makes users'
    interactions with modules and collections of modules identical.
  • [Breaking] TestLifecycle is now in a separate fxtest subpackage.
  • Add fx.Inject() to pull values from the container into a struct.

v1.0.0-beta4

12 Jun 20:27
Compare
Choose a tag to compare
v1.0.0-beta4 Pre-release
Pre-release
  • [Breaking] Monolithic framework, as released in initial betas, has been
    broken into smaller pieces as a result of recent advances in dig library.
    This is a radical departure from the previous direction, but it needed to
    be done for the long-term good of the project.
  • [Breaking] Module interface has been scoped all the way down to being
    a single dig constructor. This allows for very sophisticated module
    compositions. See go.uber.org/dig for more information on the constructors.
  • [Breaking] package config has been moved to its own repository.
    see go.uber.org/config for more information.
  • fx.Lifecycle has been added for modules to hook into the framework
    lifecycle events.
  • service.Host interface which composed a number of primitives together
    (configuration, metrics, tracing) has been deprecated in favor of
    fx.App.

v1.0.0-beta3

29 Mar 00:07
Compare
Choose a tag to compare
v1.0.0-beta3 Pre-release
Pre-release
  • [Breaking] Environment config provider was removed. If you were using
    environment variables to override YAML values, see
    config documentation for more information.
  • [Breaking] Simplify Provider interface: remove Scope method from the
    config.Provider interface, one can use either ScopedProvider and Value.Get()
    to access sub fields.
  • Add task.MustRegister convenience function which fails fast by panicking
    Note that this should only be used during app initialization, and is provided
    to avoid repetetive error checking for services which register many tasks.
  • Expose options on task module to disable execution. This will allow users to
    enqueue and consume tasks on different clusters.
  • [Breaking] Rename Backend interface Publish to Enqueue. Created a new
    ExecuteAsync method that will kick off workers to consume tasks and this is
    subsumed by module Start.
  • [Breaking] Rename package uhttp/client to uhttp/uhttpclient for clarity.
  • [Breaking] Rename PopulateStruct method in value to Populate.
    The method can now populate not only structs, but anything: slices,
    maps, builtin types and maps.
  • [Breaking] package dig has moved from go.uber.org/fx/dig to a new home
    at go.uber.org/dig.
  • [Breaking] Pass a tracer the uhttp/uhttpclient constructor explicitly, instead
    of using a global tracer. This will allow to use http client in parallel tests.

v1.0.0-beta2

10 Mar 19:53
Compare
Choose a tag to compare
v1.0.0-beta2 Pre-release
Pre-release
  • [Breaking] Remove ulog.Logger interface and expose *zap.Logger directly.
  • [Breaking] Upgrade zap to v1.0.0-rc.3 (now go.uber.org/zap, was
    github.com/uber-go/zap)
  • Remove now-unused config.IsDevelopmentEnv() helper to encourage better
    testing practices. Not a breaking change as nobody is using this func
    themselves according to our code search tool.
  • Log traceID and spanID in hex format to match Jaeger UI. Upgrade Jaeger to
    min version 2.1.0
    and use jaeger's adapters for jaeger and tally initialization.
  • Tally now supports reporting histogram samples for a bucket. Upgrade Tally to 2.1.0
  • [Breaking] Rename modules/rpc to modules/yarpc
  • [Breaking] Make new module naming consistent yarpc.ThriftModule to
    yarpc.New, task.NewModule
    to task.New
  • [Breaking] Rename yarpc.CreateThriftServiceFunc to yarpc.ServiceCreateFunc
    as it is not thrift-specific.
  • Report version metrics for company-wide version usage information.
  • DIG constructors now support returning a tuple with the second argument being
    an error.