Skip to content

Commit 1129db3

Browse files
release doc updated
1 parent 837432f commit 1129db3

File tree

1 file changed

+32
-20
lines changed

1 file changed

+32
-20
lines changed

docs/support/releases.md

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,34 @@ This structured approach not only clarifies the incremental changes in each rele
1919

2020
See [Api Stability Contract](api-stability.md) for more details.
2121

22+
## 4.1.1
23+
24+
### New 🎉
25+
26+
`koin-ktor`
27+
- Integration - provides `KtorDIExtension` to integrate Ktor 3.2 Default DI engine
28+
```kotlin
29+
fun Application.setupDatabase(config: DbConfig) {
30+
// ...
31+
dependencies {
32+
provide<Database> { database }
33+
}
34+
}
35+
36+
class CustomerRepositoryImpl(private val database: Database) : CustomerRepository
37+
fun Application.customerDataModule() {
38+
koinModule {
39+
singleOf(::CustomerRepositoryImpl) bind CustomerRepository::class
40+
}
41+
}
42+
```
43+
2244
## 4.1.0
2345

46+
:::note
47+
Uses Kotlin `2.1.20`
48+
:::
49+
2450
### New 🎉
2551

2652
`koin-core`
@@ -39,6 +65,8 @@ startKoin {
3965

4066
`koin-android`
4167
- Upgraded libraries (`androidx.appcompat:appcompat:1.7.0`, `androidx.activity:activity-ktx:1.10.1`) require raising Min SDK level from 14 to 21
68+
- DSL - Added new Koin Module DSL extensions `activityScope`, `activityRetainedScope`, and `fragmentScope` to declare scope within Activity/Fragment
69+
- Scope Functions - Also `activityScope()`, `activityRetainedScope()` and `fragmentScope()` API functions are now triggering Scope Archetypes
4270

4371
`koin-androidx-compose`
4472
- Aligned with Koin Compose Multiplatform and all Compose 1.8 & Lifecycle 2.9
@@ -47,24 +75,11 @@ startKoin {
4775
- Aligned with Compose 1.8 & Lifecycle 2.9
4876
- New Function - `KoinApplicationPreview` to help render parallel preview in Android Studio & IntelliJ
4977

78+
`koin-compose-viewmodel`
79+
- added `koinActivityViewModel` to allow set parent Activity as Host
80+
5081
`koin-ktor`
5182
- Multiplatform - The module is now compiled in Kotlin KMP format. You can target `koin-ktor` from a multiplatform project.
52-
- Integration - provides `KtorDIExtension` to integrate Ktor 3.2 Default DI engine
53-
```kotlin
54-
fun Application.setupDatabase(config: DbConfig) {
55-
// ...
56-
dependencies {
57-
provide<Database> { database }
58-
}
59-
}
60-
61-
class CustomerRepositoryImpl(private val database: Database) : CustomerRepository
62-
fun Application.customerDataModule() {
63-
koinModule {
64-
singleOf(::CustomerRepositoryImpl) bind CustomerRepository::class
65-
}
66-
}
67-
```
6883
- Merge - The Previous koin-ktor3 module has been merged into koin-ktor
6984
- Extension - Introduces `Application.koinModule { }` and `Application.koinModules()` to let you declare Koin modules directly joined to a Ktor a module
7085
```kotlin
@@ -75,6 +90,7 @@ fun Application.customerDataModule() {
7590
}
7691
```
7792
- Scope - `Module.requestScope` - allows declaring definitions inside a Ktor request scope (avoid declaring `scope<RequestScope>` manually)
93+
The injected scope is also allows to inject `ApplicationCall` in constructor.
7894

7995

8096
`koin-core-coroutines`
@@ -134,10 +150,6 @@ conf.verify(extraTypes = androidTypes)
134150
`koin-core`
135151
- Wasm - Use of Kotlin 2.1.20 UUID generation
136152

137-
`koin-android`
138-
- DSL - Added new Koin Module DSL extensions `activityScope`, `activityRetainedScope`, and `fragmentScope` to declare scope within Activity/Fragment
139-
- Scope Functions - Also `activityScope()`, `activityRetainedScope()` and `fragmentScope()` API functions are now triggering Scope Archetypes
140-
141153
`koin-core-viewmodel`
142154
- DSL - Added Module DSL extension `viewModelScope`, to declare component scoped to ViewModel scope archetype
143155
- Scope Function - Added function `viewModelScope()`, to create a scope for ViewModel (tied to ViewModel class). This API now uses `ViewModelScopeAutoCloseable` to use the `AutoCloseable` API to help declare a scope and close it. no need anymore to close ViewModel scope by hand

0 commit comments

Comments
 (0)