Skip to content

Releases: ya7010/serde_valid

v2.0.3

Choose a tag to compare

@ya7010 ya7010 released this 16 Jun 09:39

What changed

  • Restored the removed Enumerate-named public API as deprecated compatibility shims.
  • Added EnumerateError as a deprecated alias of EnumError.
  • Added deprecated ValidateEnumerate and ValidateCompositedEnumerate compatibility traits that use the current enum validation error type.
  • Fixed the compatibility regression reported in #118 for downstream crates still using the 2.0.1 API names.

Validation

  • cargo check
  • cargo nextest run
  • cargo build --all-features
  • cargo test --all-features

v2.0.2

Choose a tag to compare

@ya7010 ya7010 released this 10 Jun 13:14
5bf31d9

What's Changed

  • feat: use #[validate(r#enum = ...) instead of #[validate(enumerate = ...) by @ya7010 in #111
  • refactor: remove proc-macro-error2 dependency by @ya7010 in #113
  • refactor: remove paste dependency by @ya7010 in #114
  • refactor: remove unused FormatDefault import from generated code by @ya7010 in #115
  • chore: bump version to 2.0.2 by @ya7010 in #116

Full Changelog: v2.0.1...v2.0.2

v2.0.1

Choose a tag to compare

@ya7010 ya7010 released this 18 Dec 01:50
2e7664f

What's Changed

Full Changelog: v2.0.0...v2.0.1

v2.0.0

Choose a tag to compare

@ya7010 ya7010 released this 11 Oct 09:09
c1b3eaf

What's Changed

In addition to minor bug fixes, we changed the type of the Error property key type from String to Cow<'_, str>.

Breaking Changes

Other changes

Full Changelog: v1.0.5...v2.0.0

v1.0.5 🎉

Choose a tag to compare

@ya7010 ya7010 released this 06 Jan 14:59

What's Changed

  • Change validation order. by @yassun7010 in #90
  • Remove deprecated rule by @yassun7010 in #91

Full Changelog: v1.0.4...v1.0.5

v1.0.4 🎉

Choose a tag to compare

@ya7010 ya7010 released this 27 Dec 13:47

Since the functionality has been stable for a while after the last major functionality change,
we decided to remove the old functionality and release it as v1.

Full Changelog: v1.0.3...v1.0.4

v0.25.1

Choose a tag to compare

@ya7010 ya7010 released this 27 Dec 02:54

What's Changed

  • feat: export regex. by @yassun7010 in #87

Full Changelog: v0.25.0...v0.25.1

v2.5.0

Choose a tag to compare

@ya7010 ya7010 released this 07 Sep 01:35
ef3abf1
  • replace proc_macro_error to proc_macro_error2. (#84)

v0.24.0

Choose a tag to compare

@ya7010 ya7010 released this 22 Jun 12:14

Breaking Changes

By switching to syn v2, attributes can now be specified more naturally.
This disruptive change provides a uniform policy for how attributes are written.

To provide a transition period and to guide you going forward, warnings will be displayed for existing writing styles.

The following is a change in the way attributes are specified.

  • #[validate(enumerate(???))] -> #[validate(enumerate = [???])]( #73)
  • #[validate(custom(???))] -> #[validate(custom = ???)] (#75)
  • #[validate(..., message_fn(???))] -> #[validate(..., message_fn = ???)] (#76)

New Feeatures

  • Support #[validate(..., message_l10n = ???)]

v0.23.0

Choose a tag to compare

@ya7010 ya7010 released this 20 Jun 15:27

New Features:

  • Multi Errors Validation (#72)
  • Deprecated Warning (##68)