Skip to content

Releases: making/yavi

0.12.2

12 May 05:37

Choose a tag to compare

What's Changed

Full Changelog: 0.12.1...0.12.2

0.12.1

29 Nov 08:31

Choose a tag to compare

What's Changed

Full Changelog: 0.12.0...0.12.1

0.12.0

21 Nov 18:16

Choose a tag to compare

What's Changed

  • Add unwrap method to access ValidatorBuilder from Kotlin DSL by @be-hase in #263
  • Add shortcut methods to Validation.success and Validation.failure in Validated class by @making in #264
  • Bump kotlinx-coroutines-core from 1.6.2 to 1.6.3 by @dependabot in #268
  • Bump kotlinx-coroutines-core from 1.6.3 to 1.6.4 by @dependabot in #271
  • Bump junit.version from 5.8.2 to 5.9.0 by @dependabot in #275
  • Bump junit.version from 5.9.0 to 5.9.1 by @dependabot in #280
  • Bump maven-jar-plugin from 3.2.2 to 3.3.0 by @dependabot in #279
  • Bump kotlin.version from 1.6.21 to 1.7.21 by @dependabot in #287
  • Deprecate Annotation Processor support by @making in #292
  • Add isLocalDate to CharSequenceConstraint by @ffroliva in #283

New Contributors

Full Changelog: 0.11.3...0.12.0

0.11.3

06 Jun 04:51

Choose a tag to compare

What's Changed

  • Support Emoji 13.0-14.0 by @making in #244
  • Add wrap method for more flexibility to single value validator builders by @making in #247
  • Bump kotlinx-coroutines-core from 1.6.1 to 1.6.2 by @dependabot in #255
  • Bump assertj-core from 3.22.0 to 3.23.1 by @dependabot in #257
  • Bump formatter-maven-plugin from 2.18.0 to 2.19.0 by @dependabot in #258
  • Fix typo: negaitve -> negative by @JozsefKutas in #259
  • Revert "Bump formatter-maven-plugin from 2.18.0 to 2.19.0" by @making in #260

New Contributors

Full Changelog: 0.11.2...0.11.3

0.11.2

02 May 15:03

Choose a tag to compare

What's Changed

Full Changelog: 0.11.1...0.11.2

0.11.1

25 Apr 11:45

Choose a tag to compare

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 and Supplier<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

15 Mar 07:05

Choose a tag to compare

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

17 Feb 03:24

Choose a tag to compare

✨ Enhancements

  • Raise limit for combining and splitting Validators to 16. by @duponter in #206

🐛 Bug Fixes

  • violated arguments of oneOf are not rendered correctly by @duponter in #211

🗒 Miscs

Full Changelog: 0.10.0...0.10.1

0.10.0

02 Jan 15:44

Choose a tag to compare

✨ Enhancements

  • 🆕 positive(), negative(), positiveOrZero() & negativeOrZero() introduced to NumericConstraintBase (#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 in ValidatorBuilder. (#187) Thanks to @DiegoKrupitza
  • 🆕 Introduce lazy() method to Arguments Validators and add throwIfInvalid() in Validation
  • Fully migrated test from JUnit4 to JUnit5. (#194) Thanks to @DiegoKrupitza
  • 🆕 startsWith(String) & endsWith(String) introduced to CharSequenceConstraint (#193) Thanks to @DiegoKrupitza
  • 🆕 Added constraints for Temporal types (LocalDate, LocalTime, LocalDateTime, OffsetDateTime, ZonedDateTime and Instant). (#195) Thanks to @DiegoKrupitza
    • past()
    • 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 and NestedValidatorSubset -> 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

15 Oct 13:30

Choose a tag to compare

✨ Enhancements

  • 🆕 Add Coroutines variants of Validation.*map and fold