mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
5de3cf099c
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. PR-URL: https://github.com/nodejs/node/pull/10116 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Michal Zasso <targos@protonmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
13 lines
433 B
JavaScript
13 lines
433 B
JavaScript
'use strict';
|
|
|
|
// This module is deprecated in documentation only. Users should be directed
|
|
// towards using the specific constants exposed by the individual modules on
|
|
// which they are most relevant.
|
|
// Deprecation Code: DEP0008
|
|
const constants = process.binding('constants');
|
|
Object.assign(exports,
|
|
constants.os.errno,
|
|
constants.os.signals,
|
|
constants.fs,
|
|
constants.crypto);
|