doc: add notes about non-conforming streams#29895
doc: add notes about non-conforming streams#29895ronag wants to merge 8 commits intonodejs:masterfrom
Conversation
6c7173d to
7ce4453
Compare
BridgeAR
left a comment
There was a problem hiding this comment.
I am in general fine with the note but isn't this a general problem we have? There are still lots of "internal" APIs used and or overridden in the wild.
We also do not have "internal" events, so it's even more difficult to prevent any such usage.
Yes, nothing we can do about that... but we can still discourage it so future users are able to implement streams as correctly as possible?
What do you mean? I don't think most people that override public methods are aware of the problems it might cause. |
|
typo in commit message: s/confirming/conforming/ |
|
Text looks fine to me but would prefer reviews from @nodejs/streams to mine. |
doc/api/stream.md
Outdated
There was a problem hiding this comment.
We also do not have "internal" events, so it's even more difficult to prevent any such usage.
I think that @BridgeAR was referring to events like 'data', 'finish', 'end', 'close', etc. not only 'error'.
There was a problem hiding this comment.
I see. Not sure what to do with that though? Should I add "internal events" to the paragraph?
a963259 to
e2207eb
Compare
3c45c5a to
1ac15d1
Compare
|
Maybe a quick review from @mcollina? |
Co-Authored-By: Ruben Bridgewater <ruben@bridgewater.de>
|
@Trott: I believe this can land? |
|
Maybe @lundibundi & @yorkie has some last minute feedback? |
9a3f364 to
fdba619
Compare
|
I left a bunch of small suggestions, but none of them are blocking. Lite CI: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/4087/ |
Co-Authored-By: Rich Trott <rtrott@gmail.com>
PR-URL: #29895 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
|
Landed in d67c377 |
PR-URL: #29895 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #29895 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #29895 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
A lot of streams in the ecosystem are overriding public stream methods that lead to very subtle and hard to find bugs. Discourage this usage and encourage using the existing framework.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes