Hi 👋
We have a node service that uses the domain module
We're working on upgrading from version 14 to version 18, and we've noticed that unhandled-rejections is strict since node15. We tried to use the --unhandled-rejections=warn but it doesn't seem to work with domain(Note that our service runs User Code and we don't have control on their code that doesn't handle rejections)
we wanted to ask:
Is there a way to handle unhandled-rejections in Node18 while still using the deprecated domain module?
Is there a way to "mark" unhandled-rejections is such a way that it would be possible to ignore them in the "uncaught-exception"?
what are the alternatives to replace domain module?
Details
Hi 👋 We have a node service that uses the
domain
module We're working on upgrading from version 14 to version 18, and we've noticed thatunhandled-rejections
is strict since node15. We tried to use the--unhandled-rejections=warn
but it doesn't seem to work withdomain
(Note that our service runs User Code and we don't have control on their code that doesn't handle rejections)we wanted to ask:
unhandled-rejections
in Node18 while still using the deprecateddomain
module?unhandled-rejections
is such a way that it would be possible to ignore them in the "uncaught-exception"?domain
module?Node.js version
Node15 +
Example code
No response
Operating system
linux
Scope
runtime
Module and version
domain module