Uh oh!
There was an error while loading. Please reload this page.
streams: update .readable/.writable to false - #4083
Conversation
These properties were initially used to determine stream status back in node v0.8 and earlier. Since streams2 however, these properties were *always* true, which can be misleading for example if you are trying to immediately determine whether a Writable stream is still writable or not (to avoid a "write after end" exception).
mscdex
commented
Dec 1, 2015
CI is all green. @chrisdickinson I've replaced the additional conditional used in |
chrisdickinson
commented
Dec 1, 2015
LGTM! |
These properties were initially used to determine stream status back in node v0.8 and earlier. Since streams2 however, these properties were *always* true, which can be misleading for example if you are trying to immediately determine whether a Writable stream is still writable or not (to avoid a "write after end" exception). PR-URL: #4083 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
mscdex
commented
Dec 2, 2015
Landed in cc0342a. |
These properties were initially used to determine stream status back in node v0.8 and earlier. Since streams2 however, these properties were *always* true, which can be misleading for example if you are trying to immediately determine whether a Writable stream is still writable or not (to avoid a "write after end" exception). PR-URL: #4083 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
jasnell
commented
Dec 17, 2015
@mscdex ... how would you rate the semver'iness of this change? Should this go into v4? |
jasnell
commented
Dec 17, 2015
Marking this as lts-watch for v4 but please do not land in |
mscdex
commented
Dec 17, 2015
@jasnell I would say no for v4 as it's more like a semver-major since it changes property values of existing properties (for readables it sets |
MylesBorins
commented
Dec 29, 2015
adding semver-major tag and removing LTS watch. Please feel free to update if I was incorrect in doing so edit: if we do add it back to LTS we need to add the tag back to #4141 as well |
These properties were initially used to determine stream status back in node v0.8 and earlier. Since streams2 however, these properties were *always* true, which can be misleading for example if you are trying to immediately determine whether a Writable stream is still writable or not (to avoid a "write after end" exception). PR-URL: nodejs#4083 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
These properties were initially used to determine stream status back in node v0.8 and earlier. Since streams2 however, these properties were always true, which can be misleading for example if you are trying to immediately determine whether a Writable stream is still writable or not (to avoid a "write after
end" exception).
This is #1217 targeting the master branch and with a couple of minor changes to fix a lint error and to help address a concern about
.on().