tracking: Deno streams to web streams conversion
There is also the separate effort to replace any code that uses various deno ns classes that implement Deno.Reader & Deno.Writer that still uses the read & write functions over the readable & writable properties.
io
-
[x] buffer.ts
- [x]
Buffer(#1970) - [x]
BufReader: replaced byReadableStreamBYOBReader.read(, {atLeast}) - [x]
BufWriter: unnecessary (doesnt make much sense for web streams) - [x]
readDelim: replaced bystreams/delimiter.ts'sDelimiterStream - [x]
readStringDelim(#2006) - [x]
readLines: replaced bystreams/delimiter.ts'sTextLineStream
- [x]
-
[x] files.ts
- [x]
readRangereplaced bystreams/byte_slice_stream.ts'sByteSliceStream
- [x]
-
[x] readers.ts
- [x]
StringReader: replaced byTextDecoderStream - [x]
MultiReader: replaced bystreams/merge.ts - [x]
LimitedReader(#2007)
- [x]
-
[x] util.ts Do we even want these?
- [x]
copyN - [x]
readShort - [x]
readInt - [x]
readLong
- [x]
-
[x] writers.ts unnecessary.
archive
- [ ]
tar(https://github.com/denoland/deno_std/pull/1985)
encoding
-
[x] binary.ts
- [x]
readExact: replaced byReadableStreamBYOBReader.read(, {atLeast}) - [x]
getNBytes: unecessary - [x]
readVarnum: doesnt this somewhat clash withio/util.tsfunctions? - [x]
readVarbig - [x]
writeVarnum - [x]
writeVarbig
- [x]
-
[x] csv.ts
- [x] uses
BufReader(#1993, #2491)
- [x] uses
log
- [x] handler.ts https://github.com/denoland/deno_std/pull/4021
- [x]
WriterHandler - [x]
RotatingFileHandler
- [x]
mime
- [x] ~~
multipart~~ mime was removed in #2336
textproto
not sure what to do with this one. Update: textproto is removed in #2757
please let me know if I missed any.
I'll give readRange from files.ts a crack, if that's still something we want. I'm thinking RangedTransformStream.
Also, update:
std/mimeis deprecatedstd/textprotois deprecated- Streams-based CSV parsing is implemented
io
[x] buffer.ts
- [x]
Buffer(feat: streams basedBuffer#1970)- [x]
BufReader: replaced byReadableStreamBYOBReader.read(, {atLeast})- [x]
BufWriter: unnecessary (doesnt make much sense for web streams)- [x]
readDelim: replaced bystreams/delimiter.ts'sDelimiterStream- [x]
readStringDelim(feat(streams): TextDelimiterStream #2006)- [x]
readLines: replaced bystreams/delimiter.ts'sTextLineStream
Is the Deno team in favour of deprecating these APIs?
@crowlKats could you update this issue according to iuioiua's comment?
CC @crowlKats
@iuioiua this seems already to have been updated by @kt3k
files.ts
- [ ]
readRange
This is done in streams/ByteSliceStream.
Should we aim to have this issue complete by v1?
That would be nice.
Update: copyN(), readShort(), readInt() and readLong() are deprecated, and can be ticked off. This leaves std/archive and std/log.
std/log has been addressed in https://github.com/denoland/deno_std/pull/4021
Closing as this work has essentially been completed. The remaining work on @std/archive can be tracked in #1658. Thank you to all that helped!