Skip to content

Releases: Ivy-Apps/di

0.0.7

15 Dec 14:01
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.6...v0.0.7

0.0.6 - Scope affinity & API improvements

14 Dec 00:20
341b812
Compare
Choose a tag to compare

🚀 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)