summaryrefslogtreecommitdiff
path: root/cli/tools
AgeCommit message (Collapse)Author
2021-08-06feat: ffi to replace plugins (#11152)Elias Sjögreen
This commit removes implementation of "native plugins" and replaces it with FFI API. Effectively "Deno.openPlugin" API was replaced with "Deno.dlopen" API.
2021-08-06refactor: make `ParsedModule` implement `Sync` (#11581)David Sherret
2021-07-30chore: upgrade Rust to 1.54.0 (#11554)Yusuke Tanaka
2021-07-29feat: type check codeblocks in Markdown file with "deno test --doc" (#11421)Casper Beyer
2021-07-29fix(cli): deno doc panics on invalid url (#11536)Feng Yu
2021-07-28feat(lsp): ability to set DENO_DIR via settings (#11527)Kitson Kelly
Ref: denoland/vscode_deno#287
2021-07-26feat(cli/tools/test): imply media type from doc attribute (#11438)Casper Beyer
2021-07-26fix(cli): side-load test modules (#11515)Casper Beyer
This fixes a regression introduced in 1.9 where test modules became main modules by side loading them in a generated module.
2021-07-23feat: add --enable-testing-features-do-not-use (#11499)Luca Casonato
This flag does nothing yet. It is added in preparation for the addition of classic workers.
2021-07-22fix(cli): normalize test command errors (#11375)Casper Beyer
2021-07-19fix(repl): output error without hanging when input is invalid (#11426)Ayato Tokubi
2021-07-14refactor(cli/tools/test_runner): split reporter into distinct stages (#11395)Casper Beyer
This splits up the reporter into smaller functions, one for each distinct event that happens during the testing process.
2021-07-14refactor(cli/tools/test_runner): make test reporters stateless (#11357)Casper Beyer
This collects summary information in the event collector and passes it to the reporter instead of having this embedded in each reporter which leads to a lot of duplication.
2021-07-12feat: Add support for "deno test --fail-fast=N" (#11316)Yasser A.Idrissi
This commit adds support for specifying threshold in the "--fail-fast" flag for "deno test" subcommand. Previously using "--fail-fast" stopped running the test suite after first failure and with this change users may specify number of failed tests that will cause the suite to be interrupted. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
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