v1.0.0
Backwards incompatible changes
-
code_change/4default 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/1allowed callback modes as the first element of the return tuple. This is no longer allowed, and users of this library should return:okinstead.
Enhancements
- Added OTP error translator.
Bug fixes
init/1andcode_change/4did not actually allow you to throw a result previously. They now permit throwing results.