Skip to content

v3.0.0a11

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 29 Aug 10:45
· 71 commits to master since this release

Bugfixes

    • Improved container hierarchical dependency resolution process.
    • Add significantly more DEBUG logging throughout the DI pipeline.
    • DependencyInjectionManager.enter_context now needs to be called for every context you wish to enter; it will no longer enter the default context automatically.
    • DependencyInjectionManager.enter_context now searches the existing container hierarchy to find an existing container for the passed context before trying to create a new one.
    • DependencyInjectionManager.enter_context now returns a no-op container implementation instead of None if DI is disabled globally.

    (#449)

  • Fix default injection container being closed when explicitly entering the DEFAULT DI context.

Features

  • Add has_roles check to the prefab subpackage. (#447)
  • Add set_timeout method to MenuContext. (#448)
  • Add client attribute to ModalContext and MenuContext.
  • Add enable_all_components and disable_all_components methods to Menu.
  • Add registered_commands and invokable_commands properties to Client.