diff --git a/CHANGELOG.md b/CHANGELOG.md index 025d17c..a0b8f3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ This list is not intended to be all-encompassing - it will document major and br when appropriate: ### v2.13.1.0 +- **all** : Upgrade of dependencies - **state4k** : [New module] Simple state machine modelling ### v2.13.0.0 diff --git a/state4k/src/test/kotlin/dev/forkhandles/state4k/example.kt b/state4k/src/test/kotlin/dev/forkhandles/state4k/example.kt index 9c5d20a..64ed5c1 100644 --- a/state4k/src/test/kotlin/dev/forkhandles/state4k/example.kt +++ b/state4k/src/test/kotlin/dev/forkhandles/state4k/example.kt @@ -24,23 +24,23 @@ val exampleStateMachine = StateMachine Success(Unit) }, EntityStateLens(MyEntity::state) { entity, state -> entity.copy(state = state) }, buildState(one) - .transition(two, { e, o -> o.copy(data = OneToTwoEvent.data) }, firedOnTwo) - .transition(four, { e, o -> o.copy(data = OneToFourEvent.data) }) - .transition(six, { e, o -> o.copy(data = OneToSixEvent.data) }, eject), + .transition(two, { _, o -> o.copy(data = OneToTwoEvent.data) }, firedOnTwo) + .transition(four, { _, o -> o.copy(data = OneToFourEvent.data) }) + .transition(six, { _, o -> o.copy(data = OneToSixEvent.data) }, eject), buildState(two) .transition( three, - { e, o -> o.copy(data = TwoToThreeEvent.data) }, + { _, o -> o.copy(data = TwoToThreeEvent.data) }, firedOnThree ), buildState(three) .transition( four, - { e, o -> o.copy(data = ThreeToFourEvent.data) }, + { _, o -> o.copy(data = ThreeToFourEvent.data) }, eject ), buildState(four) - .transition(five, { e, o -> o.copy(data = ThreeToFourEvent.data) }) + .transition(five, { _, o -> o.copy(data = ThreeToFourEvent.data) }) ) fun buildState(start: MyState) = StateBuilder(start) diff --git a/versions.properties b/versions.properties index b9f4d26..971d722 100644 --- a/versions.properties +++ b/versions.properties @@ -17,15 +17,19 @@ version.com.fasterxml.jackson.core..jackson-databind=2.16.1 version.com.natpryce..hamkrest=1.8.0.1 -version.junit.jupiter=5.10.1 +version.junit.jupiter=5.10.2 version.kotest=5.6.2 +## # available=5.7.0 +## # available=5.7.1 +## # available=5.7.2 +## # available=5.8.0 version.kotlin=1.9.22 -version.kotlinx.coroutines=1.7.3 +version.kotlinx.coroutines=1.8.0 -version.kotlinx.serialization=1.6.2 +version.kotlinx.serialization=1.6.3 version.strikt=0.34.1