v0.7.0
n9-machine-user
released this
05 Nov 15:17
·
15 commits
to refs/heads/main
since this release
What's Changed
⚠️ Breaking Changes
- feat: Add cascade mode setting to Validator (#43) @nieomylnieja
govy.CascadeMode
enum now starts from 1 (previously 0). - feat: Allow converting rules for pointers (#42) @nieomylnieja
govy.NewRuleSet
now only acceptsgovy.Rule
. Previously passing anything else into it would not work either.
🚀 Features
- feat: Add benchmark report (#41) @nieomylnieja
Benchmarks for govy can now be easily inspected and tracked over time.
- feat: Add cascade mode setting to Validator (#43) @nieomylnieja
Added
govy.Validator.Cascade
which allows controlling error handling ongovy.Validator
level and propagating the setting togovy.PropertyRules
. For more details on cascade mode read this. - feat: Allow converting rules for pointers (#42) @nieomylnieja
Added two functions:
govy.RuleToPointer
andgovy.RuleSetToPointer
which both convert respectivelygovy.Rule[T]
andgovy.RuleSet[T]
to work on pointers of the same type:govy.Rule[*T]
andgovy.RuleSet[*T]
.
govytest.ExpectedRuleError
no longer requiresPropertyName
to be provided, this allows testing properties which have no name.
🧰 Maintenance
4 changes
- chore: Update README.md (#46) @nieomylnieja
- chore: Split test workflows for pushes to main (#45) @nieomylnieja
- chore: Fix benchamrk action (#44) @nieomylnieja
- chore: Update dependency cspell to v8.15.7 (#39) @renovate