Skip to content

Releases: norbajunior/machinist

2.1.2

12 Apr 18:37
ac34a74
Compare
Choose a tag to compare

Fixed an issue with typespec #23 by @namjae

v2.1.1

11 Feb 15:22
Compare
Choose a tag to compare

Allow guard functions to return a custom error tuple

v2.1.0

11 Feb 14:32
Compare
Choose a tag to compare

Reverts previous version

v2.0.0

10 Feb 18:45
Compare
Choose a tag to compare

A 'guard' word refers to the elixir guard check, which returns a boolean. In the case of 'machinist', the behaviour is to return the next state so that a cond should be a better word for this purpose

v1.0.0

10 Feb 18:35
0967e21
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.1...v1.0.0

v0.5.2

29 Jun 15:55
Compare
Choose a tag to compare

Revert previous release

V0.5.1

29 Jun 03:45
e42b89e
Compare
Choose a tag to compare

Add introspection functions to states, events and transitions #8

v0.4.1

11 Apr 12:37
0fc457f
Compare
Choose a tag to compare

What's Changed

  • Fix dialyzer warning of set_new_state private function by @norbajunior in #7

Full Changelog: v0.4.0...v0.4.1

v0.4.0

12 Apr 18:03
6a3bd73
Compare
Choose a tag to compare

Add a new way to set from transitions. With this new feature we can group many from definitions with a same state.

 # ...
 transitions do
   from :locked, to: :unlocked, event: "unlock"
   from :unlocked do
     to :locked, event: "lock"
     to :opened, event: "open"
   end
   from :opened, to: :closed,   event: "close"
   from :closed, to: :opened,   event: "open"
   from :closed, to: :locked,   event: "lock"
 end
 # ...
  • implemented macro Machinist.from/2 that expects a state and a block of to statements

v0.2.0

31 Mar 03:37
dc862ff
Compare
Choose a tag to compare
Merge pull request #3 from norbajunior/change_field_to_attr

Change field key to attr