Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Conversation

@zertosh
Copy link
Contributor

@zertosh zertosh commented Jan 27, 2014

Emitting data with through2 doesn't actually pass the data to the next stream. You have to push it since these are Steams2. This fix passes the buffered data in the next stream. The test I added would've passed before the through to through2 upgrade.

@yocontra
Copy link
Member

Wow this one slipped through the cracks - what's wrong with the existing test that it passed with this being so broken?

yocontra added a commit that referenced this pull request Jan 27, 2014
Fixed buffer bug from through2 upgrade
@yocontra yocontra merged commit c0b2831 into gulpjs:master Jan 27, 2014
@zertosh
Copy link
Contributor Author

zertosh commented Jan 27, 2014

The existing test just checked for a data event, which is a valid event like any other, but doesn't actually pass data to the next pipe. I guess it's one of those Streams vs Streams2 quirks.

I'm kinda needing this for a project. Think you can push out an NPM version bump? Thanks!

@yocontra
Copy link
Member

2.2.13

@zertosh zertosh deleted the buffer_through2_fix branch January 28, 2014 00:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants