Skip to content

v0.14.0

Compare
Choose a tag to compare
@n9-machine-user n9-machine-user released this 22 Mar 21:06
· 14 commits to refs/heads/main since this release
07f7725

What's Changed

⚠️ Breaking Changes

  • feat: Convert govy.ErrorCode to type definition (#85) @nieomylnieja

    govy.ErrorCode has been converted from type alias to type definition.

  • chore: Switch StringDNSLabel to RuleSet (#82) @nieomylnieja

    rules.StringDNSLabel is no longer a govy.Rule but rather a govy.RuleSet. The rule set now consists of two rules, one for string length and one for the regular expression. This means both the govy.Plan and produced govy.RuleError.ErrorCode have changed.

🚀 Features

  • feat: Add StringDNSSubdomain and StringKubernetesQualifiedName rules (#91) @nieomylnieja

    Added rules.StringDNSSubdomain which ensures a string is a valid DNS Subdomain and rules.StringKubernetesQualifiedName which ensures a string is a valid Kuernetes Qualified Name.

  • feat: Convert govy.ErrorCode to type definition (#85) @nieomylnieja

    govy.ErrorCode is now a type definition, it comes with two methods: Add, which adds an error code to the chain and Has, which checks if an error code is present in the chain.

  • feat: Add cascade mode to govy.RuleSet (#81) @nieomylnieja

    Added advanced rules' evaluation control to govy.RuleSet through govy.RuleSet.Cascade() method.
    If govy.CascadeModeStop is used the rule set will stop evaluating further rules once a first error is encountered.
    The behavior is consistent with govy.PropertyRules.Cascade.

🧰 Maintenance

7 changes