David
David8mo ago

`.read()` method in `Deno.Conn` or `Deno.FsFile` in Deno 2.0

After Deno.Reader is removed in v2.0, will we still be able to use .read() method in Deno.Conn or Deno.FsFile?
4 Replies
iuioiua
iuioiua8mo ago
Yep! The interface is being moved to std/io but the methods are staying. There’s been a little confusion around this so you’re not the only one 😅
David
David8mo ago
Thank you for your answer! :deno_thankyou:
Esente
Esente8mo ago
Are they staying for good, or should we still try to move to ReadableStream?
iuioiua
iuioiua8mo ago
They’re staying around for the foreseeable future. I’d try move to the Streams API if you care about web compatibility.