exop v1.3.0 Release Notes
-
๐ฅ breaking changes in this version!
- ๐ Exop supports elixir >= 1.6.0
- ๐ป behaviour of unknown type checks has been changed. Now it generates ArgumentError exception on compile time if type check is not supported.
YourOperation.run/1
now accepts structs as well as keywords and maps- implicit inner: now you can omit
type
andinner
checks keywords in order to check inner of your parameter - ๐ ex_doc 0.20 (better docs)
:from
parameter option to be able pass one name of a parameter and work with it within an operation under another name- ๐ new checks for
:length
:gte
,gt
,lte
,lt
:length
doesnt work with numbers anymore- ๐
:length
and:numericality
checks return an error for unsupported types (previously unsupported type passed the check) - ๐
:coerce_with
now accepts only a 2-arity function with a coerced param tuple and a map of all received params (see README for more info) - ๐
defined_params/1
function has been removed, nowprocess/1
function takes only parameters defined in a operation's contract. You still can pass any parameters inrun/1
orrun!/1
but Exop will proceed only with parameters declared in the contract