Skip to content

Releases: blakewatters/TransitionKit

Add Current State Setter Enforcement

24 Jun 22:45
Compare
Choose a tag to compare

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

24 Jun 22:44
Compare
Choose a tag to compare
  • Fixed bug with out of order posting of notifications (@0xced)
  • Introduced new TKStateMachineDidChangeStateTransitionUserInfoKey containing all transition info in a single NSNotification object (@0xced)
  • Deprecated TKStateMachineDidChangeStateOldStateUserInfoKey, TKStateMachineDidChangeStateNewStateUserInfoKey, and TKStateMachineDidChangeStateEventUserInfoKey (@0xced)

2.1.1

01 Oct 21:50
Compare
Choose a tag to compare

This release updates underlying project dependencies and adds the Foundation import to the TKTransition header

v2.1.0

14 Mar 15:33
Compare
Choose a tag to compare

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

15 Oct 13:40
Compare
Choose a tag to compare

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 include userInfo parameter for including metadata with the event