Papooch / nestjs-cls

A continuation-local storage (async context) module compatible with NestJS's dependency injection.
https://papooch.github.io/nestjs-cls/
MIT License
434 stars 28 forks source link

Remove Namespaces support in `v3.0` #31

Closed Papooch closed 2 years ago

Papooch commented 2 years ago

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 commented 2 years ago

Namespaces have been marked as deprecated in #32

Papooch commented 2 years ago

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.