Releases: making/yavi
Releases · making/yavi
0.11.1
What's Changed
- Bump kotlin.version from 1.6.10 to 1.6.20 by @dependabot in #228
- Bump kotlinx-coroutines-core from 1.6.0 to 1.6.1 by @dependabot in #230
- Bump jacoco-maven-plugin from 0.8.7 to 0.8.8 by @dependabot in #231
- Bump kotlin.version from 1.6.20 to 1.6.21 by @dependabot in #234
- Remove JUnit4 by @making in #235
- Validate null elements in a collection properly by @making in #236
- Add
Pattern
andSupplier<Pattern>
variants by @making in #237 - Update Maven Wrapper and use --no-transfer-progress by @making in #239
- Make memoization configurable in TemporalConstraintBase by @making in #238
Full Changelog: 0.11.0...0.11.1
0.11.0
What's Changed
- Added overloaded andThen method to chain ValueValidators by @duponter in #210
- Drop
Either
support by @making in #214 - Delete ValidatorBuilderExtensions.kt by @making in #215
- Introduce ConstraintContext and replace ConstraintGroup in validate method by @making in #216
- Temporal constraints for Year and YearMonth by @duponter in #220
- Value validator to validatable by @duponter in #219
- Fixed failing CI #597: Bump formatter-maven-plugin from 2.17.1 to 2.18.0 by @duponter in #224
- Bump maven-compiler-plugin from 3.10.0 to 3.10.1 by @dependabot in #223
Full Changelog: 0.10.1...0.11.0
0.10.1
✨ Enhancements
🐛 Bug Fixes
🗒 Miscs
- Bump assertj-core from 3.21.0 to 3.22.0 by @dependabot in #202
- Bump maven-jar-plugin from 3.2.0 to 3.2.1 by @dependabot in #203
- Bump maven-compiler-plugin from 3.8.1 to 3.9.0 by @dependabot in #205
- Bump maven-jar-plugin from 3.2.1 to 3.2.2 by @dependabot in #204
- Bump maven-compiler-plugin from 3.9.0 to 3.10.0 by @dependabot in #212
Full Changelog: 0.10.0...0.10.1
0.10.0
✨ Enhancements
- 🆕
positive()
,negative()
,positiveOrZero()
&negativeOrZero()
introduced toNumericConstraintBase
(#189) Thanks to @DiegoKrupitza - 🆕 Additional constraints (#179) Thanks to @duponter
am.ik.yavi.core.Constraint#equalTo
am.ik.yavi.core.Constraint#oneOf
am.ik.yavi.constraint.CharSequenceConstraint#uuid
- Deprecate
clone
in favor of copy constructor inValidatorBuilder
. (#187) Thanks to @DiegoKrupitza - 🆕 Introduce
lazy()
method to Arguments Validators and addthrowIfInvalid()
inValidation
- Fully migrated test from JUnit4 to JUnit5. (#194) Thanks to @DiegoKrupitza
- 🆕
startsWith(String)
&endsWith(String)
introduced toCharSequenceConstraint
(#193) Thanks to @DiegoKrupitza - 🆕 Added constraints for Temporal types (
LocalDate
,LocalTime
,LocalDateTime
,OffsetDateTime
,ZonedDateTime
andInstant
). (#195) Thanks to @DiegoKrupitzapast()
past(Clock)
pastOrPresent()
pastOrPresent(Clock)
future()
future(Clock)
futureOrPresent()
futureOrPresent(Clock)
after(Supplier<V>)
afterOrEqual(Supplier<V>)
before(Supplier<V>)
beforeOrEqual(Supplier<V>)
between(Supplier<V>, Supplier<V>)
fieldPredicate(TemporalField, LongPredicate)
💣 Breaking Changes
- Rename
ValidatorSubset
->Validatable
andNestedValidatorSubset
->NestedValidator
(#190) - Drop deprecated methods
am.ik.yavi.arguments.ArgumentNValidator#validateArgs
am.ik.yavi.arguments.ArgumentNValidator#validateAndThrowIfInvalid
am.ik.yavi.core.Validator#validateToEither
am.ik.yavi.fn.Either#doOnRight
am.ik.yavi.fn.Either#doOnLeft
am.ik.yavi.fn.Validation#mapErrorsF
0.9.1
0.9.0
✨ Enhancements
- 🆕 Add New Kotlin DSL (#152) Thanks to @hartmut-co-uk (Doc)
- 🆕 Add Automatic-Module-Name entry to the generated manifest file (#172) Thanks to @duponter
💣 Breaking Changes
ViolatedArguments::arguments
now passes the violated value (#178)
🐛 Bug Fixes
ViolatedArguments::arguments
is not respected inConstraint::predicate
(#165)ViolatedArguments::arguments
is not respected inConstraint::predicateNullable
(#174) Thanks to @duponter
🗒 Miscs
0.8.3
0.8.2
0.8.1
0.8.0
✨ Enhancements
- 🆕 Introduce
ValueValidator
as a super interface ofApplicativeValidator
andArguments1Validator
andArgumentsValidators
now supportsValueValidator
instead ofArguments1Validator
- 🆕 Add
Arguments1Validator.from(ValidatorSubset)
andArguments1Validator.from(ValueValidator)
- 🆕 Add
ObjectValidator
andObjectValidatorBuilder
- 🆕 Support the fail fast mode (#140)
- 🆕 Add lift methods for other collections/optional (#137, thanks to @gakuzzzz )
- 📕 The reference doc is available (https://yavi.ik.am)
🐛 Bug Fixes
- Fix problem with checking nested constraint condition when nested target is null (#145, thanks to @ddzida )
⚡️ Breaking Changes
- Rename
ValidatorBuilder#_doubleArrray
->ValidatorBuilder#_doubleArray