summaryrefslogtreecommitdiff
path: root/cli/js/io.ts
AgeCommit message (Collapse)Author
2020-04-28fix: bug in Deno.copy (#4977)Marcos Casagrande
2020-04-28BREAKING: Remove Deno.EOF, use null instead (#4953)Nayeem Rahman
2020-04-28refactor: rename sync io interfaces (#4945)Bartek Iwańczuk
This commit renames sync io interfaces: * SyncReader -> ReaderSync * SyncWriter -> WriterSync * SyncSeeker -> SeekerSync
2020-04-28refactor: remove combined io interface like ReadCloser (#4944)Bartek Iwańczuk
This commit removes "combined" interfaces from cli/js/io.ts; in the like of "ReadCloser", "WriteCloser" in favor of using intersections of concrete interfaces.
2020-04-28refactor: rename SeekMode variants to camelCase and stabilize (#4946)Bartek Iwańczuk
2020-04-26Add buffer size argument to copy (#4907)Marcos Casagrande
2020-04-25BREAKING CHANGE: change order of args in Deno.copy() (#4885)Bartek Iwańczuk
2020-04-25stabilize Deno.iter() and Deno.iterSync() (#4890)Bartek Iwańczuk
2020-04-22BREAKING CHANGE: rename Deno.toAsyncIterator() to Deno.iter() (#4848)Bartek Iwańczuk
* rename Deno.toAsyncIterator() to Deno.iter() * adds sync version Deno.iterSync() * adds optional second argument for buffer size
2020-03-28Update to Prettier 2 and use ES Private Fields (#4498)Kitson Kelly
2020-03-13Remove doc strings from cli/js TS files (#4329)crowlKats
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-03-02seek should return cursor position (#4211)bartOssh
2020-03-02Cleanup comments and internal variables (#4205)dubiousjim
2020-02-07toAsyncIterable: Remove unnecessary EOF check (#3914)Brad Dunbar
In denoland/deno#2335 a conditional was added to make sure toAsyncIterator didn't skip chunks because the reader returned data and EOF in a single call, fixing #2330. Later, in denoland/deno#2591, the `Reader` interface changed to `Promise<number | EOF>`. Since the reader no longer returns data and EOF in a single call, this conditional is not necessary. We can just return `{ done: true }` when we get `EOF`. Co-authored-by: Arun Srinivasan <rulfzid@gmail.com> Co-authored-by: Arun Srinivasan <rulfzid@gmail.com>
2020-01-02Happy new year! (#3578)Ry Dahl
2019-12-28Fix: allow reading into a 0-length array (#3329)Alexandre Szymocha
2019-10-31Make EOF unique symbol (#3244)Yoshiya Hinosawa
2019-10-04Merge deno_cli_snapshots into deno_cli (#3064)Ryan Dahl