v0.14.0
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 agovy.Rule
but rather agovy.RuleSet
. The rule set now consists of two rules, one for string length and one for the regular expression. This means both thegovy.Plan
and producedgovy.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 andrules.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 andHas
, 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
throughgovy.RuleSet.Cascade()
method.
Ifgovy.CascadeModeStop
is used the rule set will stop evaluating further rules once a first error is encountered.
The behavior is consistent withgovy.PropertyRules.Cascade
.
🧰 Maintenance
7 changes
- chore: Remove devbox lock nixpkgs entry (again) (#88) @nieomylnieja
- chore: Remove devbox.lock nixpkgs entry (#86) @nieomylnieja
- chore: Update dependency cspell to v8.17.5 (#84) @renovate[bot]
- chore: Update dependencies (#83) @nieomylnieja
- chore: Switch StringDNSLabel to RuleSet (#82) @nieomylnieja
- chore: Simplify internal rules iteration withing PropertyRules (#80) @nieomylnieja
- chore: Pin devbox version (#79) @nieomylnieja