summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2021-08-26refactor(cli): introduce module specifier test modes (#11769)Casper Beyer
This commit merges the two vectors of specifiers into a single one introducing the concept of a "TestMode" which is a tri-state enum specifying how a specifier is to be tested (as documentation, as an executable module or as both). This is determined during the collection phase and determines how a specifier will be executed based on how the specifier was collected (directly or not) and if it has an eligible media_type when fetched. For example "deno test README.md" is marked as documentation because, while it is a direct inclusion it is not an executable media type therefore will only have the fenced code blocks that can be parsed from it tested.
2021-08-26docs: Add async iterator alternative for Deno.serveHttp (#11850)Sebastien Filion
2021-08-25chore(tests): improve unit tests using `deferred` (#11842)David Sherret
2021-08-25feat(fetch): mTLS client certificates for fetch() (#11721)Sean Michael Wykes
This commit adds support for specifying client certificates when using fetch, by means of `Deno.createHttpClient`.
2021-08-25fix(ext/http): websocket upgrade header check (#11830)Dayan C. Galiazzi
2021-08-24fix(cli): dispatch unload event on watch drop (#11696)Casper Beyer
2021-08-24feat(ext/crypto): implement encrypt, decrypt & generateKey for RSA-OAEP (#11654)Divy Srivastava
2021-08-24fix(typings): fix property name in DiagnosticMessageChain interface (#11821)Sebastien Filion
2021-08-24feat(cli): add --ignore flag to test command (#11712)Casper Beyer
2021-08-24feat(extensions/console): right align numeric columns in table (#11748)Nicolas Stucki
2021-08-24feat(unstable): Add file locking APIs (#11746)Tilman Roeder
This commit adds following unstable APIs: - Deno.flock() - Deno.flockSync() - Deno.funlock() - Deno.funlockSync()
2021-08-24feat(unstable): Support file URLs in Deno.dlopen() (#11658)Nayeem Rahman
2021-08-24BREAKING(unstable): Fix casing in FfiPermissionDescriptor (#11659)Nayeem Rahman
2021-08-24chore(ext/webgpu): update wgpu to 0.10.0 (#11781)Leo K
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-08-231.13.2 (#11822)David Sherret
2021-08-23chore: release crates for 1.13.2 (#11820)David Sherret
2021-08-23fix(ext/ffi): don't panic on invalid enum values (#11815)Luca Casonato
Co-authored-by: Feng Yu <f3n67u@gmail.com>
2021-08-23fix(ext/http): resource leak on HttpConn.close() (#11805)Bartek Iwańczuk
This commit adds tracking of resources that are related to "HttpConn" so they can be closed automatically when closing the connection.
2021-08-23refactor(cli/tools/test): infer disable log from program state (#11803)Casper Beyer
2021-08-23fix: duplicate import in cli/main.rs (#11813)Bartek Iwańczuk
2021-08-23refactor(cli/flags): use an optional non zero usize for `fail-fast` (#11804)Casper Beyer
Changes the type of the `fail_fast` flag from `Option<usize>` to `Option<NonZeroUsize>` as an optional value of zero isn't sound.
2021-08-23fix(cli/flags): require a non zero usize for concurrent jobs (#11802)Casper Beyer
2021-08-21doc(test): add --location to unit test command (#11793)Feng Yu
2021-08-21tests: remove redundant type assertion (#11794)Feng Yu
2021-08-19fix(lsp): better handling of languageId (#11755)Kitson Kelly
Fixes #11521 Fixes #11742
2021-08-18docs(lsp): change deno/registryStatus -> deno/registryState (#11760)Pankaj Patil
2021-08-18test: re-enable test watch tests and mark as flaky (#11669)Casper Beyer
2021-08-18fix(runtime): event loop panics in classic workers (#11756)Luca Casonato
Classic worker scripts are now executed in the context of a Tokio runtime. This does mean we can not spawn more tokio runtimes in "op_worker_sync_fetch". We instead spawn a new thread there, that can create a new Tokio runtime that we can use to block the worker thread.
2021-08-17refactor(cli): pass optional op_init to create_main_worker (#11707)Casper Beyer
Replaces the testing flag in create_main_worker with a more general purpose hook to register additional ops.
2021-08-17fix(ext/crypto): exportKey() for HMAC (#11737)Divy Srivastava
Fixes typings and innerKey processing (WPT doesn't test exportKey for HMAC so this wasn't caught earlier).
2021-08-161.13.1David Sherret
2021-08-16chore: release crates for 1.13.1 (#11729)David Sherret
2021-08-16fix(ext/fetch): better error if no content-typeBen Noordhuis
The streaming WASM support code inspects the Response object's Content-Type header but if that was missing, it failed with a fairly inscrutable "String.prototype.toLowerCase called on null or undefined" exception. Now it raises a more legible "Invalid WebAssembly content type" exception.
2021-08-16chore(cli/tests): disable flaky test on macos ci (#11726)Ben Noordhuis
Refs #11580.
2021-08-16feat(runtime): support classic workers for internal testing (#11338)Andreu Botella
This commit implements classic workers, but only when the `--enable-testing-features-do-not-use` flag is provided. This change is not user facing. Classic workers are used extensively in WPT tests. The classic workers do not support loading from disk, and do not support TypeScript. Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-08-16test(ext/http): add test for incomplete HTTP message and fix resource leak ↵Bartek Iwańczuk
(#11717) This commit adds a test case for "Http: connection closed before message completed" error as well as fixing an edge with resource leak when the error is raised.
2021-08-16fix: parse error when transpiling code with BOM (#11688)Ryan Dahl
Co-authored-by: David Sherret <dsherret@gmail.com>
2021-08-15fix: don't statically type name on Deno.errors (#11715)Luca Casonato
2021-08-15fix(test): dispatch load event before tests are run (#11708)Casper Beyer
2021-08-14chore: move importKey tests to webcrypto_unit.ts (#11706)Divy Srivastava
2021-08-14fix(cli/lint): don't use gray in diagnostics output for visibility (#11702)Yusuke Tanaka
2021-08-14fix(cli): explicitly scan for ignore attribute in inline tests (#11647)Casper Beyer
This commits adds "ignore" as a known attribute for Markdown codeblock which drops a code block early whenever it is seen in documentation tests.
2021-08-14cleanup(ext/web/BlobStore): avoid redundant Arc<Box<T>> alloc (#11693)Aaron O'Mullan
2021-08-14fix(cli/tools/repl): dont highlight candidate when completion is list (#11697)Casper Beyer
2021-08-14refactor: normalize `is_supported_` check naming (#11698)Casper Beyer
Normalizes the naming of the functions used to determine if a path is a suitable match for the test runner and placed them both in the the fs_util module.
2021-08-14fix(cli): retain input order of remote specifiers (#11700)Casper Beyer
Specifier collection partitions remote specifiers in their own group which is appended to the collected specifiers at the end of the routine meaning that the input order isn't respected for remote specifiers.
2021-08-13fix(ext/crypto): importKey() SecurityError on non-extractable keys (#11662)Divy Srivastava
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-08-13fix(http/ws): support multiple options in connection header (#11675)Leo K
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-08-13fix(ext/http): remove unwrap() when HTTP conn errors (#11674)Bartek Iwańczuk
2021-08-13refactor(cli): generalize module specifier collection (#11679)Casper Beyer