Skip to content

parsley v0.3.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@matzefriedrich matzefriedrich released this 12 Jul 00:17
· 50 commits to main since this release
037cf96

Changes

  • Service registrations can be bundled in a ModuleFunc to register related types as a unit.
  • The ServiceRegistry now accepts object instances as singleton service registrations.
  • The ResolveRequiredService[T] convenience function can resolve and safe-cast objects.
  • The resolver instance registers with the registry to inject the Resolver object into the factory and constructor methods.
  • The resolver can now accept instances of non-registered types via the ResolveWithOptions[T] method.
  • The ServiceRegistry has new methods for creating linked and scoped registry objects (which share the same ServiceIdSequence). Scoped registries inherit all parent service registrations, while linked registries are empty.