Skip to content

lib,fs: use process.emitWarning instead of internal print dep warning#8166

Closed
jasnell wants to merge 4 commits into
nodejs:masterfrom
jasnell:use-emitwarning
Closed

lib,fs: use process.emitWarning instead of internal print dep warning#8166
jasnell wants to merge 4 commits into
nodejs:masterfrom
jasnell:use-emitwarning

Conversation

@jasnell
Copy link
Copy Markdown
Member

@jasnell jasnell commented Aug 18, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

lib, fs

Description of change

This removes uses of the the internal/util printDeprecationMessage() API in favor of
using process.emitWarning(msg, 'DeprecationWarning'). This allows us to remove the
graceful-fs warning in fs providing at least a temporary relief of the logjam that is
occurring there.

The PR also adds a new lint rule that flags uses of printDeprecationMessage()

/cc @ChALkeR @thealphanerd @nodejs/ctc

This is an alternative to #6413. If this lands, We do not have to do the revert.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fs Issues and PRs related to the fs subsystem / file system. lib / src Issues and PRs related to general changes in the lib or src directory. module Issues and PRs related to the module subsystem. timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants