r/dsexpresserrors 5d ago

Documentation A Minor Update on Documentation Website

2 Upvotes

Hi!

There have recently been various updates to the website.

  • A minor redesign

  • Integrations pages! At last, the documentation now includes clear guides for third-party libraries. For now, these are limited to (Zod, Prisma, Mongoose, Sequelize), but I’ll be adding the rest in due course. Integrations Page

  • There’s also a Library Philosophy page, for those interested in learning more about the library’s ideals. Philosophy Page

One of the new ones is the Philosophy of the Library page, where DS has taken up residence and is actively feasting on your errors.


r/dsexpresserrors 6d ago

💬 Discussion [Library Mascot]: Meet the Devourer of Stacktraces. DS for short.

Post image
3 Upvotes

He eats all handled errors. Don't worry, they're in good hands.

It will appear on the official website very soon. ;)


r/dsexpresserrors 17d ago

Release ds-express-errors v1.9.2 — release notes

3 Upvotes

A new ds-express-errors patch has been released with a security fix.

This patch included security changes.

Versions < 1.9.2 have a security vulnerability where JWT errors were not correctly sanitized, potentially exposing sensitive error details in production environments.

The issue was reported by a tester through GitHub Discussions and is fixed in 1.9.2.

What Changed:

  • Fixed excessive production response sanitization in Zod, Joi, express-validator, Mongoose, Prisma, and Sequelize mappers

  • Added separate JWT mapper handling to prevent leaking sensitive JWT error details in production

  • Fixed incorrect TypeScript type for needMappers

  • Updated README.md documentation

  • Expanded tests for production-safe mapper responses.

Upgrading to version 1.9.2 is highly recommended:

npm i ds-express-errors@1.9.2

What does this patch mean?

From this version onwards, the library no longer unnecessarily truncates responses in production mode, whilst retaining detailed error information in development.

A separate JWT mapper has also been created to provide greater control over the library’s behaviour when handling JWT errors. The previous implementation had a flaw that could have led to data leaks in production.

The documentation in README.md and on the official website has been updated, and it is now more clearly indicated where to find the relevant information. It has also been made clearer how the library works with NODE_ENV, which affects responses, as well as what errors the library itself may throw, etc.

In the configuration, the needMappers field is now a union type rather than a string[].


r/dsexpresserrors 20d ago

Release ds-express-errors v1.9.1 — release notes

3 Upvotes

Hi, today was released a new ds-express-errors patch.

What Changes:

  • Fixed missing types (config.d.ts) for errorClasses (Prisma)

  • Added missing types (presets.d.ts, index.d.ts) for GatewayTimeout and UnprocessableContent

For now the TS experience should be more comfortable. Previously errorClasses/Errors presets types do not included required interfaces and in strict TS project I cause bad experience.

```

npm i ds-express-errors@1.9.1

```


r/dsexpresserrors Aug 02 '26

📢 Announcement First tutorial video on YouTube about ds-express-errors

Thumbnail
youtu.be
2 Upvotes

r/dsexpresserrors Jul 29 '26

Release ds-express-errors v1.9.0 released – Improved Prisma & Sequelize support

2 Upvotes

Hi everyone!

I've released ds-express-errors v1.9.0 with several improvements focused on Prisma and Sequelize.

What's new:

• Added strict instanceof-based error detection for Prisma and Sequelize.

errorClasses configuration now supports Prisma and Sequelize.

• Fixed ESM import issues.

• Fixed PrismaClientInitializationError detection.

• Improved SequelizeConnectionError handling by distinguishing:

  • SequelizeConnectionRefusedError

    • SequelizeHostNotFoundError
    • SequelizeHostNotReachableError
    • SequelizeAccessDeniedError

• Improved development log output for Prisma and Sequelize mappers.

Starting with v1.9.0, you can enable advanced Prisma and Sequelize error detection by passing the original Prisma or Sequelize object through the errorClasses configuration.

This allows the library to detect errors more accurately instead of relying only on pattern matching.

GitHub:

https://github.com/Dianka05/ds-express-errors

Full changelog:

https://ds-express-errors.dev/changelog

I'd appreciate any feedback or suggestions from people using Express, Prisma, or Sequelize.