V3.0.0
Dotnet 8 Support
HttpBuildR.ActionResult now supports net 8 and has dropped support for net 7.
Other breaking changes in Action Result
As part of this change 2 breaking changes have been made.
AsOk
is no longer there, I have come to see extension methods on T as problematic. It is too broad and effectively makes every type in the solution a candidate for conversion to action result.
Instead I have renamed the static class to ActionResultBuilder and changed the AsOk
method to Ok
and made it a normal static method.
using HttpBuildR;
// ActionResult<string> oldAr = "some content".AsOk();
ActionResult<string> newAr = ActionResultBuilder.Ok("some content");
The other change was to align with the standard naming conventions for extension methods, replacing the AsAction<>()
command with
ToActionResult<>()
using HttpBuildR;
using Resp = HttpStatusCode;
// ActionResult<string> oldAr = Resp.BadRequest.Result().AsAction<string>();
ActionResult<string> newAr = Resp.BadRequest.Result().ToActionResult<string>();
What's Changed
- chore: enable central package management by @bmazzarol in #115
- chore: simplify CI by @bmazzarol in #116
- chore: test reporter in-line by @bmazzarol in #117
- fix: run test reporter steps only on pr by @bmazzarol in #118
- chore(deps): Bump xunit from 2.5.3 to 2.6.0 by @dependabot in #121
- chore(deps): Bump Meziantou.Analyzer from 2.0.98 to 2.0.103 by @dependabot in #120
- chore(deps): Bump FluentAssertions.Analyzers from 0.25.0 to 0.26.0 by @dependabot in #119
- feat: upgrade to dotnet 8 by @bmazzarol in #122
Full Changelog: 2.0.0...3.0.0