Migrate from the Node to the Web ReadableStream by dlarocque · Pull Request #8410 · firebase/firebase-js-sdk (original) (raw)
In the past, we used node-fetch, which used the NodeJS.ReadableStream interface for streaming requests. When we moved to undici (#7705), we began using the Web ReadableStream interface under the hood, but did not update our usage of the interface, so users began seeing errors when using getStream (#8303).
To fix this issue, we need to migrate from the Node to the Web ReadableStream interface.
This will help us in the future when we migrate to native Node fetch, since that also uses the Web ReadableStream interface.
Fixes #8303