summaryrefslogtreecommitdiff
path: root/cli/tests
AgeCommit message (Collapse)Author
2021-01-01refactor(cli): runtime compiler APIs consolidated to Deno.emit() (#8799)Kitson Kelly
Closes: #4752
2020-12-30fix(op_crates/fetch): correct regexp for fetch header (#8927)Rich Trott
Fix bug in regular expression and make the regular expression more strict. In a string passed to new RegExp(), '[\t\s]' is identical to '[ts]' and not `/[\t\s]/`. For that, the backslash needs to be escaped in the string. Futhermore, `\t` is the tab character and is included in the special regexp value `\s` so is unnecessary. That would reduce the RegExp to new RegExp(`^${value}\\s*;?`) but there's no point in matching 0 or more space characters followed by 0 or one semi-colons as that will match no matter what follows `value`. To make it more strict, require one of space, semicolon, or end-of-string after value.
2020-12-30BREAKING(unstable): Use hosts for net allowlists (#8845)Nayeem Rahman
Allowlist checking already uses hosts but for some reason requests, revokes and the runtime permissions API use URLs. - BREAKING(lib.deno.unstable.d.ts): Change NetPermissionDescriptor::url to NetPermissionDescriptor::host - fix(runtime/permissions): Don't add whole URLs to the allowlist on request - fix(runtime/permissions): Harden strength semantics: ({ name: "net", host: "127.0.0.1" } is stronger than { name: "net", host: "127.0.0.1:8000" }) for blocklisting - refactor(runtime/permissions): Use tuples for hosts, make the host optional in Permissions::{query_net, request_net, revoke_net}()
2020-12-30chore(cli/tests): fix typo in test failure message (#8935)Rich Trott
2020-12-30fix(cli): info does not panic on missing modules (#8924)Kitson Kelly
Fixes #8918
2020-12-30fix(lsp): handle ts debug errors better (#8914)Kitson Kelly
Fixes #8864
2020-12-30feat(lsp): Implement textDocument/rename (#8910)hrsh7th
2020-12-29fix(core): Fix incorrect index in Promise.all error reporting (#8913)Deepanshu Utkarsh
2020-12-29upgrade: dprint, swc_bundler, swc_common, swc_ecmascript (#8901)Bartek Iwańczuk
2020-12-28feat(unstable): collect coverage from the run command (#8893)Casper Beyer
This adds implicit coverage collection to the run command when a coverage collection directory is set (via an environment variable).
2020-12-26test(cli): ensure await Promise.all does not race (#8868)Casper Beyer
2020-12-26fix: fetch bad URL will not panic (#8884)Yosi Pramajaya
2020-12-24refactor(test_util): replace "warp" with "hyper" (#8846)Yosi Pramajaya
This commit rewrites "test_server" to use "hyper" instead of "warp" in an effort to reduce number of dependencies.
2020-12-22fix: implement ReadableStream fetch body handling (#8855)Luca Casonato
2020-12-22feat(lsp): support the unstable setting (#8851)Kitson Kelly
2020-12-22fix(lsp): respect enable flag for requests (#8850)Kitson Kelly
2020-12-21refactor: rewrite chown_test.ts not to depend on python (#8843)Liam Murphy
This commit rewrites "chown_test.ts" to use the GNU "id" command instead of python. This won't work on Windows, but these tests aren't currently run on Windows anyway.
2020-12-21refactor: rewrite lsp to be async (#8727)Luca Casonato
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2020-12-21feat(unstable): record raw coverage into a directory (#8642)Casper Beyer
2020-12-21refactor: rewrite process_test.ts to use deno instead of python (#8841)Liam Murphy
Rewrites all the subprocess python scripts to be Deno scripts.
2020-12-20Revert "fix: TLA in web worker (#8809)" (#8839)Bartek Iwańczuk
This reverts commit e924bbdf3606e83ff9eef3a8ed640c4ecc34444f.
2020-12-20fix: TLA in web worker (#8809)Bartek Iwańczuk
Implementors of `deno_core::JsRuntime` might want to do additional actions during each turn of event loop, eg. `deno_runtime::Worker` polls inspector, `deno_runtime::WebWorker` receives/dispatches messages from/to worker host. Previously `JsRuntime::mod_evaluate` was implemented in such fashion that it only polled `JsRuntime`'s event loop. This behavior turned out to be wrong in the example of `WebWorker` which couldn't receive/dispatch messages because its implementation of event loop was never called. This commit rewrites "mod_evaluate" to return a handle to receiver that resolves when module's promise resolves. It is now implementors responsibility to poll event loop after calling `mod_evaluate`.
2020-12-19feat(unstable): support in memory certificate data for Deno.createHttpClient ↵yonatan ben avraham
(#8739)
2020-12-17test(cli): ensure await all on stdout does not deadlock (#8802)Casper Beyer
2020-12-16refactor: rewrite ops to use ResourceTable2 (#8512)Bartek Iwańczuk
This commit migrates all ops to use new resource table and "AsyncRefCell". Old implementation of resource table was completely removed and all code referencing it was updated to use new system.
2020-12-15fix(cli): make dynamic import errors catchable (#8750)Kitson Kelly
Fixes #6259
2020-12-14fix(repl): recover from invalid input (#8759)Casper Beyer
2020-12-12fix(cli/compile): error when the output path already exists (#8681)Yosi Pramajaya
2020-12-12Revert "chore(test): increase file watcher timeout duration on macOS ↵Bartek Iwańczuk
(#8733)" (#8737) This reverts commit f4cf1b453846a28a306316d197c3c15a41594b33.
2020-12-12chore(test): increase file watcher timeout duration on macOS (#8733)Yusuke Tanaka
2020-12-11refactor(cli): decouple ops from ProgramState and Flags (#8659)Bartek Iwańczuk
This commit does major refactor of "Worker" and "WebWorker", in order to decouple them from "ProgramState" and "Flags". The main points of interest are "create_main_worker()" and "create_web_worker_callback()" functions which are responsible for creating "Worker" and "WebWorker" in CLI context. As a result it is now possible to factor out common "runtime" functionality into a separate crate.
2020-12-11chore: fixed various misspellings and other typos (#8691)Anh Hong
2020-12-10refactor(core): stack trace mapping (#8660)Bartek Iwańczuk
This commit adds "Deno.core.createPrepareStackTrace". This function was moved from "cli/rt/40_error_stack.js" to unify handling of stack frames in core (before this PR there was implicit dependency on logic in "core/error.rs::JsError"). Unfortunately formatting logic must still be duplicated in "cli/error.js::PrettyJsError" to provide coloring, but currently there's no solution to this problem. "createPrepareStackTrace" can accept a single argument; a function that takes a location and provides source mapped location back.
2020-12-09fix(op_crates/fetch): support non-ascii response headers value (#8600)Jae-Heon Ji
2020-12-08Remove dead code: itest_ignore (#8668)Ryan Dahl
2020-12-07refactor(cli/rt): deduplicate code (#8649)Benjamin Gruenbaum
2020-12-07chore(std): Remove tsconfig_test.json (#8629)Nayeem Rahman
Ref #8050
2020-12-07feat: add mvp language server (#8515)Kitson Kelly
Resolves #8400
2020-12-04upgrade: swc_bundler 0.17.5 (#8588)Bartek Iwańczuk
2020-12-02fix(cli): add hygiene pass to transpile pipeline (#8586)János Veres
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-12-01fix(compile): disable source mapping of errors (#8581)Bartek Iwańczuk
This commit disables source mapping of errors for standalone binaries. Since applying source maps relies on using file fetcher infrastructure it's not feasible to use it for standalone binaries that are not supposed to use that infrastructure.
2020-12-01chore(cli/flags): Use deno compile --output for the out file (#8563)Nayeem Rahman
2020-12-01disable flaky watch tests (#8557)Bartek Iwańczuk
2020-11-30feat: deno compile (#8539)Luca Casonato
2020-11-30feat(unstable): add cbreak option to setRaw (#8383)Marcus Hultman
2020-11-30upgrade: deno_doc, deno_lint, dprint, swc (#8552)Bartek Iwańczuk
2020-11-29feat(cli/tools/upgrade): canary support (#8476)crowlKats
2020-11-28fix(watcher): watcher doesn't exit when module resolution fails (#8521)Yusuke Tanaka
This commit makes the file watcher continue to work even if module resolution fails at the initial attempt, allowing us to execute `run` or `bundle` subcommand when a script has invalid syntax. In such cases, the watcher observes a single file that is specified as an command line argument.
2020-11-27fix(cli): make output of deno info --json deterministic (#8483)William Perron
Fixes #8458
2020-11-27test(cli): fix brittle network permission test (#8526)William Perron