Skip to content

parsley v0.6.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@matzefriedrich matzefriedrich released this 26 Jul 22:37
· 40 commits to main since this release
76ea475

Changes

  • Registration of named services is now supported; use the RegisterNamed[T] method to register a factory for services implementing the same interface and resolve them by name via a func(string) T factory method.
  • The registration and activation of pointer types is now possible (to not enforce interfaces as abstractions).
  • Parsley now has a service activation module that can create instances of unregistered types. Use the Activate[T] method to invoke a constructor function with resolved dependencies.

Fixes

  • This version fixes a bug in the detectCircularDependency helper function that could cause the resolver to get stuck in an infinite loop.