Releases: Ivy-Apps/di
Releases · Ivy-Apps/di
0.0.7
What's Changed
- Bump the ivy-di group across 1 directory with 4 updates by @dependabot in #10
- Cleanup by @ILIYANGERMANOV in #12
- Benchmarks by @ILIYANGERMANOV in #13
- Improve benchmarks by @ILIYANGERMANOV in #14
Full Changelog: v0.0.6...v0.0.7
0.0.6 - Scope affinity & API improvements
🚀 Introducing Scope affinities
Now you can define multiple dependencies of the same type and Ivy DI will pick the appropriate one based on your DI scope using the newly added Di.get(affinity = YourPreferredScope)
. This also slightly optimizes the factory finding when there are many scopes defined. Auto-wiring will use the current scope as affinity and pick dependencies from it with precedence.
Simplified Di.init() (breaking)
Simplified the Di.init(ModuleA, ModuleB)
API by making it vararg.
Migration: Di.init(modules = setOf(A, B, C)
-> Di.init(A, B, C)