-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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).
CI is all green. @chrisdickinson I've replaced the additional conditional used in |
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 <[email protected]>
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 <[email protected]>
@mscdex ... how would you rate the semver'iness of this change? Should this go into v4? |
Marking this as lts-watch for v4 but please do not land in |
@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 |
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 <[email protected]>
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()
.