Uh oh!
There was an error while loading. Please reload this page.
doc: add documentation for deprecation properties - #16539
Conversation
refack
commented
Oct 27, 2017
Code LGTM, but the question is should they be documented or removed. AFAICT they were exposed as a rough mechanism of communicating the CLI flags to JS, they are not necessarily part of a succinct API. Alternatively they (and other CLI flag mappings) could go behind a new |
There was a problem hiding this comment.
A nit: --trace-deprecation -> --throw-deprecation
There was a problem hiding this comment.
It seems this should be placed after the process.title, ABC-wise.
There was a problem hiding this comment.
my bad -- don't know why I thought a ### about IO was a ## 😞
I am not sure about some things.
console.log(process.noDeprecation,process.throwDeprecation,process.traceDeprecation);undefined undefined undefined
Let's see what other collaborators think. |
vsemozhetbyt
commented
Oct 27, 2017
@refack It seems we cannot just remove them as they have been documented in |
vsemozhetbyt
commented
Oct 27, 2017
BTW, thank you for the PR and digging into the history! |
addaleax
commented
Oct 27, 2017
Like |
refack
commented
Oct 27, 2017
Hence my ambivalence about fully embracing those flags as 1st class API citizens 😕 |
BridgeAR
commented
Nov 23, 2017
I personally think it would be best to deprecate these instead of documenting them. At the same time we can rephrase the util part where they are mentioned. |
maclover7
commented
Nov 28, 2017
@BridgeAR Even if the props are deprecated publicly, they are still used within parts of Node core (like lib/internal/process/warning.js for example), so I'm not sold on what the maintenance benefit would be for doing that :( |
BridgeAR
commented
Dec 7, 2017
@maclover7 even if we use some internally it does not mean users should always use those things as well. That is what |
Please document and standardize these properties. I want to use Edit: See also #17871 |
There was a problem hiding this comment.
Possibly change "returns if" to "indicates whether or not"
There was a problem hiding this comment.
I would go with just "indicates whether", without the "or not".
maclover7
commented
Dec 31, 2017
updated @cjihrig@apapirovski |
maclover7
commented
Jan 2, 2018
ping @cjihrig@apapirovski would like to try and land this |
cjihrig
left a comment
There was a problem hiding this comment.
The changes themselves look fine, but there were a few comments by others that brought up the alternative of deprecating and removing these properties.
maclover7
commented
Jan 2, 2018
maclover7
commented
Jan 2, 2018
Going to open a followup issue to discuss possible deprecation/removal of the properties. |
Refs: #16394
Relevant commit history:
node: Add --throw-deprecationAdd --no-deprecation and --trace-deprecation flagscc @vsemozhetbyt, I tried to avoid duplicating tons of documentation by linking out to other sections of the process docs, would love your thoughts :)
Checklist
Affected core subsystem(s)
doc