Skip to content

Enforce that response streams are always Stream.Readable#4349

Merged
devinivy merged 2 commits intov21from
response-readable-stream
May 7, 2022
Merged

Enforce that response streams are always Stream.Readable#4349
devinivy merged 2 commits intov21from
response-readable-stream

Conversation

@devinivy
Copy link
Member

Dropping support for old/non-standard response streams. If you want to use one of these, you can try repairing it into a Stream.Readable by piping it through a Stream.PassThrough. I ended-up keeping the old stream duck-typing logic around for the purpose of helping users catch any issues when moving from v20 to v21, rather than treating legacy streams as an object response.

Resolves #4293

@devinivy devinivy added the breaking changes Change that can breaking existing code label Apr 25, 2022
@devinivy devinivy added this to the 21.0.0 milestone Apr 25, 2022
@devinivy
Copy link
Member Author

The failure appearing on node v12 will be resolved once #4346 lands and we stop supporting node v12— it's a syntax issue. I think it's alright to look past this for review purposes.

@devinivy devinivy force-pushed the response-readable-stream branch from c3aae62 to 369f4d4 Compare May 1, 2022 05:00
Copy link
Member

@Nargonath Nargonath left a comment

Choose a reason for hiding this comment

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

Thanks for the work @devinivy

@devinivy devinivy merged commit 0bd3273 into v21 May 7, 2022
@devinivy devinivy deleted the response-readable-stream branch May 7, 2022 01:49
@devinivy devinivy mentioned this pull request Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking changes Change that can breaking existing code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments