-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
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.
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
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 there
Proposal:
-
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
marco-ippolito, lpinca, sindresorhus, MoLow, dnalborczyk and 1 more
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.