Skip to content

Releases: tu6ge/valitron

v0.5.3

03 Sep 05:18
Compare
Choose a tag to compare

v0.5.2

11 Jun 12:14
Compare
Choose a tag to compare

Changed documents

v0.5.1

26 May 00:15
Compare
Choose a tag to compare

Features

  • Add string validator #26

Bench

bench with validator

0.5.0

17 May 23:24
Compare
Choose a tag to compare

Features

  • rename core rule
  • type mismatch dont compare
  • add compres rules
  • add Debug derive of build-in rules

Inner change

  • reduce deps of range

Full Changelog: 0.4.1...0.5.0

v0.4.1

12 May 08:38
Compare
Choose a tag to compare

Features

  • add email rule
  • add regex rule
  • add ip and url rules example

v0.4.0

19 Apr 01:51
Compare
Choose a tag to compare

Features

  • feat(rule): support Length::eq(x)
  • feat(register): parser error message changed
  • feat: creating message from validator
  • feat: add ValidatorRefine, used by creating message
  • changed Validatable
  • Add ValidPhrase, used by format string message
  • ValidatorError support Index trait, e.g.: error["field1"]
  • RuleShortcut extend Clone, better prompt.

Bugs

Full Changelog: 0.3.0...0.4.0

0.3.0

09 Nov 07:26
Compare
Choose a tag to compare

Breaking change:

  • Rule trait signature changed:
trait Rule<M> {
      ...
-    fn name(&self) -> &'static str {
-         "[rule name]"
-    }
+    const THE_NAME: &'static str = "[rule name]";
}

and

trait RuleShortcut {
      ...
-    fn name(&self) -> &'static str {
-         "[rule name]"
-    }
+    const NAME: &'static str = "[rule name]";
}

about detail #20

v0.2.4

26 Oct 08:17
Compare
Choose a tag to compare
  • doc: changed register docs
  • style

v0.2.3

13 Oct 01:35
Compare
Choose a tag to compare

Features

  • Remove default define of generics
  • Reduce limit of impl of Validatable
  • Assert field exist

When using custom validator
before

let validator = Validator::<CustomMessage>::new().rule("foo", CustomRule1);

now

let validator = Validator::new().rule("foo", CustomRule1);

Reduceing grammar noise

v0.2.2

07 Oct 02:34
Compare
Choose a tag to compare

Features

  • Add available::*::as_ref
  • Add available::*::as_mut
  • Add available::*::copied
  • Add available::*::cloned
  • Add available::*::copied on &mut
  • Add available::*::cloned on &mut
  • Reduce limit of build-in rules generics argement (not need to implement Debug)
  • Unsupport &str deserialize, and when encountering, give the user a reasonable panic tip.
  • Reduce limit of impl of Validator
  • Reduce limit of impl of RuleList
  • Sealed RuleExt trait
  • Some painc changed to debug_assert