Skip to content

Releases: NVIDIA/gontainer

v1.12.2

11 Oct 22:18
3f4b580
Compare
Choose a tag to compare

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

15 Aug 12:02
1d483ab
Compare
Choose a tag to compare

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

09 Aug 21:25
0105b0f
Compare
Choose a tag to compare

What's Changed

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

06 Aug 10:32
255b130
Compare
Choose a tag to compare

What's Changed

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

17 Jun 19:28
4b045bc
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.8.0...v1.9.0

v1.8.0

11 Jun 12:31
9a149c1
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.7.1...v1.8.0

v1.7.0

07 Jun 14:19
44aa79a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.6.0...v1.7.0

Allow to close services with simplified close interface

23 May 20:11
5561e0d
Compare
Choose a tag to compare

Sometimes it is useful to close also a services which are implementing not the Close() error interface but just Close() one.

What's Changed

Full Changelog: v1.5.0...v1.6.0

Close service container immediately on startup errors

13 May 00:13
d13b8ba
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.4.0...v1.5.0

Dependency resolver service

17 Apr 16:56
b1bbf95
Compare
Choose a tag to compare

What's Changed

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