-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
discuss: remove domain moduleΒ #45824
Copy link
Copy link
Open
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.domainIssues and PRs related to the domain subsystem.Issues and PRs related to the domain subsystem.
Metadata
Metadata
Assignees
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.domainIssues and PRs related to the domain subsystem.Issues and PRs related to the domain subsystem.
require('domain')was deprecated 7.5 years agomodern code uses
AbortControllerbug tracker activity suggests it's not in active use (or it works so well people never hit bugs0 - unlikely!)
the supporting infrastructure for
domainis a kind of technical debt that also has performance implications1; it's not as bad as it used to be but it's still thereProposal:
remove it for good in the next major release
leave a stub
lib/domain.jsthat prints a warning, a la thesysmodule.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