You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
suggestion: re-consider the deprecation of some IO-related APIs #4120
std/io is being deprecated because the Deno.Reader interface and friends are being deprecated from the runtime. However, their read(), write(), and other methods on I/O-related APIs, such as Deno.FsFile and Deno.Conn, are here to stay. These methods staying around justify keeping some IO-related APIs within the Standard Library instead of deprecating them.
To keep the Standard Library and its maintenance lean, I suggest we keep APIs that allow converting Readers and Writers to streams. This will need some more review, but, at first glance, I think we should un-deprecate:
Activity
kt3k commentedon Jan 8, 2024
This makes sense to me as Web Stream doesn't completely cover what Reader(Sync)/Writer(Sync)/Closer does.
kt3k commentedon Jan 8, 2024
@ry What do you think?
iuioiua commentedon Jan 8, 2024
I've created #4128 to see what this could look like.
bartlomieju commentedon Jan 9, 2024
Discussed with the CLI team and everyone agrees that it makes sense to keep these APIs in
deno_std.kt3k commentedon Jan 12, 2024
I often saw people find
BufReaderBufWriteruseful (I haven't used them though). Maybe those are also worth re-introduced?iuioiua commentedon Jan 12, 2024
I think there's an argument for
Buffer, which, IIUC, is more general-purpose with read and write capabilities.Doing so, I think, would cover all the most basic modalities for these I/O interfaces and methods (read, write, copy and store).