Releases: blakewatters/TransitionKit
Releases · blakewatters/TransitionKit
Add Current State Setter Enforcement
We’ve seen reports from the field where currentState
is somehow becoming nil
. To help debug this, we’ve introduced an override on the setter that will raise if a transition to nil
is attempted.
Improving Notifications
- Fixed bug with out of order posting of notifications (@0xced)
- Introduced new
TKStateMachineDidChangeStateTransitionUserInfoKey
containing all transition info in a singleNSNotification
object (@0xced) - Deprecated
TKStateMachineDidChangeStateOldStateUserInfoKey
,TKStateMachineDidChangeStateNewStateUserInfoKey
, andTKStateMachineDidChangeStateEventUserInfoKey
(@0xced)
2.1.1
This release updates underlying project dependencies and adds the Foundation import to the TKTransition header
v2.1.0
This minor update polishes some rough edges in v2.0.0 and introduces a minor feature:
- State Transitions are now protected by an
NSRecursiveLock
to guard against concurrent transitions from competing threads. - Several typos and inconsistencies in the README.md documentation has been updated
- The test suite was upgraded to XCTest
- The CLI test execution was switched from xctool to xcpretty
The release has been published to CocoaPods and is immediately available. No breaking API changes were introduced.
2.0.0
This release integrates support for including metadata in the form of an NSDictionary
of userInfo
when an event is fired to trigger a state transition within the machine.
- Introduces the
TKTransition
model encapsulating details about a state transition occurring in response to an event - Update block signatures across the library to include
TKTransition
objects - Update
fireEvent:error:
method signature to includeuserInfo
parameter for including metadata with the event