summaryrefslogtreecommitdiff
path: root/js/files.ts
AgeCommit message (Collapse)Author
2019-10-04Merge deno_cli_snapshots into deno_cli (#3064)Ryan Dahl
2019-09-07Update @typescript-eslint/* to v2.1.0 (#2878)Yoshiya Hinosawa
2019-09-02Refactor snapshot build (#2825)Ryan Dahl
Instead of using core/snapshot_creator.rs, instead two crates are introduced which allow building the snapshot during build.rs. Rollup is removed and replaced with our own bundler. This removes the Node build dependency. Modules in //js now use Deno-style imports with file extensions, rather than Node style extensionless imports. This improves incremental build time when changes are made to //js files by about 40 seconds.
2019-08-26Port readSync/writeSync ops to minimalRyan Dahl
This removes dispatch_flatbuffers as it is now unused. There are still a few places where msg_generated is used: ErrorKind and MediaType. These will be dealt with later.
2019-08-26bring back json ops (#2815)Bartek Iwańczuk
2019-08-24Revert json ops (#2814)Ryan Dahl
* Revert "port more ops to JSON (#2809)" This reverts commit 137f33733d365026903d40e7cde6e34ac6c36dcf. * Revert "port ops to JSON: compiler, errors, fetch, files (#2804)" This reverts commit 79f82cf10ed1dbf91346994250d7311a4d74377a. * Revert "Port rest of os ops to JSON (#2802)" This reverts commit 5b2baa5c990fbeae747e952c5dcd7a5369e950b1.
2019-08-24port ops to JSON: compiler, errors, fetch, files (#2804)Bartek Iwańczuk
2019-08-21Organize dispatch a bit (#2796)Ryan Dahl
Just some clean up reorganization around flatbuffer/minimal dispatch code. This is prep for adding a JSON dispatcher.
2019-08-16Revert "Remove dead code: legacy read/write ops"Ryan Dahl
This is causing a segfault for unknown reasons - see #2787. This reverts commit 498f6ad431478f655b136782093e19e29248b24d.
2019-08-14Remove dead code: legacy read/write ops (#2776)Ryan Dahl
readSync and writeSync use dispatch_minimal now.
2019-07-06io: change Reader interface (#2591)Yoshiya Hinosawa
Instead of returning { nread: number, eof: bool }, read() returns EOF | number.
2019-05-03Optimize read and write ops (#2259)Ryan Dahl
2019-04-07use flatbuffer create functions to add fields (#2046)Jonathon Orsi
2019-04-04fix code bug in jsdocs (#2048)迷渡
2019-04-03fix JSDoc (#2043)迷渡
2019-03-30Move //libdeno to //core/libdeno (#2015)Ryan Dahl
Fixes some sed errors introduced in c43cfe. Unfortunately moving libdeno required splitting build.rs into two parts, one for cli and one for core. I've also removed the arm64 build - it's complicating things at this re-org and we're not even testing it. I need to swing back to it and get tools/test.py running for it.
2019-03-27Rewrite readFile and writeFile (#2000)Bartek Iwańczuk
Using open/read/write
2019-03-09Migrate from tslint to eslint for linting (#1905)Kitson Kelly
2019-02-18Add `seek` and implement `Seeker` on `File` (#1797)Kevin (Kun) "Kassimo" Qian
This patch contains a special hack that circumvents the current tokio seek problem. tokio `seek` is implemented to take ownership of the original File and emit a new one in its future, which conflicts with the design of ResourceTable. To avoid the problem, the current hack makes the FsFile resource an Option which we could `take` the value ownership out of it. We then convert the tokio File into a Rust std File, perform the seek, and then put it back into the resource. This might be able to drop this hack after https://github.com/tokio-rs/tokio/pull/785 lands.
2019-02-13Cleanup Deno namespace (#1765)Kitson Kelly
2019-02-12Add Deno global namespace (#1748)Kitson Kelly
Resolves #1705 This PR adds the Deno APIs as a global namespace named `Deno`. For backwards compatibility, the ability to `import * from "deno"` is preserved. I have tried to convert every test and internal code the references the module to use the namespace instead, but because I didn't break compatibility I am not sure. On the REPL, `deno` no longer exists, replaced only with `Deno` to align with the regular runtime. The runtime type library includes both the namespace and module. This means it duplicates the whole type information. When we remove the functionality from the runtime, it will be a one line change to the library generator to remove the module definition from the type library. I marked a `TODO` in a couple places where to remove the `"deno"` module, but there are additional places I know I didn't mark.
2019-01-21chore: update license lines (#1557)Yoshiya Hinosawa
2018-12-13Fix deno.open permission check (#1336)Kevin (Kun) "Kassimo" Qian
2018-12-12Flesh out open() modes (#1282)Bartek Iwańczuk
2018-11-09Reader/Writer should use Uint8Array not ArrayBufferViewRyan Dahl
Because many Reader/Writer implementations (e.g. bufio) assume their able to use subarray() with byte indexes and often ask for byte values, it makes sense to simply restrict all implementations to Uint8Array.
2018-10-19Add missing copyrights (#1024)ztplz
2018-10-17Optimization: Reuse ArrayBuffer during serialization.Ryan Dahl
2018-10-14Align JSDoc to style guide.Kitson Kelly
2018-10-10Rename fd to ridJ2P
2018-10-04Rename fbs to msg.Ryan Dahl
2018-10-04Rename flatbuffer base.msg to base.innerRyan Dahl
This better disambiguates with the msg_generated.ts module, which in JS we call "fbs", but would be better called "msg".
2018-10-03First pass at support for TCP servers and clients. (#884)Ryan Dahl
Adds deno.listen(), deno.dial(), deno.Listener and deno.Conn.
2018-10-01Rename FdTable to ResourceTable.Ryan Dahl
Add docs to src/resources.rs.
2018-09-28Adds basic File I/O and FD table.Ryan Dahl
Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(), deno.read(), deno.Reader, deno.Writer, deno.copy(). Fixes #721. tests/cat.ts works.