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

Remove Namespaces support in `v3.0`

Open Papooch opened this issue 3 years ago • 1 comments

Namespaces are a remnant from the early implementation based on cls-hooked, but I've never found an useful application for them, therefore I've decided to remove them to clean up the code base and re-use the API in favor of https://github.com/Papooch/nestjs-cls/issues/30

Papooch avatar Jun 19 '22 10:06 Papooch

Namespaces have been marked as deprecated in #32

Papooch avatar Jun 19 '22 21:06 Papooch

There should still be a guide on how to provide a "namespaced" ClsService in the docs though. One use case would be to store a transaction object there - the lifetime of a transaction can be different to the one of a web request.

Papooch avatar Sep 09 '22 20:09 Papooch