Releases: co-IT/CSharpFunctionalExtensions.HttpResults
Releases · co-IT/CSharpFunctionalExtensions.HttpResults
v0.9.0
Breaking
- use method instead of func for custom error mapping by @DerStimmler in #17
- To migrate, simply change all
MapFuncs in your custom error mappers that implementIResultErrorMapperto aMapmethod.public Func<DocumentMissingError, NotFound<string>> Map => error => TypedResults.NotFound(error.DocumentId); //becomes public NotFound<string> Map(DocumentMissingError error) => TypedResults.NotFound(error.DocumentId);
- To migrate, simply change all
What's Changed
- enhance custom error mapper flexibility by applying in/out variances to mapper types by @DerStimmler in #17
Full Changelog: v0.8.0...v0.9.0
v0.8.0
What's Changed
- feat: allow mapped ProblemDetails to be customized by @DerStimmler in #14
Full Changelog: v0.7.0...v0.8.0
v0.7.0
What's Changed
- feat!: make default mapping customizable by @DerStimmler in #12
Breaking
- Renamed
ProblemDetailsMap.Find()toProblemDetailsMappingProvider.FindMapping()
Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's Changed
- feat: add
ToContentHttpResultmethods by @DerStimmler in #11
Full Changelog: v0.5.0...v0.6.0
v0.5.0
- improve source generator performance
- add new
CFEHTTPR003analyzer rule forIResultErrorMapperwith unimplementedMapproperty
Full Changelog: v0.4.0...v0.5.0
v0.4.0
- update dependencies
- add
net9.0target
Full Changelog: v0.3.2...v0.4.0
v0.3.2
- reduce package size by removing unneeded DLLs
Full Changelog: v0.3.1...v0.3.2
v0.3.1
- fix source generation with multiple target frameworks
Full Changelog: v0.3.0...v0.3.1
v0.3.0
Warning
Source Generator broken. Skip this release!
- add target
net7.0 - improve docs
Full Changelog: v0.2.0...v0.3.0
v0.2.0
Breaking Changes:
- rename
ToHttpResult<E>toToStatusCodeHttpResult<E>
Changes:
- add
ToNoContentHttpResult<E>method - add
ToNoContentHttpResultmethod