ksm2/isomorphic-streams

use polyfill fallback for older env?

Opened this issue · 2 comments

What do you think?
use web-streams-polyfill when it isn't avalible?

ksm2 commented

Thanks for your suggestion @jimmywarting ! My original idea was to make code reuse easier between environments which natively support Web Streams like modern browsers and Node.js 16+, however, I do see the appeal in supporting older platforms a as well. Also, I actually added a little polyfill to support async iteration on Chrome.

Do you have a specific platform in mind to support?

I have been in the lookout for something that supports lowest LTS (v14.17) as that is going to be our lowest targeted support for node-fetch@4 when v12 goes EOL in April
We want to change res.body to be a whatwg stream and use built-in AbortController that came in node v14.17