yoggyd
yoggyd•14mo ago

how to use Untar without deprecated functions?

Untar from std/archives requires an instance of Reader - apparently most functions return some ReadableStream though. I only found a function in std/streams to convert a ReadableStream to a Reader. That function is deprecated though and will be removed in 1.0.0. What can I use instead? Or will the Untar class take a ReadableStream in 1.0.0? EDIT: the deprecated function: https://deno.land/std@0.203.0/streams/mod.ts?s=readerFromStreamReader the Untar class: https://deno.land/std@0.203.0/archive/mod.ts?s=Untar
1 Reply
Deno AI Helper
Deno AI Helper•14mo ago
The documentation states that the readerFromStreamReader function from the std/streams module is indeed deprecated. However, it doesn't provide a direct alternative for this function. As for the Untar class, the documentation doesn't mention any upcoming changes to its functionality or the types of arguments it accepts. Currently, it requires an instance of Reader. Without a clear alternative provided in the documentation, it's hard to provide a definitive answer. It might be best to keep an eye on the Deno release notes for updates on this issue. 🦕