-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Fully deprecate require('constants') #26012
Copy link
Copy link
Closed
Labels
deprecationsIssues and PRs related to deprecations.Issues and PRs related to deprecations.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.
Metadata
Metadata
Assignees
Labels
deprecationsIssues and PRs related to deprecations.Issues and PRs related to deprecations.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.
Using lerna, I defined a local package named
constants. I then tried to consume it in another lerna package via the statementconst constants = require('constants');Unfortunately, this pulls in the node.js internal constants module instead of my own package. This API is marked as a documentation-only deprecation, DEP0008. However, since it's a documentation-only deprecation, the node.js runtime is still reserving this module name for its own use. It would be great if this package were fully deprecated and the module name became available for consumers.