summaryrefslogtreecommitdiff
path: root/cli/tests
AgeCommit message (Collapse)Author
2021-07-02feat(core): pump V8 message loop on event loop tick (#11221)Bartek Iwańczuk
This commit adds support for Atomics and FinalizationRegistry by integrating V8's message loop into "JsRuntime::poll_event_loop".
2021-06-30fix: panic in request body streaming (#11191)Luca Casonato
2021-06-29test(cli): harden test runner tests (#11166)Casper Beyer
2021-06-29feat: Add "deno_net" extension (#11150)Bartek Iwańczuk
This commits moves implementation of net related APIs available on "Deno" namespace to "deno_net" extension. Following APIs were moved: - Deno.listen() - Deno.connect() - Deno.listenTls() - Deno.serveHttp() - Deno.shutdown() - Deno.resolveDns() - Deno.listenDatagram() - Deno.startTls() - Deno.Conn - Deno.Listener - Deno.DatagramConn
2021-06-28fix(http): remove unwrap() in HTTP bindings (#11130)Bartek Iwańczuk
2021-06-27chore: split up integration_tests.rs into separate files (#11131)David Sherret
2021-06-27fix(runtime/http): Encode and decode headers as byte strings in the HTTP ↵Andreu Botella
server (#11144)
2021-06-27feat(inspector): pipe console messages between terminal and inspector (#11134)Bartek Iwańczuk
This commit adds support for piping console messages to inspector. This is done by "wrapping" Deno's console implementation with default console provided by V8 by the means of "Deno.core.callConsole" binding. Effectively each call to "console.*" methods calls a method on Deno's console and V8's console.
2021-06-26fix: MessagePort in message for postMessage transfers (#11103)Luca Casonato
2021-06-25chore: move repl integration tests to separate file (#11127)David Sherret
2021-06-26fix: specify AbortSignal for native http requests (#11126)Luca Casonato
2021-06-25upgrade: rusty_v8 0.23.0 (V8 9.2.230.12) (#11113)Ryan Dahl
2021-06-25chore(ext/console): deprecate Deno.customInspect (#10035)Yoshiya Hinosawa
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-06-25fix(runtime/signal): use op_async_unref for op_signal_poll (#11097)Yoshiya Hinosawa
2021-06-25test(cli): refactor the usages of delay (#11098)Yoshiya Hinosawa
This PR refactors the usages of delay utility in js unit testing. The same utiliy is defined in several places with different names. This PR replaces those usages with the one provided in std/async/delay.ts to improve the readability and consistency of test code.
2021-06-25feat(lsp): dependency hover information (#11090)Kitson Kelly
2021-06-24fix: make readonly `Event` properties readonly (#11106)David Sherret
2021-06-24fix(inspect): eliminate panic inspecting event classes (#10979)David Sherret
2021-06-24feat(repl): support import declarations in the REPL (#11086)David Sherret
2021-06-24fix(lsp): handle invalid config setting better (#11104)Kitson Kelly
Fixes #11100 Fixes #10808
2021-06-22feat(core): support AbortSignal in readFile (#10943)Benjamin Gruenbaum
2021-06-22feat: transfer MessagePort between workers (#11076)Luca Casonato
Add support for transferring `MessagePort`s between workers.
2021-06-22fix(runtime): fix signal promise API (#11069)Yoshiya Hinosawa
2021-06-22fix(extensions/fetch): Filter out custom HOST headers (#11020)Vladimir Ivanov
This commit updates "fetch" API to ignore custom "Host" headers and return value provided by "reqwest".
2021-06-22feat(fetch): add programmatic proxy (#10907)Tomofumi Chiba
This commit adds new options to unstable "Deno.createHttpClient" API. "proxy" and "basicAuth" options were added that allow to use custom proxy when client instance is passed to "fetch" API.
2021-06-22fix(core): don't panic on stdout/stderr write failures in Deno.core.print ↵Charlie Moog
(#11039)
2021-06-22fix: move stable/unstable types/APIs to their correct places (#10880)Muthu Kumar
- Moved ppid and memoryUsage types from deno.unstable to deno.ns. - Moved sleepSync to unstable object, shutdown to stable object.
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-22fix(#10761): graph errors reported as diagnostics for `Deno.emit()` (#10767)Kitson Kelly
Fixes #10761
2021-06-22feat(cli): support "types" when type checking (#10999)Kitson Kelly
Fixes #10677
2021-06-22feat: Deno namespace configurable and unfrozen (#11062)Kitson Kelly
Closes #11033
2021-06-21feat(repl): Type stripping in the REPL (#10934)David Sherret
2021-06-21feat: `MessageChannel` and `MessagePort` (#11051)Luca Casonato
This commit introduces support for MessageChannel and MessagePort. MessagePorts can be transfered across other MessagePorts.
2021-06-21feat(lsp): quick fix actions to ignore lint errors (#10627)Satya Rohith
Closes #10122
2021-06-19fix(lsp): do not rename in strings and comments (#11041)David Sherret
2021-06-19fix(core/modules): Prepare modules only once per runtime (#11015)Nayeem Rahman
This commit changes module loading implementation in "deno_core" to call "ModuleLoader::prepare" hook only once per entry point. This is done to avoid multiple type checking of the same code in case of duplicated dynamic imports. Relevant code in "cli/module_graph.rs" was updated as well.
2021-06-18fix: Worker accepts specifier as URL (#11038)Bartek Iwańczuk
This commit updates type declarations for Worker to accept specifiers as either strings or URL, bringing it in line with TypeScript declarations and browser behavior.
2021-06-15fix(inspector): Deno.inspect should inspect the object the proxy represents ↵David Sherret
rather than the target of the proxy (#10977)
2021-06-15fix(repl): Complete declarations (#10963)David Sherret
2021-06-14fix: poll connection after writing response chunk in Deno.serveHttp() (#10961)Bartek Iwańczuk
This commit changes "op_http_response_write" to first send response chunk and then poll the underlying HTTP connection. Previously after writing a chunk of response HTTP connection wasn't polled and thus data wasn't written to the socket until after next op interacting with the connection.
2021-06-14fix: hang in Deno.serveHttp() (#10923)Bartek Iwańczuk
Waiting on next request in Deno.serveHttp() API hanged when responses were using ReadableStream. This was caused by op_http_request_next op that was never woken after response was fully written. This commit adds waker field to DenoService which is called after response is finished.
2021-06-10chore: Fix broken test on Windows (#10900)David Sherret
2021-06-10chore(tests): Kill orphaned deno processes spawned during the tests (#10922)David Sherret
2021-06-09fix(runtime): early binding to dispatchEvent in workers (#10904)Kitson Kelly
2021-06-07feat(compile): Initialize runtime_compiler ops for standalone binaries (#10052)Divy Srivastava
2021-06-07feat(lsp): add test code lens (#10874)Kitson Kelly
Ref #8643
2021-06-07tests(lsp): fix flakey lsp integration test (#10875)Kitson Kelly
2021-06-06fix(#10747): cannot read config option in windows (#10791)jeiea
Fixes #10747
2021-06-05refactor(web): use encoding_rs for text encoding (#10844)Luca Casonato
This commit removes all JS based text encoding / text decoding. Instead encoding now happens in Rust via encoding_rs (already in tree). This implementation retains stream support, but adds the last missing encodings. We are incredibly close to 100% WPT on text encoding now. This should reduce our baseline heap by quite a bit.
2021-06-05feat(cli/compile): Support data uri dynamic imports in `deno compile` (#9936)Divy Srivastava