Skip to content

Releases: making/yavi

0.2.6

04 Dec 16:55
Compare
Choose a tag to compare
  • Fix the missing ConstraintGroup in ValidatorSubset.validate (#29)
  • Upgrade Kotlin dependencies

0.2.5

01 Oct 15:45
Compare
Choose a tag to compare
  • Fix a bug that throws NPE when the target field of nestIfPresent is null (#28)

0.2.4

01 Oct 08:39
Compare
Choose a tag to compare
  • Respect conditional constraints on nested validators (#20 , #24)
  • Add clone and cast methods to ValidationBuilder so that it can be reused (#23)

0.2.3

06 Sep 16:07
Compare
Choose a tag to compare
  • Add reflect-config.json for GraalVM native image build

0.2.2

07 May 16:51
Compare
Choose a tag to compare
  • Add ValidationBuilderExtensions.konstraint and deprecate ValidationBuilderExtensions.constraint (#16)
    It can be automatically replaced with Kotlin's ReplaceWith mechanism
    replace-with-konstraint
  • Fix a bug in Either.doOnLeft and Either.doOnRight which can throw NullPointerException
  • Small tweaks

0.2.1

06 May 16:16
Compare
Choose a tag to compare
  • Remame am.ik.yavi.builder.Yavi => am.ik.yavi.builder.ValidatorBuilderExtensions
  • Add constraintOnGroup in ValidatorBuilderExtensions
  • Add followings coroutines variants of Either methods (#14)
    • EitherExtensions.awaitFold
    • EitherExtensions.awaitBimap
    • EitherExtensions.awaitLeftMap
    • EitherExtensions.awaitRightMap
  • Add EitherExtensions.leftOrNull() and EitherExtensions.rightOrNull (#15)
  • Make doOnLeft and doOnRight return itself

0.2.0

06 May 06:29
Compare
Choose a tag to compare
  • Add Either.doOnLeft and Either.doOnRight method
  • Upgrade Kotlin version to 1.3.31

Breaking Changes

  • Change the default variant option into notIgnoreAll which makes CharSequenceConstraint#size much faster and does not affect most cases (#13) See also the diff.

0.1.0

05 May 11:56
Compare
Choose a tag to compare
  • Deprecate Validator.builder() in favor of ValidatorBuilder.of() to fix circular dependencies (#7)
  • Add constraintOnGroup method

Breaking Changes

Following classes are repackaged to fix circular dependencies (#7)

  • am.ik.yavi.core.ValidatorBuilder => am.ik.yavi.builder.ValidatorBuilder
  • am.ik.yavi.core.Yavi => am.ik.yavi.builder.Yavi
  • am.ik.yavi.constraint.Constraint => am.ik.yavi.core.Constraint
  • am.ik.yavi.constraint.ViolationMessage => am.ik.yavi.core.ViolationMessage

Removed Methods

Following deprecated methods has been removed

  • ValidatorBuilder.constraintForEach
  • ValidatorBuilder.constraintForNested
  • ValidatorBuilder.constraintForObject
  • ValidatorBuilder.constraintIfPresentForEach
  • ValidatorBuilder.constraintIfPresentForNested
  • CodePointsConstraint.allIncluded
  • CodePointsConstraint.notIncluded
  • Yavi.constraintForEach
  • Yavi.constraintForNested
  • Yavi.constraintIfPresentForEach
  • Yavi.constraintIfPresentForNested

0.0.24

05 May 08:32
Compare
Choose a tag to compare
  • Update Emoji12 data set

0.0.23

05 Dec 11:10
Compare
Choose a tag to compare
  • Add constraintOnObject in Kotlin Extension (#8)
  • Rename and deprecate (#9)
    • constraintForNested => nest
    • constraintIfPresentForNested => nestIfPresent
    • constraintForEach => forEach
    • constraintIfPresentForEach => forEachIfPresent