Robert Nagy
Robert Nagy
@mcollina yea, assuming I managed to fix that, do you have any further objections?
> I would prefer if you just used `node:stream` instead of depending on a npm package Why?
@mcollina wdyt?
Make sure we have the latest stream fixes even when not running latest version of Node. The same reason why readable-stream exists in the first place.
> * `node:stream` is always up to date with newest features This is a truth with modification. Only if/when you are running latest version of Node. Otherwise, the opposite should...
> I mostly saw it as "just to bring it outside of nodejs". all those legacy package never updated their own code after a while and those started to lack...
Would be nice if it only used the polyfills when required, i.e. running an older Node version than expected.
So it seems to me like this could be a good idea but would require some more things from readable-streams: - [ ] https://github.com/nodejs/readable-stream/issues/501 - [ ] Only install/use events...
This will be fixed once we move `throwOnError` to an interceptor. https://github.com/nodejs/undici/issues/2835
I think you can be more generic that `onResponse`, maybe `onResult`?