David
David10mo 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
iuioiua10mo 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
DavidOP10mo ago
Thank you for your answer! :deno_thankyou:
Esente
Esente10mo ago
Are they staying for good, or should we still try to move to ReadableStream?
iuioiua
iuioiua10mo ago
They’re staying around for the foreseeable future. I’d try move to the Streams API if you care about web compatibility.

Did you find this page helpful?