All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 - 2026-03-31
ApiResponse<T>— standardized response envelope withIsSuccess,Data,Message,Errors,StatusCodeApiResponse— non-generic version for operations without a response body (DELETE, etc.)- Explicit factory methods:
Ok,Created,NoContent,NotFound,BadRequest,Unauthorized,Forbidden,Conflict,Error ApiResponse.From<T>(value)— smart factory: returns 200 if value is not null, configured null status code otherwiseApiResponse.FromAsync<T>(factory)— async smart factory withCancellationTokensupportApiResponse.FromBool(bool, onTrue, onFalse)— bool-based response for operations without return valueApiResponse.From(HttpResult<T>)— native conversion fromAspNetCoreHttpKit.HttpResult<T>ApiResponse.From(HttpResult)— native conversion from non-genericAspNetCoreHttpKit.HttpResult- Fluent
.OnNull(message, statusCode?)— override response when data is null - Fluent
.OnSuccess(transform)— transform data on success .ToResult()— convertsApiResponse<T>toIResultfor Minimal API useApiExceptionMiddleware— global exception handler, registered viaapp.UseApiExceptionHandler()IExceptionMapper— interface for custom exception mapping implementationsDefaultExceptionMapper— maps standard .NET exceptions:ArgumentException→ 400,UnauthorizedAccessException→ 401,KeyNotFoundException→ 404,InvalidOperationException→ 409,NotImplementedException→ 501,TimeoutException→ 408,OperationCanceledException→ 499AuthKitExceptionMapper— mapsAspNetCoreAuthKitandAspNetCoreHttpKitexceptions to correct status codesExceptionMapperResolver— resolves the correct mapper following the priority chain: custom → AuthKit → default → fallback 500ResponseKitOptions— configurableNullResponseStatusCode,NullResponseMessage,PropagateUpstreamStatusCodes,IncludeExceptionDetails,DefaultErrorMessageResponseKitOptions.MapException<T>()— fluent custom exception registrationAddAspNetCoreResponseKit(Action<ResponseKitOptions>?)— DI registration extension methodUseApiExceptionHandler()— middleware registration extension method- MIT license