Skip to content

Saneject 0.18.0 (beta)

Pre-release
Pre-release

Choose a tag to compare

@alexanderlarsen alexanderlarsen released this 30 Oct 14:41
· 523 commits to main since this release
97a6db4

Features

  • Added support for optional error suppression
    • You can now mark [Inject(suppressMissingErrors: true)] to silence expected missing bindings or dependencies.
    • Suppressed issues are still counted and clearly noted below the injection summary log for full transparency.
    • Mostly useful for advanced edge cases, e.g., shared components used in multiple contexts where some references are intentionally null.

Fixes

  • Fix incorrect memberName parameter for method injection
    • Updated MethodInjector to pass method.Name instead of parameter name (p.Name) as the memberName value during method injection.
    • Ensures .ToMember("...") correctly targets method names when using method injection.

Refactor

  • The large DependencyInjector class has been refactored into smaller, modular classes with clear, isolated responsibilities, reusable methods, which makes the system easier to maintain.