nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: arkivanov/Decompose
Pull request #219 (2022-10-02 18:12:23)

Updated Essenty to 0.6.0


Patch:
diff --git a/deps.versions.toml b/deps.versions.toml
index 088cf764..a59e9aa7 100644
--- a/deps.versions.toml
+++ b/deps.versions.toml
@@ -2,7 +2,7 @@
 
 decompose = "1.0.0-alpha-05"
 kotlin = "1.7.10"
-essenty = "0.5.2"
+essenty = "0.6.0"
 reaktive = "1.2.1"
 junit = "4.13.2"
 jetbrainsCompose = "1.2.0-beta01"


Test patch:
diff --git a/decompose/src/commonTest/kotlin/com/arkivanov/decompose/statekeeper/TestStateKeeperDispatcher.kt b/decompose/src/commonTest/kotlin/com/arkivanov/decompose/statekeeper/TestStateKeeperDispatcher.kt
index bce27150..b0402a42 100644
--- a/decompose/src/commonTest/kotlin/com/arkivanov/decompose/statekeeper/TestStateKeeperDispatcher.kt
+++ b/decompose/src/commonTest/kotlin/com/arkivanov/decompose/statekeeper/TestStateKeeperDispatcher.kt
@@ -13,7 +13,7 @@ class TestStateKeeperDispatcher(
 ) : StateKeeperDispatcher {
 
     private val savedState: MutableMap<String, ParcelableContainer>? = initialSavedState?.consume<SavedState>()?.map
-    private val suppliers = HashMap<String, () -> Parcelable>()
+    private val suppliers = HashMap<String, () -> Parcelable?>()
 
     var lastSavedState: ParcelableContainer? = null
 
@@ -29,7 +29,7 @@ class TestStateKeeperDispatcher(
             ?.remove(key)
             ?.consume(clazz)
 
-    override fun <T : Parcelable> register(key: String, supplier: () -> T) {
+    override fun <T : Parcelable> register(key: String, supplier: () -> T?) {
         check(key !in suppliers)
         suppliers[key] = supplier
     }