Kodein v5.0.0 Release Notes
Release Date: 2018-04-10 // about 6 years ago-
DOCUMENTATION
- Fragmented documentation: http://kodein.org/Kodein-DI/
- Getting started: http://kodein.org/Kodein-DI/?5.0/getting-started
- Migration from version 4 to 5: http://kodein.org/Kodein-DI/?5.0/migration-4to5
CORE
- Package change:
org.kodein.di
,org.kodein.di.generic
,org.kodein.di.erased
. - Everything is lazy by default.
- Distribution via Bintray's JCenter.
- Compatible with Kotlin/Native (Huge thanks to Nikolay Igotti and his amazing Kotlin/Native team!).
- Support for subtype bindings: see documentation.
- Ability to retrieve
allInstances
,allProviders
orallFactories
that match subtypes of a given type. - Support for multi-argument factories & multiton.
- Changed the
extend
semantic to manage copy of state-holding bindings. see documentation. - Complete rewrite of custom scopes.
- Better recursion error messages.
- Better currying syntax:
kodein.instance(arg = whatever)
. - Injector has been replaced with
KodeinTrigger
andLateInitKodein
, each taking a part of the responsibility. - Introducing
LateInitKodein
. scopeSingleton
andrefSingleton
are now options ofsingleton
. Same goes formultiton
.- Support for non state-holding bindings to access the
receiver
. - Support for an external source that will be queried when Kodein has no answer.
- Package change:
ANDROID
- Full rewrite of the android components, effectively removing them, replacing them with a much lighter system. See documentation
INTERNALS
- Full rewrite of the retrieval engine, introducing
KodeinTree
to select the matching binding according to a query.
- Full rewrite of the retrieval engine, introducing