summaryrefslogtreecommitdiff
path: root/cli/ops
AgeCommit message (Collapse)Author
2019-10-04Merge deno_cli_snapshots into deno_cli (#3064)Ryan Dahl
2019-10-04Use xeval from deno_std (#3058)Nayeem Rahman
2019-10-03Async compiler processing (#3043)Kitson Kelly
Basically this does pre-processing of TypeScript files and gathers all the dependencies asynchronously. Only then after all the dependencies are gathered, does it do a compile, which at that point all the dependencies are cached in memory in the compiler, so with the exception of the hard coded assets, there are no ops during the compilation. Because op_fetch_source_files is now handled asynchronously in the runtime, we can eliminate the tokio_util::block_on() which was causing the increase in threads. Benchmarking on my machine has shown about a 5% improvement in speed when dealing with compiling TypeScript. Still a long way to go, but an improvement. In theory the module name resolution and the fetching of the source files could be broken out as two different ops. This would prevent situations of sending the full source file all the time when actually the module is the same module referenced by multiple modules, but that could be done subsequently to this.
2019-10-02feat: Add support for passing a key to Deno.env() (#2952)Jed Fox
This adds a new op to get a single env var.
2019-10-01use Isolate::register_op in deno_cli (#3039)Bartek Iwańczuk
2019-09-27Add Deno.hostname() (#3032)Kevin (Kun) "Kassimo" Qian
2019-09-25Handle uncaught worker errors without panicking (#3019)Kitson Kelly
2019-09-23feat: Add Deno.dialTLS()Jonathon Orsi
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2019-09-20dial/listen API change (#3000)Ryan Dahl
Previously: dial("tcp", "deno.land:80") Now: dial({ hostname: "deno.land", port: 80, transport: "tcp" }) Similarly with listen().
2019-09-20js: reschedule global timer if it fires earlier than expected (#2989)Bert Belder
When the global timer fires earlier than expected, which apparently happens sometimes on server editions of Windows, we didn't call any setTimeout callbacks, but we *also* didn't reschedule the global timer to fire again later. When this situation occurred it would make deno exit abruptly if there were no other asynchronous ops running on the event loop. It could also lead to application hangs if the upcoming setTimeout callback was critical for the application to make progress.
2019-09-15Make deno_cli installable via crates.io (#2946)Ryan Dahl
- Fixes cargo publish on deno_typescript, deno_cli_snapshots, and deno_cli. - Combines cli_snapshots and js into one directory. - Extracts TS version at compile time rather than runtime - Bumps version awkwardly - it was necessary to test end-to-end publishing. Sorry. - Adds git submodule deno_typescript/typescript
2019-09-15Rename ansi.rs to colors.rs (#2956)Tomohito Nakayama
2019-09-14feat: parallelize downloads from TS compiler (#2949)Bartek Iwańczuk
2019-09-10fix: replace bad rid panics with errors (#2870)Bartek Iwańczuk
2019-09-06Remove replacements hack in deno_typescript (#2864)Yoshiya Hinosawa
2019-09-03Handle typescript version in rust (#2855)Yoshiya Hinosawa
2019-09-02ops/fetch: add statusText (#2851)Yoshiya Hinosawa
2019-08-30Use 'reqwest' to implement HTTP client (#2822)Bartek Iwańczuk
Closes #2720
2019-08-30Remove ts_library_builder, maintain lib.deno_runtime.d.ts by hand (#2827)Ryan Dahl
2019-08-27feat: implement Addr interface (#2821)Bartek Iwańczuk
2019-08-26Clean up various flatbuffer references (#2819)Ryan Dahl
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-26port fs ops to JSON (#2812)Bartek Iwańczuk
2019-08-26bring back json ops (#2815)Bartek Iwańczuk
2019-08-26fix: shared queue requires aligned buffer (#2816)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 more ops to JSON (#2809)Bartek Iwańczuk
2019-08-24port ops to JSON: compiler, errors, fetch, files (#2804)Bartek Iwańczuk
2019-08-24Port rest of os ops to JSON (#2802)Ryan Dahl
2019-08-22introduce JSON serialization for ops (#2799)Ryan Dahl
Converts env(), exit(), execPath(), utime() and utimeSync() to use JSON instead of flatbuffers.
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-08-14split up ops.rs (#2753)Bartek Iwańczuk
Note cli/dispatch_minimal.rs ops are not yet included in cli/ops. This is part of work towards #2730