Diana Stoyka

Developer
All activity
Diana Stoykastarted a discussion

ds-express-errors β€” v1.8.0 & v1.8.1 Release Notes

Version 1.8.0 β€” January 11, 2026 Added support for user-provided error classes in custom mappers (Zod, Joi). Added the ability to enable only selected mappers via configuration, reducing unnecessary checks. Added rate limiting for the logger. Fixed incorrect logic in the express-validator mapper. Expanded supported Prisma errors: P2005, P2006, P2007, P2011, P2027. Improved validation logic for...

Diana Stoykastarted a discussion

ds-express-errors v1.7.0 – express-validator support

Released v1.7.0 of ds-express-errors. What’s new: Added express-validator error mapping Improved Mongoose and Prisma error checks Safer setConfig validation Logger bug fix and internal refactoring πŸ”— Docs and changelog

Diana Stoykastarted a discussion

An Express library for centralized error handling

Express apps often end up with scattered error handling. Try catch in routes, inconsistent responses, duplicated logic. Centralizing this logic can make apps more predictable and easier to maintain. I published a open source error handling library called ds-express-errors that tries to address these issues in a structured, minimal way. Here is what it provides: Centralized error middleware...

ds-express-errors provides a single, predictable error-handling strategy for Express.js APIs, replacing scattered try/catch blocks and inconsistent responses. It automatically maps errors from tools like Zod, Prisma, Mongoose, and JWT into proper HTTP errors with consistent JSON output. Everything is fully configurable β€” response shape, logging, environments, and custom error mapping. Built for production with async handling, process-level guards, graceful shutdowns, and full TypeScript support
ds-express-errors
ds-express-errorsPredictable, centralized error handling for Express.js APIs