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

Breaking: Use cloneable-readable to clone streams - possibly breaking (closes #85) #99

Merged
merged 4 commits into from
Sep 19, 2016

Conversation

phated
Copy link
Member

@phated phated commented Aug 16, 2016

Don't Merge

@mcollina was this what you were thinking for the usage of cloneable-readable in the #85 discussion? I'm not sure if I implemented with the same vision, any guidance or corrections would be really helpful.

@mcollina
Copy link
Contributor

mcollina commented Aug 17, 2016

Yes, exactly. It should be equivalent to the previous approach, but without the memory issues. Plus, it keeps the number of references tracked down.

Let me know how I can help you further, cloneable-readable is an experiment: let me know if you plan to go ahead with that route, I'll keep that up to date and bump it to v1.0.0.

@phated
Copy link
Member Author

phated commented Aug 31, 2016

@mcollina would you have any suggestions on tests I could add to have further coverage on this?


if (isStream(val)) {
val = cloneable(val);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you need this? I would avoid, given you are already wrapping on demand https://github.com/gulpjs/vinyl/pull/99/files#diff-168726dbe96b3ce427e7fedce31bb0bcR85.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forget it, it's needed, I haven't looked at this for a bit of time.

@mcollina
Copy link
Contributor

mcollina commented Sep 1, 2016

I've add a test in #102.

@phated
Copy link
Member Author

phated commented Sep 7, 2016

@mcollina I noticed you are handling the on('data') case, but it doesn't seem to handle on('readable'). Thoughts?

@phated phated modified the milestone: 2.0 Sep 7, 2016
@mcollina
Copy link
Contributor

mcollina commented Sep 8, 2016

@phated just fixed, update to v0.3.0.

@phated phated changed the base branch from readable-stream to master September 13, 2016 01:27
@phated
Copy link
Member Author

phated commented Sep 14, 2016

@mcollina sorry to keep bugging you, but does the test I added at a4c3e14 look correct for readable events? Thanks!

@mcollina
Copy link
Contributor

@phated yes, it's correct.

@mcollina
Copy link
Contributor

This would be a problem, we need to fix it: mcollina/cloneable-readable#1

@phated phated merged commit a6da597 into master Sep 19, 2016
@phated phated deleted the cloneable-readable branch September 19, 2016 23:26
@phated
Copy link
Member Author

phated commented Sep 19, 2016

Thanks for all the help on this @mcollina - I'll be bumping major with this change to get further testing in the wild. Once we feel comfortable with cloneable-readable, I'd like it to get bumped to 1.0

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

Successfully merging this pull request may close these issues.

None yet

2 participants