Error Handling: Enhance error reporting by including the "body" and "type" properties on all generated errors, making it easier to debug issues with incoming requests.
Improvements
Performance: Improve performance by preventing internal errors when the charset is missing, leading to a smoother experience when handling requests.
Documentation: Clarify that options in the API are optional, helping users understand how to use the middleware more effectively.
Fixes
Fix JSON strict violation error to match native parse error, ensuring consistent behavior when parsing JSON data.
Resolve issues with error handling by using http-errors to set appropriate status codes on errors, improving the clarity of error responses.