summaryrefslogtreecommitdiff
path: root/cli/tools
AgeCommit message (Collapse)Author
2021-07-12chore(cli/tools/test_runner): inline execute_module rresults (#11358)Casper Beyer
2021-07-10Revert "feat(cli/tools/test_runner): add terse reporter (#11156)" (#11352)Ryan Dahl
it's another flag to understand, more code, and isn't something that anyone really needs. This reverts commit 9d57a4aaeb18461bbeeea30fc8ab8804357185c1.
2021-07-10feat(cli/tools/test_runner): add terse reporter (#11156)Casper Beyer
This commit adds "--terse" flag to "deno test" that makes testing reporter output one character per test case instead of one line per case. This is an unstable feature.
2021-07-08feat(repl): support autocomplete on declarations containing a primitive (#11325)David Sherret
2021-07-08refactor(cli/tools/coverage): strongly type inspector values (#11326)Casper Beyer
2021-07-07fix(cli/tools/upgrade): check if passed version is valid (#11296)Leo K
2021-07-07fix(cli/tools/lint): output json reports to stdout (#11311)Casper Beyer
2021-07-06chore: use parking_lot for synchronization primitives to align with tokio ↵David Sherret
(#11289) parking_lot is already transitively used in tokio via the "full" cargo feature
2021-07-06fix(repl): do not panic when Deno.inspect throws (#11292)Casper Beyer
2021-07-05feat(test): add --shuffle flag to randomize test ordering (#11163)Casper Beyer
2021-06-29chore: get rid of REPL timeout (#11175)Bert Belder
* Get rid of timeout * Use tokio channel and reduce calls to run_event_loop Co-authored-by: David Sherret <dsherret@gmail.com>
2021-06-29fix(cli): pretty print coverage files (#11157)Casper Beyer
2021-06-24feat(repl): support import declarations in the REPL (#11086)David Sherret
2021-06-23ci: run Linux release builds in sysroot with Ubuntu 18.04 and LLVM (#10920)Bert Belder
2021-06-22feat(repl): show list completion (#11001)Casper Beyer
2021-06-22refactor: unify JavaScript script execution method (#11043)Bartek Iwańczuk
This commit renames "JsRuntime::execute" to "JsRuntime::execute_script". Additionally same renames were applied to methods on "deno_runtime::Worker" and "deno_runtime::WebWorker". A new macro was added to "deno_core" called "located_script_name" which returns the name of Rust file alongside line no and col no of that call site. This macro is useful in combination with "JsRuntime::execute_script" and allows to provide accurate place where "one-off" JavaScript scripts are executed for internal runtime functions. Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2021-06-22feat(cli): support "types" when type checking (#10999)Kitson Kelly
Fixes #10677
2021-06-21feat(repl): Type stripping in the REPL (#10934)David Sherret
2021-06-15fix(repl): Complete declarations (#10963)David Sherret
2021-06-09refactor(repl): Extract out structs for internal REPL code (#10915)David Sherret
* Extract out ReplEditor. * Extract out ReplSession. * Move PRELUDE declaration up.
2021-06-06chore: upgrade crates (#10867)Bartek Iwańczuk
* deno_doc - 0.5.0 * deno_lint - 0.6.0 * dprint-plugin-typescript - 0.46.0 * dprint-plugin-markdown - 0.8.0 * dprint-plugin-json - 0.12.0 * swc_bundler - 0.37.4 * swc_ecmascript - 0.36.0
2021-05-26refactor: move JsRuntimeInspector to deno_core (#10763)Bartek Iwańczuk
This commit moves implementation of "JsRuntimeInspector" to "deno_core" crate. To achieve that following changes were made: * "Worker" and "WebWorker" no longer own instance of "JsRuntimeInspector", instead it is now owned by "deno_core::JsRuntime". * Consequently polling of inspector is no longer done in "Worker"/"WebWorker", instead it's done in "deno_core::JsRuntime::poll_event_loop". * "deno_core::JsRuntime::poll_event_loop" and "deno_core::JsRuntime::run_event_loop", now accept "wait_for_inspector" boolean that tells if event loop should still be "pending" if there are active inspector sessions - this change fixes the problem that inspector disconnects from the frontend and process exits once the code has stopped executing.
2021-05-26refactor: Rewrite Inspector implementation (#10725)Bartek Iwańczuk
This commit refactors implementation of inspector. The intention is to be able to move inspector implementation to "deno_core". Following things were done to make that possible: * "runtime/inspector.rs" was split into "runtime/inspector/mod.rs" and "runtime/inspector/server.rs", separating inspector implementation from Websocket server implementation. * "DenoInspector" was renamed to "JsRuntimeInspector" and reference to "server" was removed from the structure, making it independent of Websocket server used to connect to Chrome Devtools. * "WebsocketSession" was renamed to "InspectorSession" and rewritten in such a way that it's not tied to Websockets anymore; instead it accepts a pair of "proxy" channel ends that allow to integrate the session with different "transports". * "InspectorSession" was renamed to "LocalInspectorSession" to better indicate that it's an "in-memory" session and doesn't require Websocket server. It was also rewritten in such a way that it uses "InspectorSession" from previous point instead of reimplementing "v8::inspector::ChannelImpl" trait; this is done by using the "proxy" channels to communicate with the V8 session. Consequently "LocalInspectorSession" is now a frontend to "InspectorSession". This introduces a small inconvenience that awaiting responses for "LocalInspectorSession" requires to concurrently poll worker's event loop. This arises from the fact that "InspectorSession" is now owned by "JsRuntimeInspector", which in turn is owned by "Worker" or "WebWorker". To ease this situation "Worker::with_event_loop" helper method was added, that takes a future and concurrently polls it along with the event loop (using "tokio::select!" macro inside a loop).
2021-05-24fix(cli/test): don't use reserved symbol `:` in specifier (#10751)Casper Beyer
2021-05-24fix(cli/upgrade): modify download size paddings (#10639)CGQAQ
2021-05-20fix(cli/tools/test_runner): --doc should not require permissions (#10719)Casper Beyer
2021-05-19fix(cli): always allow documentation modules to be checked (#10581)Casper Beyer
2021-05-19fix(cli/tools/test_runner): use file_fetcher.fetch to get sources (#10708)Casper Beyer
2021-05-19fix(deno install): support `file:` scheme URLs (#10562)Satya Rohith
2021-05-18feat(lsp): support formatting json and markdown files (#10180)Satya Rohith
Resolves #9447 Resolves #9415
2021-05-17fix: static import permissions in dynamic importsLuca Casonato
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-05-11feat(test): add support for type checking documentation (#10521)Casper Beyer
This commit adds support for type checking codeblocks in the JS doc comments.
2021-05-10chore: upgrade crates (#10559)Bartek Iwańczuk
2021-05-10feat: add deno test --watch (#9160)Liam Murphy
This commit implements file watching for deno test. When a file is changed, only the test modules which use it as a dependency are rerun. This is accomplished by reworking the file watching infrastructure to pass the paths which have changed to the resolver, and then constructing a module graph for each test module to check if it contains any changed files.
2021-05-10fix(cli/installer): allow remote import maps (#10499)Satya Rohith
2021-05-02fix(test): change inflection depending on number of pending tests (#10466)Casper Beyer
2021-04-30fix(cli/tools/test): print module tests originate from (#10428)Casper Beyer
2021-04-29refactor(cli): move test reporting into trait (#10408)Casper Beyer
2021-04-28feat(test): run test modules in parallel (#9815)Casper Beyer
This commit adds support for running test in parallel. Entire test runner functionality has been rewritten from JavaScript to Rust and a set of ops was added to support reporting in Rust. A new "--jobs" flag was added to "deno test" that allows to configure how many threads will be used. When given no value it defaults to 2.
2021-04-26Remove denort optimization (#10350)Ryan Dahl
denort is an optimization to "deno compile" to produce slightly smaller output. It's a decent idea, but causes a lot of negative side-effects: - Deno's link time is a source of constant agony both locally and in CI, denort doubles link time. - The release process is a long and arduous undertaking with many manual steps. denort necessitates an additional manual zip + upload from M1 apple computers. - The "deno compile" interface is complicated with the "--lite" option. This is confusing for uses ("why wouldn't you want lite?"). The benefits of this feature do not outweigh the negatives. We must find a different approach to optimizing "deno compile" output.
2021-04-24feat(cli/upgrade): add download progress (#10343)crowlKats
2021-04-23fix(cli): standalone bin corruption on M1 (#10311)Aaron O'Mullan
2021-04-21fix: do not panic on not found cwd (#10238)Satya Rohith
2021-04-21fix(installer): Remove double '.' from temporary archive extension on ↵Nicholas Rodrigues Lordello
upgrade (#10289)
2021-04-18fix(install): use first `deno` executable on PATH rather than deno.exe (#10247)David Sherret
2021-04-12feat(runtime/permissions): prompt fallback (#9376)crowlKats
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-03-26remove macro_use (#9884)Ryan Dahl
2021-03-25upgrade: Rust 1.51.0 (#9895)Yusuke Tanaka
2021-03-10fix(fmt): Correctly format hard breaks in markdown (#9742)David Sherret
2021-03-08fix(coverage): ensure single line functions don't yield false positives (#9717)Casper Beyer