Uh oh!
There was an error while loading. Please reload this page.
doc: Add Documentation Deprecation for process._tickCallback - #29781
doc: Add Documentation Deprecation for process._tickCallback#29781lholmquist wants to merge 4 commits into
Conversation
jasnell
commented
Sep 30, 2019
@nodejs/tsc ... any objections to landing this documentation-only deprecation as a semver-minor? |
Trott
commented
Sep 30, 2019
I appreciate the ping and feel free to do that in the future if you want, but FYI, no need for TSC approval for landing doc-only deprecations in a minor release. As it says in https://github.com/nodejs/node/blob/2487f390307b28be8c2d1d137f483900937237eb/COLLABORATOR_GUIDE.md#deprecations:
(It's a bit buried in there, suggesting that there might be too much text or something, but it's there!) |
Trott
commented
Oct 1, 2019
lholmquist
commented
Oct 1, 2019
sort of a side note here. I wonder if that deprecation section should be broken out into its own doc under |
jasnell
commented
Oct 1, 2019
Yep, I believe I wrote that particular section. Was just a courtesy ping. |
benjamingr
left a comment
There was a problem hiding this comment.
I would prefer adding a warning about why and it being risky.
Yep, I'm definitely aware that you wrote the original text. The reason I mentioned it is because it's changed from when you wrote it to remove the semver-major/semver-minor choice. But I didn't want to point that out for some reason. Seemed kind of discourteous somehow but I can't really explain why I was feeling that. Maybe I'm just strange. Anyway... Original text:
Current text:
Speaking of which, |
lholmquist
commented
Oct 1, 2019
@benjamingr i would also like to add a "pending-deprecation" warning if the flag was specificed, but i wasn't sure how to get access to that flag in the file it should happen in, https://github.com/nodejs/node/blob/master/lib/internal/bootstrap/node.js#L287 |
addaleax
commented
Oct 1, 2019
@lholmquist That sounds good! In that file, CLI flags aren’t available yet (because the results have to be identical across Node.js versions). You can look for the |
lholmquist
commented
Oct 1, 2019
@addaleax thanks. I'll take a look |
lholmquist
commented
Oct 1, 2019
@addaleax thanks! that did it |
nodejs-github-bot
commented
Oct 1, 2019
Trott
commented
Oct 2, 2019
(Added |
Trott
commented
Oct 2, 2019
Landed in 83418b5 |
This change also supports --pending-deprecation for the new deprecation. PR-URL: #29781 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
vsemozhetbyt
commented
Oct 3, 2019
Do we replace DEP0XXX on landing? |
richardlau
commented
Oct 3, 2019
In this case #29820 is assigning a code. I had thought that our process was to assign on landing, but I just checked and it turns out our documented process is for it to happen on release: https://github.com/nodejs/node/blob/e2dcbf1c3231513c38151d729f180a54ea902da9/doc/releases.md#step-3-update-any-replaceme-and-dep00xx-tags-in-the-docs In any case we have checks in the makefile so release builds will fail if any instances of Lines 937 to 940 in 70c2444 |
BridgeAR
commented
Oct 3, 2019
@richardlau it is documented that it should happen while landing but that's at the very end of the paragraph.
So it's mainly a safeguard for the release team. |
richardlau
commented
Oct 3, 2019
🤦♂ You're right, I didn't read far enough. It's late. |
This change also supports --pending-deprecation for the new deprecation. PR-URL: #29781 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Notable changes: * build: * Add `--force-context-aware` flag to prevent usage of native node addons that aren't context aware #29631 * deprecations: * Add documentation-only deprecation for `process._tickCallback()` #29781 * esm: * Using JSON modules is experimental again #29754 * fs: * Introduce `opendir()` and `fs.Dir` to iterate through directories #29349 * process: * Add source-map support to stack traces by using `--source-map-support` #29564 * tls: * Honor `pauseOnConnect` option #29635 * Add option for private keys for OpenSSL engines #28973 PR-URL: #29919
Notable changes: * build: * Add `--force-context-aware` flag to prevent usage of native node addons that aren't context aware #29631 * deprecations: * Add documentation-only deprecation for `process._tickCallback()` #29781 * esm: * Using JSON modules is experimental again #29754 * fs: * Introduce `opendir()` and `fs.Dir` to iterate through directories #29349 * process: * Add source-map support to stack traces by using `--source-map-support` #29564 * tls: * Honor `pauseOnConnect` option #29635 * Add option for private keys for OpenSSL engines #28973 PR-URL: #29919
Notable changes: * build: * Add `--force-context-aware` flag to prevent usage of native node addons that aren't context aware #29631 * deprecations: * Add documentation-only deprecation for `process._tickCallback()` #29781 * esm: * Using JSON modules is experimental again #29754 * fs: * Introduce `opendir()` and `fs.Dir` to iterate through directories #29349 * process: * Add source-map support to stack traces by using `--source-map-support` #29564 * tls: * Honor `pauseOnConnect` option #29635 * Add option for private keys for OpenSSL engines #28973 PR-URL: #29919
Related to #29671.
This starts the documentation deprecation of
process._tickCallbackIt was suggested that
--pending-deprecationcould be enabled for this, however, i'm not really sure how to get the value of the--pending-deprecationflag. I've looked at previous commits that do this, but the way they do it, doesn't seem to work in the file that this deprecation needs to happen in. So any guidance there would be great.Since this API was never documented in the process docs, i didn't add any docs there. If someone feels strongly that docs should be added(and label as deprecated), then i'm open to that.
A remaining question is if this API should be replaced by the suggestion in the other PR, #29671
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes