Releases: modabas/ModResults
Releases · modabas/ModResults
1.3.0-preview1
What's Changed
Introduces a refactor of the ModResults library, optimizing memory usage for empty results, unifying result types under new base abstractions, and modernizing extension methods using C# 14 features. It also enhances API consistency, improves Minimal API integration, and updates serialization logic.
- BaseResult.cs: Adds new abstract base result classes and centralizes statements/facts/warnings logic.
- Failure.cs, Statements.cs: Refactors to use nullable collections and adds
HasErrors(),HasFacts(), andHasWarnings()methods for efficient memory usage. - Static failed result factory methods now use
params IEnumerable<T>as input parameters instead ofparams T[]. - Extension and conversion files (e.g., ResultFactExtensions.cs, ResultWarningExtensions.cs, ResultConversionExtensions.cs): Refactored to use C# 14 extension syntax and new base types for more flexible and type-safe APIs.
- ModResults.MinimalApis: Introduces TypedResultsExtensions for improved Minimal API error handling and status code mapping.
- updates to Orleans surrogates for efficient serialization.
- removed IStatements interface.
Full Changelog: 1.2.1...1.3.0-preview1