Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process: Add code to warnings, assign codes to deprecations #10116

Closed
wants to merge 3 commits into from

Commits on Jan 30, 2017

  1. process: add optional code to warnings + type checking

    Add the ability to assign an optional code to process warnings +
    add additional type checking to ensure that names and codes can
    only be strings.
    jasnell committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    81db4e8 View commit details
    Browse the repository at this point in the history
  2. process: add --redirect-warnings command line argument

    The --redirect-warnings command line argument allows process warnings
    to be written to a specified file rather than printed to stderr.
    
    Also adds an equivalent NODE_REDIRECT_WARNINGS environment variable.
    
    If the specified file cannot be opened or written to for any reason,
    the argument is ignored and the warning is printed to stderr.
    
    If the file already exists, it will be appended to.
    jasnell committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    be11fb4 View commit details
    Browse the repository at this point in the history
  3. lib: add static identifier codes for all deprecations

    Assigns a static identifier code to all runtime and documentation
    only deprecations. The identifier code is included in the emitted
    DeprecationWarning.
    
    Also adds a deprecations.md to the API docs to provide a central
    location where deprecation codes can be referenced and explained.
    jasnell committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    ab50285 View commit details
    Browse the repository at this point in the history