Skip to content

V3.0.0

Compare
Choose a tag to compare
@bmazzarol bmazzarol released this 16 Dec 14:28
· 72 commits to main since this release
3bbcd40

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

Full Changelog: 2.0.0...3.0.0