Open tinchoz49 opened 2 years ago
Curious, what is your usecase for unpipe? I haven't found any, since is why I haven't added it, but can be convinced
Yes, I never use it until today.
I'm working on a re-implementation of aws-lambda-fastify and I'm building a Readable Stream with streamx to simulate the http.IncomingMessage.
So the tests are not passing because of this: https://github.com/fastify/fastify-multipart/blob/master/index.js#L500 (first time I saw someone using unpipe)
btw I know that I can just extend from http.IncomingMessage and use the node Readable stream but with streamx I get a performance improve of almost 20k of req/seq more. The stream state lifecycle in streamx is more simple and faster.
I don't like the unpipe but maybe we can added only for compatibility support.
Okay nice! I can be convinced :)
unpipe
could be added in order to fix issues like this when working with webtorrent
and fluent-ffmpeg
. Otherwise I have to monkey patch this object.
I don't like the unpipe but maybe we can added only for compatibility support.
Is there a better/different implementation/option for unpipe? I am using it in one of my projects and it is preventing me from upgrading to vinyl-fs 4.
Is there a better/different implementation/option for unpipe? I am using it in one of my projects and it is preventing me from upgrading to vinyl-fs 4.
Sounds like your code is just written incorrectly.
Is there a better/different implementation/option for unpipe? I am using it in one of my projects and it is preventing me from upgrading to vinyl-fs 4.
Sounds like your code is just written incorrectly.
How so? unpipe is a valid stream method.
Hi @mafintosh, this is my first attempt to add the
unpipe
method. https://github.com/streamxorg/streamx/issues/11