nodejs / readable-stream

Node-core streams for userland
https://nodejs.org/api/stream.html
Other
1.03k stars 225 forks source link

v4 npm release? #510

Closed SourceBoy closed 1 year ago

SourceBoy commented 1 year ago

Hi, is there a roadmap for the v4 release? We have a need to use the latest stream.Readable.fromWeb and toWeb to convert the 2 different implementations of streams.

Use case: Web stream -> Node stream -> Processing -> Web stream

mcollina commented 1 year ago

Note that fromWeb and toWeb will likely be removed soon because this lacks the WHATWG stream implementation: #506

SourceBoy commented 1 year ago

So they won't exist in v4 either? Will they be brought back if/once the ones from Node core is no longer experimental?

mcollina commented 1 year ago

It really requires someone to drive the work for supporting those outside of core. Ideally we want to support the native implementation of WHATWG Streams on every platform.

SourceBoy commented 1 year ago

Thanks. For anyone looking to convert the 2 different streams bidirectionally, here are 2 utility functions: https://gist.github.com/SourceBoy/056d6ed2ffae44dfcdda12b6668cc7d0