Releases: box-id/ecto_predicates
Releases · box-id/ecto_predicates
Allow hooking into build_assoc function
What's Changed
- Add a JSON schema for predicates by @bdebinska in #12
- PD-3667: enable hooking into build_assoc functions by @bdebinska in #16
Full Changelog: 0.5.1...0.6.0
return a proper error when using wrong args in string comparators
What's Changed
- PD-3669 Add non-string handling for 'like', 'ilike', 'starts_with', 'ends_with' by @nemanjabogdanovic in #15
Full Changelog: 0.5.0...0.5.1
not_in, nil handling, improved README
Breaking Changes
- Handle null values for
inandnot_inoperators to be aligned witheq. like,ilike,starts_withoperators now escape arg s.t.%and_characters are not interpreted as placeholders anymore.- Field names are now converted to atoms using String.to_existing_atom/1, failing for unknown field names.
Added
not_eqoperatorends_withoperator
Deprecated
containsoperator for string values: Uselikeinstead, ascontainswill only be applicable to collections in the future.
Changed
- PredicateError's message now uses inspect on the offending predicate instead of JSON serialization to reduce library dependencies
Rename `Utils` to `Predicates.Utils`
Renamed internal Utils module to Predicates.Utils to avoid collisions with Utils modules from other sources.
Add contains Contains Comparator
What's Changed
🎉 Improvements
- Add Contains Comparator Predicates by @mpneuried in #6
Compare operation to check if a stored value or a list of values contains a single or a list of values.
Full Changelog: 0.2.0...0.3.0
0.2.0
Rename project to ecto_predicates
Merge pull request #4 from box-id/rename-project-to-ecto-predicates rename project to ecto_predicates
First release
Merge pull request #2 from box-id/chore/move-repo-to-tests Move repo to tests