Dependencies: Update to the latest versions of several dependencies, including qs, raw-body, on-finished, http-errors, and depd, ensuring better performance and security for users.
Error Handling: Improve error messages for JSON parsing, making it easier for users to understand issues related to whitespace in strict mode.
Error Handling: Fix an internal error that occurs when the inflated body exceeds the limit, enhancing the reliability of the middleware.
Fixes
Fix the deprecated usage of String.prototype.substr() by replacing it with String.prototype.slice(), ensuring compatibility with future JavaScript versions.