Releases: NVIDIA/gontainer
Releases · NVIDIA/gontainer
v1.12.2
What's Changed
- Fix of panic on invalid factory function signature reaction. by @pavelpatrin in #50
Full Changelog: v1.12.1...v1.12.2
v1.12.1
What's Changed
- Complete factories validation by @pavelpatrin in #45
- Proposal of Multiple[T] type to get multiple implementers by @pavelpatrin in #47
- Several new error types which could be used with
errors.Is()
.
Full Changelog: v1.11.2...v1.12.1
v1.11.2
What's Changed
- Refactoring of the registry and error variables by @pavelpatrin in #41
Defined errors
ErrFactoryReturnedError
when the factory function returns an error on invocation.ErrServiceNotResolved
when resolve of a service failed in case of not registered type.ErrHandlerArgTypeMismatch
when the event handler has inconsistent arguments with an event.ErrStackLimitReached
when the service container faces infinite recursion.
Full Changelog: v1.10.1...v1.11.2
v1.10.1
What's Changed
- Typed signatures for event handlers by @pavelpatrin in #37
- Update README.md by @pavelpatrin in #36
Full Changelog: v1.9.1...v1.10.1
Typed Event Handlers
Please check this docs: https://github.com/NVIDIA/gontainer?tab=readme-ov-file#events-broker.
Please check the tests: https://github.com/NVIDIA/gontainer/blob/main/events_test.go#L9.
v1.9.0
What's Changed
- Implement function invoker service by @pavelpatrin in #31
- Readme update by @pavelpatrin in #32
Full Changelog: v1.8.0...v1.9.0
v1.8.0
What's Changed
- Detailed start and close error messages by @pavelpatrin in #29
- Update README.md by @pavelpatrin in #28
Full Changelog: v1.7.1...v1.8.0
v1.7.0
What's Changed
- Public access to factories and services by @pavelpatrin in #23
- Factories metadata instead of events broker by @pavelpatrin in #24
- Invoke function using container API by @pavelpatrin in #26
- Update README.md by @pavelpatrin in #22
- Tests with race by @pavelpatrin in #25
Full Changelog: v1.6.0...v1.7.0
Allow to close services with simplified close interface
Sometimes it is useful to close also a services which are implementing not the Close() error interface but just Close() one.
What's Changed
- Additional service close method by @pavelpatrin in #21
Full Changelog: v1.5.0...v1.6.0
Close service container immediately on startup errors
What's Changed
- Readme update by @pavelpatrin in #19
- Close service container immediately on startup errors by @pavelpatrin in #20
Full Changelog: v1.4.0...v1.5.0
Dependency resolver service
What's Changed
- Cosmetics refactoring by @pavelpatrin in #17
- Dependency resolver service by @pavelpatrin in #18
Added new dependency resolver service
New service allows to dynamically resolve dependencies inside container.
gontainer.NewFactory(
func(resolver gontainer.Resolver) error {
var myService *MyService
if err := resolver.Resolve(&myService); err != nil {
return fmt.Errorf("failed to resolve MyService: %w", err)
}
myService.DoSomething()
},
)
Full Changelog: v1.3.1...v1.4.0