Skip to content

Releases: rsuite/validation

1.5.0 (Nov 20, 2020)

20 Nov 08:18
a25542c
Compare
Choose a tag to compare

New rules

  • startsWith:value and endsWith:value rules for string.

1.4.0 (Nov 12, 2020)

12 Nov 06:10
1d011bd
Compare
Choose a tag to compare

New rules

  • gt:other, gte:other, lt:other, lte:other rules for validating value against another field.

Bugfixes

  • Correct return type of Validator.check() method.

1.3.2 (Nov 11, 2020)

11 Nov 09:45
c275137
Compare
Choose a tag to compare

Improvements

  • Allow escaping the period in filed name with a backslash to prevent being interpreted as "dot" syntax.

1.3.1 (Nov 9, 2020)

09 Nov 02:30
bd4810f
Compare
Choose a tag to compare

Bugfixes

  • Fix max rule working wrongly on number.
  • Fix missing {field} placeholder in notIn rule.

1.3.0 (Nov 7, 2020)

06 Nov 18:46
Compare
Choose a tag to compare

Summary

This release is a supportive update, which mainly focus on improving @rsuite/schema-typed API coverage. The API is now 100% covered, which means you can use @rsuite/validation to cover any schema-typed validation as you want.

New rules

  • regex:pattern for string, number
  • after:date, afterOrEqual:date, before:date and beforeOrEqual:date for date