gen_state_machine v1.0.0 Release Notes
Release Date: 2016-06-23 // almost 8 years ago-
Backwards incompatible changes
code_change/4
default implementation will now result in an error if it is invoked. This is because this callback is only related to hot code updates, and thus actually calling the default implementation of this callback is dangerous.
Users of this library can implement a callback like:
def code_change(_old_vsn, state, data, _extra) do {:ok, state, data} end
if they wish to keep the old behaviour.
init/1
allowed callback modes as the first element of the return tuple. This is no longer allowed, and users of this library should return:ok
instead.
✨ Enhancements
- Added OTP error translator.
🐛 Bug fixes
init/1
andcode_change/4
did not actually allow you to throw a result previously. They now permit throwing results.