-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
doc/api: clarify the documentation of pipes and zlib objects in them #22354
Conversation
Document how pipes can be chained in readable.pipe(). Document that zlib.Zlib inherits from stream.Transform. Fixes: #22341
@@ -397,6 +397,9 @@ added: v0.5.8 | |||
Not exported by the `zlib` module. It is documented here because it is the base | |||
class of the compressor/decompressor classes. | |||
|
|||
This class inherits from [`stream.Transform`][], allowing `zlib` objects to be |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Reference-style links were new to me.
cc @nodejs/zlib @nodejs/streams |
This comment has been minimized.
This comment has been minimized.
Node.js Collaborators, please, add 👍 here if you approve fast-tracking. |
doc/api/stream.md
Outdated
* Returns: {stream.Writable} making it possible to set up chains of piped | ||
streams | ||
* Returns: {stream.Writable} The *destination*, allowing for a chain of pipes if | ||
it is a [`Duplex`][] stream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add “or a Transform” - a reader might not know that Transform inherits from
Duplex.
Landed in 44d04a8 |
Document how pipes can be chained in readable.pipe(). Document that zlib.Zlib inherits from stream.Transform. PR-URL: #22354 Fixes: #22341 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
Document how pipes can be chained in readable.pipe(). Document that zlib.Zlib inherits from stream.Transform. PR-URL: #22354 Fixes: #22341 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
Document how pipes can be chained in readable.pipe(). Document that zlib.Zlib inherits from stream.Transform. PR-URL: #22354 Fixes: #22341 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
I made a first attempt to change the documentation for #22341. I don't know why
stream.Transform
didn't turn into a link inzlib.md
. Somebody else would need to fix that if you accept this PR.Checklist