Releases: kosi-libs/Kodein
Releases · kosi-libs/Kodein
7.5.0
- CORE
- Direct binding by adding
bind(tag: Any?, overrides: Boolean?, createBinding: () -> DIBinding)
bind { singleton { Person("Romain") } }
is equivalent tobind() from singleton { Person("Romain") }
bind<IPerson> { singleton { Person("Romain") } }
is equivalent tobind<IPerson>() with singleton { Person("Romain") }
bind { scoped(SessionScope).singleton { Person("Romain") } }
is equivalent tobind() with scoped(SessionScope).singleton { Person("Romain") }
- etc.
- Simplified binding APIs
bindFactory
/bindProvider
/bindSingleton
/bindMultiton
/bindInstance
/bindConstant
bindSingleton { Person("Romain") }
is equivalent tobind() from singleton { Person("Romain") }
bindSingleton<IPerson> { Person("Romain") }
is equivalent tobind<IPerson>() with singleton { Person("Romain") }
- etc.
- Documentation
- Direct binding by adding
- FRAMEWORK
- Adding Compose support for both Android (Jetpack) and Desktop (JetBrains).
- Android
- Deprecate functions
di()
in favor ofclosestDI()
to avoid import conflicts
- Deprecate functions
- Ktor
- Deprecate functions
di()
in favor ofclosestDI()
to avoid import conflicts
- Deprecate functions
7.4.0
7.3.1
7.3.0
7.2.0
- CORE
- Kotlin 1.4.20
- Fix memory leak with DI context
- Context finder and translator can now access DI container's bindings
- Kodein-Type 1.4 + other dependencies
7.1.0
-
DOCUMENTATION
- New documentation format https://docs.kodein.org/kodein-di/7.1/
- Split full documentation into chapters
- New documentation format https://docs.kodein.org/kodein-di/7.1/
-
CORE
- Kotlin 1.4.0
- Explicit public API mode
- Fixed possible memory leak with DI context
- Deprecation cycle
-
BUILD
- Gradle 6.5.1
- New Internal Gradle Plugin
- New snapshot workflow
7.0.0
-
DOCUMENTATION
- Updated http://kodein.org/Kodein-DI/
- New type system
- Module refactoring
- Code refactoring
- Migration from version 6 to 7: http://kodein.org/Kodein-DI/?7.0/migration-6to7
- Updated http://kodein.org/Kodein-DI/
-
CORE
- Modules refactoring:
org.kodein.di.generic-jvm
/org.kodein.di.erased
combined intoorg.kodein.di
- New type system with
typeOf
to handle generics, for non JVM targets only. - Package deprecation:
org.kodein.di.generic
,org.kodein.di.erased
. - Internals: non nullable context types / test re-organization
- Deprecation cycle
- Modules refactoring:
-
FRAMEWORKS
- Android / Ktor / TornadoFX : Migration from 6 to 7
-
DEMOS
- Migrating the Kodein-DI samples projects from 6 to 7
-
BUILD
- Gradle 6.3
- New Internal Gradle Plugin
- Github Actions