Skip to content

Releases

Version 0.7.1

Version 0.7.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 13 Aug 23:41
v0.7.1
b31fc99

Changed

  • Dropped support for Go v1.19, which reached end-of-life on 2023-08-08

Fixed

  • Fixed rendering of code locations in error messages under Go v1.21
  • Removed use of golang.org/x/exp package. This package is not versioned and as such breaking changes can cause conflicts with other dependencies

Version 0.7.0

Version 0.7.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 04 Apr 21:00
v0.7.0
dfa5983

Despite the presence of breaking changes due to modified function signatures, this release does not alter the usage of the API under normal circumstances.

Added

  • Added Catalog which is a collection of dependency declarations that can be reused by multiple container instances
  • Added ContainerAware interface, which is implemented by Container and Catalog

Changed

  • [BC] WithX(), WithXNamed(), WithXGrouped() and DecorateX() now accept ContainerAware instead of *Container

Version 0.6.2

Version 0.6.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Aug 23:11
v0.6.2
b8db406

Added

  • Add Container.WaitGroup() and the GoX() functions

Fixed

  • Fix data race in Context.Defer()

Version 0.6.1

Version 0.6.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Aug 05:04
v0.6.1
e1b38c4

Added

  • Add Invoke0 to help while refactoring dependencies

Version 0.6.0

Version 0.6.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Aug 09:13
v0.6.0
2d3ab53

Changed

  • [BC] Context is now an interface instead of a struct

Removed

  • [BC] Remove all environment variable related features

Version 0.5.1

Version 0.5.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Jul 23:45
v0.5.1
9c6b0fc

Fixed

  • DecorateX() now panics when called for a type that has already been constructed
  • Container.Close() now gives file/line information about deferred functions that return an error
  • Functions deferred by Context.Defer() are now called immediately if the constructor (or a decorator) fails

Version 0.5.0

Version 0.5.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 29 Jun 08:11
v0.5.0
39eb337

Added

  • Add ByName.Name() method, which returns the dependency name as a string
  • Add FromGroup.Group() method, which returns the group name as a string
  • Add support for depending on environment variables
  • Add Optional[T] for representing optional dependencies

Changed

  • [BC] Changed ByName.Value from a field to a method
  • [BC] Changed FromGroup.Value from a field to a method

Fixed

  • WithX() now panics when declaring a constructor for a type that has already been declared

Version 0.4.0

Version 0.4.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Jun 02:16
v0.4.0
2187d31

Added

  • Add Decorate0()

Changed

  • [BC] Rename InjectX() to DecorateX() and add return value

Version 0.3.1

Version 0.3.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Jun 06:35
v0.3.1
1669a5a

Changed

  • Improved panic messages produced by InjectX() functions.

Version 0.3.0

Version 0.3.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Jun 04:50
v0.3.0
22aa53e

Added

  • Add Container.String(), which returns a string representation of the dependency tree.
  • Add InjectX() functions for injecting dependencies into values after they are constructed.

Changed

  • [BC] Reduce number of supported dependencies to 8
  • Add option parameters to WithX(), WithXNamed() and InvokeX()
⌂ 换网址