Skip to content

v0.7.0

Compare
Choose a tag to compare
@n9-machine-user n9-machine-user released this 05 Nov 15:17
· 15 commits to refs/heads/main since this release
c2b1093

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 accepts govy.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 on govy.Validator level and propagating the setting to govy.PropertyRules. For more details on cascade mode read this.

  • feat: Allow converting rules for pointers (#42) @nieomylnieja

    Added two functions: govy.RuleToPointer and govy.RuleSetToPointer which both convert respectively govy.Rule[T] and govy.RuleSet[T] to work on pointers of the same type: govy.Rule[*T] and govy.RuleSet[*T].
    govytest.ExpectedRuleError no longer requires PropertyName to be provided, this allows testing properties which have no name.

🧰 Maintenance

4 changes