Skip to content

v0.10.0

Compare
Choose a tag to compare
@strider2038 strider2038 released this 17 Apr 08:31
· 69 commits to main since this release
aafecfa
  • it.NotBlankConstraint, it.BlankConstraint, it.NilConstraint and it.NotNilConstraint now are based on generic comparable type and can be used as NumberConstraint and ComparableConstraint:
    • it.NotBlankNumberConstraint and it.BlankNumberConstraint are removed;
    • it.IsNotBlankNumber() and it.IsBlankNumber() now returns it.NotBlankConstraint and it.BlankConstraint;
    • new constructors were added.
  • it.ChoiceConstraint now is compatible with NumberConstraint and StringConstraint.
  • New generic it.ComparisonConstraint added to compare comparable types. Use it with constructors it.IsEqualTo() and it.IsNotEqualTo().
  • it.IsEqualToString(), it.IsNotEqualToString(), it.IsEqualToNumber() and it.IsNotEqualToNumber() marked as deprecated.
  • More runnable examples and docs.