Releases: ya7010/serde_valid
Releases · ya7010/serde_valid
Release list
v2.0.3
What changed
- Restored the removed
Enumerate-named public API as deprecated compatibility shims. - Added
EnumerateErroras a deprecated alias ofEnumError. - Added deprecated
ValidateEnumerateandValidateCompositedEnumeratecompatibility 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 checkcargo nextest runcargo build --all-featurescargo test --all-features
v2.0.2
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
v2.0.0
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
- chore: add test case. by @ya7010 in #92
- Use tombi by @ya7010 in #94
- fix: clippy. by @ya7010 in #99
- feat: minus test cases. by @ya7010 in #98
- chore: update toml format. by @ya7010 in #100
- feat: update itertools. by @ya7010 in #101
- Update dependencies by @ya7010 in #102
- fix: range validation with message. by @ya7010 in #103
- v2.0.0 by @ya7010 in #104
- chore: rename user. by @ya7010 in #105
Full Changelog: v1.0.5...v2.0.0
v1.0.5 🎉
v1.0.4 🎉
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
v2.5.0
v0.24.0
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 = ???)]