A lot has changed across the v1.9.x releases.
Added stricter and more accurate Prisma & Sequelize error detection
Added configurable errorClasses support for Prisma and Sequelize
Improved Sequelize connection error mapping
Improved production-safe error responses across Zod, Joi, express-validator, Mongoose, Prisma, Sequelize, and JWT
Added separate JWT error handling to prevent sensitive details from leaking in production
Improved TypeScript definitions and fixed several missing types
Fixed ESM imports and Prisma initialization error detection
Improved development logs and expanded test coverage
Updated documentation around configuration, "NODE_ENV", library errors, and mapper behaviour
Added missing "jwt" property for "needMappers"
Fixed "needMappers" being incorrectly typed as a single string union instead of an array
Updated "asyncHandler" to preserve Express generic request types
Additional README updates
👋 Hey Product Hunt!
I built ds-express-errors after repeatedly running into the same problem: error handling in Express apps quickly becomes fragmented — try/catch blocks everywhere, inconsistent responses, and ad-hoc fixes for each library.
The goal was to define one global error strategy that works across the entire API and automatically understands errors from tools like Zod, Joi, express-validator, Prisma, Sequelize, JWT, and Mongoose.
I’d love feedback from backend developers:
– How do you currently handle errors in Express?
– What integrations or features would make this more useful for you?
Thanks for checking it out!