Skip to content

v0.3.0

Compare
Choose a tag to compare
@FasterSpeeding FasterSpeeding released this 09 May 22:27
· 49 commits to master since this release
6d85432

0.3.0 - 2024-05-09

Added

  • alluka.local is now directly exported on alluka.
  • alluka.Context implementation of alluka.abc.Context which is a basic DI context implementation with no callback dependency result caching.
  • alluka.CachingContext which extends alluka.Context to add callback dependency result caching.
  • alluka.OverridingContext shallow DI context implementation for adding context specific type dependencies to an existing context.
  • alluka.Client.set_make_context method for setting the callback used by the client to make DI contexts.

Changed

  • Callback dependency results are no-longer cached by default. To return this behaviour set alluka.CachingContext as the context maker.

Deprecated

  • alluka.BasicContext has been replaced by alluka.CachingContext.

Fixed

  • Injected callback results are now properly cached when alluka.CachingContext is set as the context.