All Versions
31
Latest Version
Avg Release Cycle
-
Latest Release
-
Changelog History
Page 1
Changelog History
Page 1
-
v1.4.2 Changes
- ๐ a bug in
coerce_with/2
was fixed: a parameter got coerced (asnil
) even if it is not required run!
raises anExop.Operation.ErrorResult
error when an operation returns an error tuple
- ๐ a bug in
-
v1.4.1 Changes
- ๐
Code.ensure_compiled/1
instead of deprecatedCode.ensure_compiled?/1
- ๐
:struct
check's bug fixed (when a value to be checked is not a struct itself)
- ๐
-
v1.4.0 Changes
๐ฅ breaking changes in this version!
- ๐ a validation
type: :struct
that had been deprecated since ver. 1.2.2 was finally removed - โก๏ธ the
func
check's callback arguments now aligned withcoerce_with
callback, they are: a parameter's name/value tuple (the first), all parameters map given to an operation (the second), the output of the validation callback fuction has been updated as well (check README for details) Exop.Chain
'soperation
(step
) now can be conditional withif: _your_condition_func/1
option provided (see README for the details)Exop.Chain
'soperation
now can coerce incoming parameters withcoerce_with: your_coerce_func/1
option before any further checks/invocations
- ๐ a validation
-
v1.3.5 Changes
- basic validation message extension with "got:" (credits to https://github.com/sgilson) ๐ makes error-tuple messages more descriptive
- ๐ new
:subset_of
check allows you to check whether a given list is a subset of defined check-list
-
v1.3.4 Changes
- ๐จ a bug in
coerce_with/2
refactored behavior was fixed
- ๐จ a bug in
-
v1.3.3 Changes
- ๐ the issue with
coerce_with/2
within aninner
check has been fixed (coercion simply didn't work in inner) - ๐ parameters
:default
option now accepts 1-arity function as well as a certain value (see README)
- ๐ the issue with
-
v1.3.2 Changes
- โ got rid some dialyzer warnings
- specs for macros were added
- ๐ Exop.Policy module has been removed because simplified policy check is here since v1.1.1
- if Exop.Policy action returns something different from either
true
orfalse
, this output is treated as authorization error message (reason) - ๐ป behaviour of unknown struct checks has been changed. Now it generates ArgumentError exception on compile time if struct parameter is not existing struct.
-
v1.3.1 Changes
- 0๏ธโฃ
allow_nil
check behavior bug has been fixed (default value and validations skipping)
- 0๏ธโฃ
-
v1.3.0 Changes
๐ฅ 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
-
v1.2.5 Changes
๐ Changes
- ๐ allow to pass function of arity one to
func
validation
- ๐ allow to pass function of arity one to