doc: add documentation for deprecation properties#16539
doc: add documentation for deprecation properties#16539maclover7 wants to merge 1 commit intonodejs:masterfrom maclover7:jm-doc-process
Conversation
|
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 |
doc/api/process.md
Outdated
There was a problem hiding this comment.
A nit: --trace-deprecation -> --throw-deprecation
doc/api/process.md
Outdated
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. |
|
@refack It seems we cannot just remove them as they have been documented in |
|
BTW, thank you for the PR and digging into the history! |
Like |
Hence my ambivalence about fully embracing those flags as 1st class API citizens 😕 |
|
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. |
|
@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 :( |
|
@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 |
doc/api/process.md
Outdated
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".
doc/api/process.md
Outdated
There was a problem hiding this comment.
Same comment here and below.
|
updated @cjihrig @apapirovski |
|
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.
|
Going to open a followup issue to discuss possible deprecation/removal of the properties. |
PR-URL: #16539 Fixes: #16394 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #16539 Fixes: #16394 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #16539 Fixes: #16394 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #16539 Fixes: #16394 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
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