| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Nothing but trouble can ever come from it.
There was a problem hiding this comment.
Personally, LGTM. Not sure how much it's used, if at all.
Sorry, something went wrong.
There was a problem hiding this comment.
This should go through a proper deprecation cycle
Sorry, something went wrong.
|
We should just deprecate it in v7, if anyone is actually going to yell about this I'd prefer to know now rather than in 6 months. |
Sorry, something went wrong.
|
@nodejs/ctc ... please weigh in on this! |
Sorry, something went wrong.
@jasnell Did your deprecation policy ever land? If we don't have a deprecation policy, let's get one. If we have a deprecation policy, we should follow it. And if we feel like there are situations where it should be ignored, then we should change it. It shouldn't be treated as an advisory document. It should be treated as a contract with Node.js users. |
Sorry, something went wrong.
|
Nope, not yet, but we need to get going on it. |
Sorry, something went wrong.
|
No traces of NODE_TTY_UNSAFE_ASYNC in js/coffee/ts code from npm, as of 2016-11-24. Also, https://github.com/search?l=JavaScript&q=NODE_TTY_UNSAFE_ASYNC&type=Code doesn't show any real uses. |
Sorry, something went wrong.
|
There is virtually no difference in guaranteed behaviour here, so removing the env var barely qualifies as semver-major in my eyes. |
Sorry, something went wrong.
|
given @ChALkeR's search results, I'm +1 on getting the deprecation into v7 and removing in v8. |
Sorry, something went wrong.
|
I don't think usage of runtime env variables in JS files is a good metric. It's the kind of options that you will more likely find in deployment scripts or config files. That said, I'm also +1 on removing in v8. |
Sorry, something went wrong.
We could "remove" it in a minor, but it would have to be a no-op. |
Sorry, something went wrong.
I’m not sure I understand… is there a difference between making the flag a no-op and just removing any behaviour that was behind it? |
Sorry, something went wrong.
@addaleax Yeah, if we don't parse the flag node will exit if it is passed. :/ |
Sorry, something went wrong.
|
But that's not a flag. It's just an environment variable. |
Sorry, something went wrong.
|
Oh, of course. Whoops >_< |
Sorry, something went wrong.
|
I'm +1 for removing it, I just am unsure if it should be removed in v7.x as opposed to waiting for v8.x. To be on the safe side, I think we should wait until v8.x to remove, but possibly add a runtime deprecation to it in v7.x? We definitely need a way to communicate changes that we want to make like this to the ecosystem without disruption. This one is particularly difficult due to this being something that would probably be more used in services more so than in packages (imo). |
Sorry, something went wrong.
|
I'm +1 on getting the deprecation into v7 and removing in v8. |
Sorry, something went wrong.
|
+1 on removing.
Agreed. |
Sorry, something went wrong.
|
I'd still prefer for this to go through a proper deprecation cycle but I'll switch my objection to a -0. |
Sorry, something went wrong.
|
I would also prefer this to go through a proper deprecation cycle, so I'm -1 on this change. As @evanlucas said better than I could:
|
Sorry, something went wrong.
|
Honestly, adding a runtime deprecation would be so much more disruptive than just dropping this feature completely… And I’m not sure it’s clear to everyone, but just in case, I’ll expand on my comment above: |
Sorry, something went wrong.
| // even though it was originally intended to change in v1.0.2 (Libuv 1.2.1). | ||
| // Ref: https://github.com/nodejs/node/pull/1771#issuecomment-119351671 | ||
| this._handle.setBlocking(process.env.NODE_TTY_UNSAFE_ASYNC !== '1'); | ||
| this._handle.setBlocking(true); |
There was a problem hiding this comment.
@Fishrock123 Why do we do this here, for all TTY streams? Shouldn’t we just do it for process.stderr/process.stdin?
Sorry, something went wrong.
There was a problem hiding this comment.
bump @Fishrock123 … actually came here to comment exactly what I had written above and saw I already did that 😄
Sorry, something went wrong.
|
I agree with @addaleax' last comment, so +1 from me, however I would prefer more if we just did a proper deprecation cycle and I don't see how that could be more disruptive, we just add a check for the env var being set to '1' and use the deprecation message output and proceed as normal. That would be easy enough in 7.x and we could remove in 8.x, so an expedited deprecation cycle really. |
Sorry, something went wrong.
There was a problem hiding this comment.
(Just reaffirming my +1 from further up so it shows in the sidebar. PR needs a rebase though.)
Sorry, something went wrong.
|
@Fishrock123 ... how do you want to proceed on this one? Either way it needs a rebase |
Sorry, something went wrong.
|
Will go ahead and close this in favor of the new PR |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
tty
Description of change
Nothing but trouble can ever come from it.
Refs: #10157 (comment)
Edit: I should mention that anyone can still use setBlocking(false) to get this behavior back if they really desire.