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

Added support for abstract streams #299

Merged
merged 5 commits into from Aug 31, 2017
Merged

Added support for abstract streams #299

merged 5 commits into from Aug 31, 2017

Conversation

mikeal
Copy link
Contributor

@mikeal mikeal commented Aug 24, 2017

An instanceof check alone isn't quite enough for stream validation because it could also be an abstract stream conforming to the readable stream API.

Copy link
Member

@timneutkens timneutkens left a comment

Choose a reason for hiding this comment

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

Interesting! Looks 👌

@leo leo changed the title feat(streams): Support abstract streams not inherited from Stream. Added support for abstract streams not inherited from Stream Aug 26, 2017
@leo
Copy link
Contributor

leo commented Aug 26, 2017

@mikeal Looks wonderful! 😊

Would you mind adding a test for this so that our coverage stays at 100%?

@floatdrop
Copy link
Contributor

@leo @timneutkens maybe it is better to pick up is-stream module for this?

@leo leo changed the title Added support for abstract streams not inherited from Stream Added support for abstract streams Aug 31, 2017
@leo leo merged commit 080b159 into vercel:master Aug 31, 2017
@leo
Copy link
Contributor

leo commented Aug 31, 2017

Now taking advantage of is-stream. 🚀

Released in 8.0.4. Thank you, @mikeal! ❤️

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

4 participants