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

fix: support Web API ReadableStream when streamifyResponse:true #1280

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

apalchys
Copy link
Contributor

Fixes #1278

@willfarrell please check my changes and comments in tests.

@@ -1,5 +1,6 @@
/* global awslambda */
import { Readable } from 'node:stream'
import { ReadableStream } from 'node:stream/web'
Copy link
Member

Choose a reason for hiding this comment

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

Oooh, it's using web streams. That's why.

@apalchys apalchys force-pushed the bug/1278-readablestream branch from 4d40882 to 7dd808f Compare February 26, 2025 17:40
@willfarrell willfarrell merged commit 7641859 into middyjs:main Feb 27, 2025
8 of 9 checks passed
@willfarrell
Copy link
Member

Thanks for the PR!

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

Successfully merging this pull request may close these issues.

streamifyResponse does not work with ReadableStream
2 participants