nestjs-cls icon indicating copy to clipboard operation
nestjs-cls copied to clipboard

A continuation-local storage (async context) module compatible with NestJS's dependency injection.

Results 29 nestjs-cls issues
Sort by recently updated
recently updated
newest added

Hi Team, I am currently tracking a memory leak where zLib references are being retained and never released. We see this via memory snapshot taken by chrome. Deep inspection of...

investigation

I’m using a tenant-per-database setup and durable providers for TENANT_KYSELY_CONNECTION. After upgrading @nestjs-cls/transactional from 2.5.1 to 2.6.0, I noticed an issue: When making requests in the following sequence — Tenant...

investigation
solved

I think this PR in node 24 (https://github.com/nodejs/node/pull/58029) resolved the security concern of "enterWith" in guard (and optionally in middleware initializers). Tests: Maybe we should add notes about it as...

documentation

# ProxyProviderNotResolvedException thrown even after `resolveProxyProviders(...)` inside `cls.run(...)` ## Summary We occasionally get `ProxyProviderNotResolvedException` when accessing a proxy provider, **despite** resolving it right before usage inside `clsService.run(...)`. This happens rarely...

solved

Thank you for awesome library! I found that types has an edge case that is not covered. There is no way to pass optional injection token. In nest js there...

enhancement
contribution welcome

Hi! Currently, there's a way to define a factory for an async provider, e.g. ```typescript ClsModule.forFeatureAsync({ provide: MCP_CLIENT_TOKEN, strict: true, inject: [McpClientConfig, CLS_REQ], useFactory: async (config: McpClientConfig, req: Request) =>...

enhancement

After upgrading `nestjs-cls` to version 6.0.1, I started encountering test failures in parts of my codebase that depend heavily on the `@UseCls()` decorator—especially in places where execution occurs outside the...

documentation
solved

There is this message on startup " DEBUG [ClsModule] Mounting ClsMiddleware to *", even in production. It just bothers me

enhancement
contribution welcome