Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0 #7

Merged
merged 43 commits into from
Feb 10, 2024
Merged

v3.0 #7

merged 43 commits into from
Feb 10, 2024

Conversation

Carl-Hugo
Copy link
Member

3.0

  • Add support to .NET 7 and .NET 8
  • Remove transitive dependency on JSON.NET (Newtonsoft.Json).
  • Drop support for .NET Standard 2.0 because ExceptionMapper depends on the HttpContext class which requires a <FrameworkReference Include="Microsoft.AspNetCore.App" /> which is not compatible with netstandard2.0.
  • Merge all assemblies in ForEvolve.ExceptionMapper but ForEvolve.ExceptionMapper.Scrutor.

Breaking changes .NET 7+

  • Remove the ContentType and JsonSerializerOptions properties from the ProblemDetailsSerializationOptions class (ForEvolve.ExceptionMapper.Serialization.Json).
  • The ProblemDetailsSerializationHandler class now leverages the IProblemDetailsService interface to write the ProblemDetails object to the response stream instead of serializing it with the JsonSerializer, relinguishing the control of the process to .NET.

- Add support for Nullable and ImplicitUsings.
- Fix the Nullable issues.
- Run Visual Studio code cleanup
This property was not used by the system.
Consolidate code and further reduce the number of assemblies.
Another pass at improving the README, more revision to be done.
I do not know whay they were deactivated.
Replace the `AddMvcCore` call by registering a copy of the
`DefaultProblemDetailsFactory` using a `TryAddSingleton` call. People
must register their custom `ProblemDetailsFactory` implementation before
 `AddExceptionMapper`.
- Removed as many classes as possible.
- Simplified interfaces
- Registers common exceptions, a fallback, and a serializer by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant