Repository navigation
Releases
Releases · dogmatiq/imbue
Version 0.7.1
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/exppackage. This package is not versioned and as such breaking changes can cause conflicts with other dependencies
Version 0.7.0
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
Catalogwhich is a collection of dependency declarations that can be reused by multiple container instances - Added
ContainerAwareinterface, which is implemented byContainerandCatalog
Changed
- [BC]
WithX(),WithXNamed(),WithXGrouped()andDecorateX()now acceptContainerAwareinstead of*Container
Version 0.6.2
Version 0.6.1
Version 0.6.0
Version 0.5.1
Version 0.5.0
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.Valuefrom a field to a method -
[BC] Changed
FromGroup.Valuefrom 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.3.1
Version 0.3.0
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()andInvokeX()