Skip to content
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

deprecate stream1#pipe() #114

Closed
jonathanong opened this issue Feb 23, 2015 · 14 comments
Closed

deprecate stream1#pipe() #114

jonathanong opened this issue Feb 23, 2015 · 14 comments

Comments

@jonathanong
Copy link
Contributor

i don't think it should be supported or used anymore and i want to know when any module i use uses a streams1 implementation (so i can stop using it). everything should be streams2+.

i'm just looking for a deprecation message if it's used.

what do you guys think?

@nfroidure
Copy link

Would be a good thing imo. Stream1 based libs should upgrade or die.

@domenic
Copy link

domenic commented Feb 23, 2015

I still use through a lot :-/

@rvagg
Copy link
Member

rvagg commented Feb 23, 2015

go through2 then

@domenic
Copy link

domenic commented Feb 23, 2015

through2 drags along readable-stream, which I don't want (since I only support io.js)

@rvagg
Copy link
Member

rvagg commented Feb 23, 2015

http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html

you should still be using readable-stream because you have better ability to pin to a specific implementation regardless of io.js version being used with your libs

@domenic
Copy link

domenic commented Feb 23, 2015

Yeah, I disagree with that post, so shrug.

@chrisdickinson
Copy link
Contributor

How much code would we break, as of streams3, if we simply made Readable the new Stream base class? Or otherwise presented the old API as implemented on-top-of Readable?

Looks like this isn't feasible.

@rvagg
Copy link
Member

rvagg commented Feb 24, 2015

I'm pretty sure Browserify wouldn't be happy

@mikeal
Copy link

mikeal commented Feb 24, 2015

I'm pretty sure Browserify wouldn't be happy

There should be a way to test that :)

@isaacs
Copy link
Contributor

isaacs commented Feb 25, 2015

Making readable the new base class makes all writables duplexes, which would be weird.

I'm ok with soft deprecation, I guess.

@ghost
Copy link

ghost commented Feb 25, 2015

browserify is more complicated because readable-stream isn't what you get when you require('stream'). It uses this project to shim out streams 1: https://github.com/substack/stream-browserify

@rvagg
Copy link
Member

rvagg commented Feb 25, 2015

my point on browserify being that if we made it the base 'stream' return type then browserify would have to bundle readable-stream if you ever did any require('stream') which might suck a bit

@nfroidure
Copy link

+1 on Stream base class not being Readable and simply stay abstract.

@mcollina
Copy link
Member

Closing because old and probably solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants