Skip to content

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 06 Aug 23:05
· 4 commits to main since this release

Added

  • Built-in rule extension methods for strings, comparable values, collections, membership checks, defaults, and null/default checks in the base Crabalidator namespace.
  • BenchmarkDotNet coverage for built-in rule extensions against FluentValidation equivalents.
  • BenchmarkDotNet coverage for custom Must(...) predicates using public static, public instance, and fallback lambda delegates.
  • Explicit nested validator helpers through ValidateNestedWith<TValidator>(...) and ValidateEachWith<TValidator>(...).

Optimized

  • Optimized DynaBee generated validators to emit direct calls for visible Must(Func<TProperty, bool>) delegate methods.
  • Added fast-path support for public static Must predicates and public instance predicates with captured targets.
  • Updated built-in extension rules that require predicate state to use visible predicate methods so generated validators can avoid Delegate.Invoke.
  • Improved mixed extension-rule validation performance against FluentValidation baselines.

Fixed

  • Preserved property types when explicit nested validator helpers receive object-typed property expressions.
  • Allowed explicit nested validator selection without manually constructing validators, keeping dependency injection intact.
  • Kept opaque lambdas and private predicate methods on the safe fallback path.