From 0f537085e977b30d5d327ea2971aa76f74398f2b Mon Sep 17 00:00:00 2001 From: Gabriel Ittner Date: Fri, 21 Jun 2024 10:23:09 +0200 Subject: [PATCH] Changelog for 1.2.2 --- CHANGELOG.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d04b62bc..9f212672 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ Change Log ========== -## 1.2.2 **UNRELEASED** +## 1.2.2 *(2024-06-21)* - Added `wasmJs` target. +- Potentially fix a crash for `onEnterStateMachine` where an action could be dispatched + to the sub state machine during cancellation. +- Updated to Kotlin 2.0.0. +- Updated to Coroutines 1.8.1. ## 1.2.1 *(2024-01-07)* @@ -23,7 +27,7 @@ Change Log inState { // general onEnter/onAction/... methods - condition({ state -> state.value == "condition" }) { + condition({ state -> state.value == "condition" }) { // onEnter/onAction/... methods that will only be triggered when the condition is true } } @@ -36,12 +40,12 @@ Change Log inState { // general onEnter/onAction/... methods - untilIdentityChanges({ state -> state.searchQuery }) { + untilIdentityChanges({ state -> state.searchQuery }) { // triggered whenever `searchQuery` changes onEnterEffect { state -> sendAnalyticsEvent(state.searchQuery) } - + // whenever `searchQuery` changes the collection is stopped and a new flow is built and collected collectWhileInState({ state -> loadSearchResults(state.searchQuery )}) { result, state -> // update state based on result @@ -81,7 +85,7 @@ Change Log a state machine to FlowRedux. - A few methods which already had reified overloads are now hidden from auto complete (this change is binary compatible). -- Fixed race condition when using sub state machines that could cause a crash when an action is dispatched +- Fixed race condition when using sub state machines that could cause a crash when an action is dispatched shortly after the sub state machine starts.