Body Parsing: The default type for the JSON parser is now set to application/json, making it easier to handle JSON data without additional configuration.
Body Parsing: The default type for the urlencoded parser is now set to application/x-www-form-urlencoded, simplifying the setup for form submissions.
Improvements
Performance: The code is optimized by enabling strict mode, which helps catch common coding errors and improves performance.
Error Handling: The library now uses the http-errors module to generate errors, providing clearer and more consistent error messages.
Error Management: A new statusCode property is added to Errors, in addition to the existing status, enhancing error information.
Others
Fix typos in the README to improve clarity and user understanding.
Update dependencies to ensure compatibility and security, including mocha, supertest, and others.