deno-docs icon indicating copy to clipboard operation
deno-docs copied to clipboard

Code from section "Reading a file" warns "deprecation"

Open silvioprog opened this issue 3 years ago • 3 comments

The example uses import { copy } from "https://deno.land/[email protected]/streams/conversion.ts";, reporting the following warning:

@deprecated
(will be removed after 0.169.0) Import from std/streams/copy.ts instead.

It would be nice to upgrade it to use something like import { copy } from "https://deno.land/[email protected]/streams/copy.ts";.

silvioprog avatar Dec 04 '22 13:12 silvioprog

Or we can do await file.readable.pipeTo(Deno.stdout.writable, { preventClose: true }); without std dependency

kt3k avatar Dec 14 '22 07:12 kt3k

This is removed, but still appears in the docs - need to cull

kwhinnery avatar Sep 15 '23 21:09 kwhinnery

is this still appears in somewhere? I would be happy to help if you let me know the location.

hashrock avatar Sep 25 '23 03:09 hashrock