Skip to content

v1.0.0-beta.4

Choose a tag to compare

@AlanBarber AlanBarber released this 29 Nov 23:47
· 23 commits to main since this release

Full Changelog: v1.0.0-beta.3...v1.0.0-beta.4

Bug Fixes

  • Fixed memory allocation in Result.Metadata - Cached a static empty dictionary to avoid allocating a new Dictionary on every access when no metadata is set
  • Improved error message for invalid request types - Changed .First() to .FirstOrDefault() with a clear error message when a type doesn't implement IRequest
  • Preserved validation exceptions - Validation failures now retain the exception if one was attached to the Result

Test Coverage

  • Added test for CancellationToken passthrough - Verifies the token reaches the handler
  • Added test for validation exception preservation - Verifies exceptions from ValidateAsync are preserved in the failure result

Full Changelog: v1.0.0-beta.3...v1.0.0-beta.4