Open
Description
-
require('domain')
was deprecated 7.5 years ago -
modern code uses
AbortController
-
bug tracker activity suggests it's not in active use (or it works so well people never hit bugs0 - unlikely!)
-
the supporting infrastructure for
domain
is a kind of technical debt that also has performance implications1; it's not as bad as it used to be but it's still there
Proposal:
-
remove it for good in the next major release
-
leave a stub
lib/domain.js
that prints a warning, a la thesys
module.
0 the prime reason for deprecation was because it was so buggy due to part poor design, part poor implementation
1 at one time it was so bad that if even one module imported domain
, whole-program performance tanked