ds-express-errors — v1.8.0 & v1.8.1 Release Notes

by

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 mongoose and sequelize mappers.

What does this mean?

Starting from version 1.8.0 and above, you can choose which mappers are enabled, so unused mappers are not processed, improving performance.

This version also introduces the ability (currently for Zod and Joi only) to pass library error classes through setConfig for stricter verification. By default, the ds-express-errors library uses duck typing to remain dependency-free. Allowing custom error classes keeps this advantage while enabling more precise checks.

Previously, built-in loggers had no rate limiting, which could lead to crashes or freezes. This issue has now been resolved.

Small improvements

New Prisma errors were added, and validation logic was improved in several mappers.

Built-in loggers now support colored output for better readability.

Version 1.8.1 — January 12, 2026

  • Fixed missing API import for logDebug.

  • Added maxLoggerRequests configuration option to limit the maximum number of log requests per minute (default is 100).

  • Added BigInt handling to the internal safeStringify method.

  • Fixed incorrect HTTP status codes in mongoose and sequelize mappers.

  • Refactored logger logic for customLogger.

  • Added Errors.GatewayTimeout(message).

  • Fixed Sequelize mapping for the following errors:

  • SequelizeOptimisticLockError,

  • SequelizeEmptyResultError,

  • SequelizeDatabaseError,

  • SequelizeConnectionError,

  • SequelizeTimeoutError.

Official website and documentation.

Official ds-express-errors Changelog

Official ds-express-errors Roadmap

33 views

Add a comment

Replies

Be the first to comment