koin v2.1.0 Release Notes
Release Date: 2020-02-24 // about 4 years ago-
Core
- ⚡️
[UPDATED]
- introduce theKoinContextHandler
component that is responsible to manageGlobalContext
from startKoin. This will allow us to unlock new kind of context for Koin MP & better isolation (not directly a object that we pass around). To get your Koin instance, now useKoinContextHandler.get()
, once you have started it.koinApplication { }
users have to register manually toKoinContextHandler
if needed
beta-3
- ⚡️ doc updates
✅ Test
[ADDED]
- CheckModule category
Gradle_PLugin
- 🔌
[ADDED]
- CheckModule Gradle Plugin
beta-1
Core
[ADDED]
- Enum class can be used as Qualifier:named(MyEnum.MyValue)
alpha-11
Core
- 🛠
[FIXED]
- stopKoin closes scopes #702
AndroidX-ViewModel
- 🛠
[FIXED]
- added/fixed for better State ViewModelgetStateViewModel
andby stateViewModel()
API
Android
[ADDED]
-KoinAndroidApplication
to let you create aKoinApplication
instance with Android context, and let you use KoinApplication DSL
alpha-10
Core
- ⚡️
[UPDATED]
- updated+
oprator for modules [ADDED]
- Scope Links, to link scope to another and help resolve shared instances
alpha-8
📄 Docs
- ⚡️
[UPDATED]
- updatedkoin-core
Scope
section [ADDED]
- inject on a setter property withinject()
Android-Scope
- ⚡️
[UPDATED]
- updatedcurrentScope
to uselifecycleScope
instead - 🛠
[FIXED]
-ScopeCompat
for Java compat function
AndroidX-Scope
- ⚡️
[UPDATED]
- updatedcurrentScope
to uselifecycleScope
instead - 🛠
[FIXED]
-ScopeCompat
for Java compat function
AndroidX-Factory
- 🛠
[FIXED]
-Fragment
declaration in a scope
Core
[ADDED]
- DSL declare a scope with type directly withscope<MyType> { ... }
- 👍
[ADDED]
- smarter better API to use scope from an object instance (getOrCreateScope
...) [ADDED]
-scope
property to any instance, to get tied declared scope[ADDED]
- inject on a setter property withinject()
Core-Ext
[ADDED]
- inject all setter property withinject()
on an instance
alpha-7
Android-ViewModel
- ⚡️
[UPDATED]
- updatedViewModelParameter
API around to help integrate it more easily with 3rd party access
AndroidX-ViewModel
- ⚡️
[UPDATED]
- updatedViewModelParameter
API around to help integrate it more easily with 3rd party access
AndroidX-Factory
[ADDED]
-KoinFragmentFactory
API to setupFragment
injection
Core
- ⚡️
[UPDATED]
- Reworked all resolution engine to use immutable BeanDefinition & base the resolution onScope
&ScopeDefinition
- ⚡️
[UPDATED]
- Locking Strategy to avoid usage of ConcurrentHashMap - ⚡️
[UPDATED]
- Replace BeanRegistry with InstanceRegistry & ScopeRegistry - ⚡️
[UPDATED]
- addedclosed
status to Scope - 🛠
[FIXED]
- Fixed bugs related to closed scopes - 🛠
[FIXED]
- Can now allow to resolve different types with same Qualifer [ADDED]
- Moduleloaded
property in order to allow later "reloading"[ADDED]
- Java helpers are now part of thekoin-core
project[ADDED]
- bind() oeprator on a definition, that use reified Type[ADDED]
- q() operator to declare a String or a Type
Java
- 🚚
[REMOVED]
- project is now part ofkoin-core
✅ Test
- ⚡️
[UPDATED]
- Check modules withcheckModules { }
that open an KoinApplication declaration - 🤡
[ADDED]
-MockProviderRule
&MockProvider
to manually provide mocking capacity, absed of the desired mocing framework - 🚚
[REMOVED]
- Link toMockito
library
📚 Documentation
- 📚
[UPDATED]
- New documentation system based on docisfy, to help deploy easily markdown doc. Documentation is now in/docs
folder
- ⚡️