summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2020-10-14feat(cli/console): inspect with colors regardless of Deno.noColor (#7778)TTtie
This commit adds the ability for users to inspect items stylized with ANSI colors regardless of the value of Deno.noColor.
2020-10-14fix typos (#7964)vwkd
2020-10-14fix(test): return error when awaiting unresolved promise (#7968)Bartek Iwańczuk
This commit fixes test runner by awaitning "Deno.runTests()" call, which ensures proper error is returned when there's an unresolved promise that's being awaited.
2020-10-14fix(console): fix the test cases of function inspections (#7965)Yoshiya Hinosawa
2020-10-14refactor(cli/repl): clean up prelude injection (#7967)Casper Beyer
This extracts prelude injection into a helper function and moves the prelude string literal into a top level static string to help trim some of the fat out of the run function.
2020-10-14fix: top-level-await module execution (#7946)Bartek Iwańczuk
This commit changes implementation of top-level-await in "deno_core". Previously promise returned from module evaluation was not awaited, leading to out-of-order execution of modules that have TLA. It's been fixed by changing "JsRuntime::mod_evaluate" to be an async function that resolves when the promise returned from module evaluation also resolves. When waiting for promise resolution event loop is polled repeatedly, until there are no more dynamic imports or pending ops.
2020-10-14refactor(cli): add tsc2 (#7942)Kitson Kelly
Ref #7225
2020-10-13Remove dead code (#7963)Ryan Dahl
2020-10-13fix(op_crates/web/url): apply backslash replacement to the pathname setter ↵Nayeem Rahman
(#7937)
2020-10-13feat(cli/repl): add regex based syntax highlighter (#7811)Casper Beyer
This commit adds a simple regex replace based highlighter to the REPL editor. It tries to match the color palette of Deno.inspect()
2020-10-13feat: add alert, confirm, and prompt (#7507)Yoshiya Hinosawa
This commit adds "alert", "confirm" and "prompt" functions from web standards.
2020-10-13refactor(cli): rename GlobalState to ProgramState (#7914)Bartek Iwańczuk
2020-10-13reafactor(cli): use Emit enum and rename ts_build_info (#7952)Kitson Kelly
2020-10-12chore(cli): remove dead code (#7941)Kitson Kelly
2020-10-12refactor(cli): move info subcommand over to new module graph (#7892)Kitson Kelly
2020-10-12feat(cli): support importmap flag with deno doc subcommand (#7821)Valentin Anger
Fixes #7783
2020-10-12fix(cli/rt/main): Add global interface objects (#7875)Nayeem Rahman
2020-10-11fix(console): fix inspection of Function (#7930)Yoshiya Hinosawa
This commit fixes the inspection of functions. The current implementation gets the name of the type of the function from "f.__proto__.constructor.name", and it throws when the prototype is set to null. This commit checks the prototype before accessing its constructor name and uses the generic name 'Function' if the prototype is not available.
2020-10-11fix(cli/console): only inspect getters with option (#7830)Casper Beyer
2020-10-11refactor(cli/repl): get context id from notification (#7864)Casper Beyer
This takes the execution context id from a notification which is sent on Runtime.enable rather than hard-coding it to a magic value.
2020-10-11reland JsRuntime/Worker is not a Future (#7924)Bartek Iwańczuk
2020-10-10v1.4.6Bartek Iwańczuk
2020-10-10Fix 100% CPU idling problem by reverting #7672 (#7911)Ryan Dahl
* Revert "refactor: Worker is not a Future (#7895)" This reverts commit f4357f0ff9d39411f22504fcc20db6bd5dec6ddb. * Revert "refactor(core): JsRuntime is not a Future (#7855)" This reverts commit d8879feb8c832dbb38649551b1cb0730874f7be6. * Revert "fix(core): module execution with top level await (#7672)" This reverts commit c7c767782538243ded64742dca9b34d6af74d62d.
2020-10-10fix(op_crate/web): add padding on URLSearchParam (#7905)Lively
Fixes #7888
2020-10-09refactor: Worker is not a Future (#7895)Bartek Iwańczuk
This commit rewrites deno::Worker to not implement Future trait. Instead there are two separate methods: - Worker::poll_event_loop() - does single tick of event loop - Worker::run_event_loop() - runs event loop to completion Additionally some cleanup to Worker's field visibility was done.
2020-10-09fix(op_crates/fetch): Stringify and parse Request URLs (#7838)Nayeem Rahman
Fixes #7837
2020-10-08Fix typos (#7882)crowlKats
2020-10-08v1.4.5Bartek Iwańczuk
2020-10-08fix: update worker types to better align to lib.dom.d.ts (#7843)Kitson Kelly
2020-10-08fix(cli/rt/error_stack): Improve message line formatting (#7860)Nayeem Rahman
2020-10-08fix(cli/fs) Small change in filter expression (#7865)Simon Rask
2020-10-07refactor(core): JsRuntime is not a Future (#7855)Bartek Iwańczuk
This commit rewrites deno_core::JsRuntime to not implement Future trait. Instead there are two separate methods: - JsRuntime::poll_event_loop() - does single tick of event loop - JsRuntime::run_event_loop() - runs event loop to completion
2020-10-07fix(cli/rt/console): Don't require a prototype to detect a class instance ↵Nayeem Rahman
(#7869)
2020-10-07upgrade: deno_doc, deno_lint, dprint, swc (#7862)Bartek Iwańczuk
2020-10-07refactor: rename isolate to js_runtime (#7858)Bartek Iwańczuk
This commit renames occurrences of "isolate" variable name to "js_runtime". This was outstanding debt after renaming deno_core::CoreIsolate to JsRuntime.
2020-10-07refactor(core): JsRuntime doesn't defer to OwnedIsolate (#7853)Bartek Iwańczuk
Remove Deref and DeferMut implementations for JsRuntime.
2020-10-07fix(cli/ops/fs): Don't force Windows paths separate paths with forward slash ↵Nayeem Rahman
(#7833)
2020-10-07refactor(cli): remove TextDocument (#7850)Kitson Kelly
2020-10-07refactor(cli/inspector): use &str for post_message (#7851)Casper Beyer
This changes the signature of InspectorSession.post_message to take a &str rather than a String avoiding the need call str.to_string at each call site.
2020-10-07refactor(cli): cleanups to new module graph (#7846)Kitson Kelly
2020-10-06refactor(cli/repl): tightly integrate event loop (#7834)Casper Beyer
2020-10-06fix(core): module execution with top level await (#7672)Bartek Iwańczuk
This commit fixes implementation of top level await in "deno_core". Previously promise returned from module execution was ignored causing to execute modules out-of-order. With this commit promise returned from module execution is stored on "JsRuntime" and event loop is polled until the promise resolves.
2020-10-05chore: add a bundle benchmark (#7828)Kitson Kelly
2020-10-05perf(cli/console): Don't add redundant ANSI codes (#7823)Nayeem Rahman
2020-10-05fix(core): handle unregistered errors in core better (#7817)Kitson Kelly
2020-10-05chore: add lockfile tests (#7816)JavascriptMick
Fixes #7653
2020-10-04chore(std/http): rename http_bench.ts -> bench.ts (#7509)tokiedokie
2020-10-04docs: end sentences with a period in markdown (#7813)Trivikram Kamat
2020-10-03feat(unstable): revert "enable importsNotUsedAsValues by default #7413" (#7800)Nayeem Rahman
This reverts commit fbb18d40d3cfd0d24262e8e73b97f22770734572.
2020-10-03v1.4.4Bartek Iwańczuk