summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2019-05-03v0.3.11Ryan Dahl
2019-05-03add "deno run" subcommand (#2215)Bartek Iwańczuk
2019-05-03feat(cli cmd): deno xeval (#2260)Kevin (Kun) "Kassimo" Qian
2019-05-03feat: support .mjs extension resolution (#2283)Kevin (Kun) "Kassimo" Qian
Removed `extmap` and added .mjs entry in `map_file_extension`. The assert in the compiler does not need to be updated, since it is resolving from the compiled cache instead of elsewhere (notice the .map is asserted next to it)
2019-05-03add --no-fetch CLI flag to prevent remote downloads (#2213)Bartek Iwańczuk
2019-05-03Fix: deno --v8-options does not print v8 options (#2277)Bartek Iwańczuk
2019-05-03Optimize read and write ops (#2259)Ryan Dahl
2019-05-03core,cli: fix clippy warningsBert Belder
2019-05-01Add Request global constructor (#2253)Kurt Mackey
2019-05-01doc: add long about messages for subcommands (#2264)Kevin (Kun) "Kassimo" Qian
Type deno <subcommand> -h to view descriptions.
2019-05-01core: express op as enum (#2255)Ryan Dahl
2019-05-01Refactor zero-copy buffers for performance and to prevent memory leaksBert Belder
* In order to prevent ArrayBuffers from getting garbage collected by V8, we used to store a v8::Persistent<ArrayBuffer> in a map. This patch introduces a custom ArrayBuffer allocator which doesn't use Persistent handles, but instead stores a pointer to the actual ArrayBuffer data alongside with a reference count. Since creating Persistent handles has quite a bit of overhead, this change significantly increases performance. Various HTTP server benchmarks report about 5-10% more requests per second than before. * Previously the Persistent handle that prevented garbage collection had to be released manually, and this wasn't always done, which was causing memory leaks. This has been resolved by introducing a new `PinnedBuf` type in both Rust and C++ that automatically re-enables garbage collection when it goes out of scope. * Zero-copy buffers are now correctly wrapped in an Option if there is a possibility that they're not present. This clears up a correctness issue where we were creating zero-length slices from a null pointer, which is against the rules.
2019-05-01Rename test targets (#2262)Bartek Iwańczuk
2019-05-01fs: add Deno.utime/Deno.utimeSync (#2241)Kevin (Kun) "Kassimo" Qian
2019-04-29flags: fix merge error (#2244)Ryan Dahl
2019-04-29Rewrite flags.rs::parse_flags (#2237)Bartek Iwańczuk
2019-04-29Add support for custom tsconfig.json (#2089)Kitson Kelly
Use `--config`
2019-04-28Revert "recover: #1517 Kill all pending accepts when TCP listener is closed ↵Ryan Dahl
(#2224)" (#2239) Crashes while running wrk against js/deps/https/deno.land/std/http/http_bench.ts This reverts commit 972ac03858cc11e8b6bb759ee69640d17235580d.
2019-04-27recover: #1517 Kill all pending accepts when TCP listener is closed (#2224)Yusuke Sakurai
2019-04-27disable --version flag from deno version (#2226)Bartek Iwańczuk
2019-04-25v0.3.10Ryan Dahl
2019-04-25Rename CLI flags to subcommands (#2212)Bartek Iwańczuk
2019-04-25compile lib.deno_runtime.d.ts into executable (#2209)Ryan Dahl
2019-04-25Rename deno prefetch to deno fetch (#2210)Bartek Iwańczuk
2019-04-25v0.3.9Ryan Dahl
2019-04-23core: make Isolate concrete, remove Dispatch trait (#2183)Ryan Dahl
Op dispatch is now dynamically dispatched, so slightly less efficient. The immeasurable perf hit is a reasonable trade for the API simplicity that is gained here.
2019-04-23Use tokio_threadpool's new panic_handler (#2188)Ryan Dahl
2019-04-23third_party: upgrade rust cratesBert Belder
2019-04-21Add Deno.kill(pid, signo) and process.kill(signo) (Unix only) (#2177)Kevin (Kun) "Kassimo" Qian
2019-04-21Refactor CLI entry point (#2157)Bartek Iwańczuk
Changes "deno --types" to "deno types" and "deno --prefetch" to "deno prefetch"
2019-04-19v0.3.8Ryan Dahl
2019-04-19core: test Modules::deps and handle error cases better (#2141)Ryan Dahl
2019-04-18Fix redirects under async load (#2133)Kevin (Kun) "Kassimo" Qian
2019-04-17Fix clippy warningsBert Belder
2019-04-17Add cli dependency on tokio-rustlsBert Belder
2019-04-16Implement async module loading in CLI (#2084)Ryan Dahl
2019-04-15third_party: upgrade rust cratesBert Belder
2019-04-14Fix silent error, add custom panic handler (#2098)Ryan Dahl
This is to work around Tokio's panic recovery feature. Ref https://github.com/tokio-rs/tokio/issues/495 Ref https://github.com/tokio-rs/tokio/issues/209 Ref https://github.com/denoland/deno/issues/1311 Fixes #2097
2019-04-13fix absolute path resolution from remote (#2109)Yoshiya Hinosawa
2019-04-13Add deno eval subcommand (#2102)Bartek Iwańczuk
2019-04-12better wait for removed_from_resource_table_on_close test (#2104)andy finch
2019-04-11v0.3.7Ryan Dahl
2019-04-11Improve op dispatch (#2088)andy finch
2019-04-11fix --v8-options (#2093)Bartek Iwańczuk
2019-04-09Silence clippy warnings and format source codeBert Belder
2019-04-09Use correct type for `source_bytes` when buiding in check-only modeBert Belder
2019-04-09core: Rename Behavior to Dispatch (#2082)Ryan Dahl
And rename IsolateState to ThreadSafeState. Also make ThreadSafeState directly implement Dispatch. This is simpler.
2019-04-08Merge Worker and Isolate types (#2078)Ryan Dahl
Reduces generics.
2019-04-08Allow high precision performance.now() (#1977)Vincent LE GOFF
2019-04-08core: snapshot improvements (#2052)Ryan Dahl
* Moves how snapshots are supplied to the Isolate. Previously they were given by Behavior::startup_data() but it was only called once at startup. It makes more sense (and simplifies Behavior) to pass it to the constructor of Isolate. * Adds new libdeno type deno_snapshot instead of overloading deno_buf. * Adds new libdeno method to delete snapshot deno_snapshot_delete(). * Renames deno_get_snapshot() to deno_snapshot_new(). * Makes StartupData hold references to snapshots. This was implicit when it previously held a deno_buf but is made explicit now. Note that include_bytes!() returns a &'static [u8] and we want to avoid copying that.