summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-05-27fix(ext/fetch): fix error message of Request constructor (#10772)Yoshiya Hinosawa
2021-05-27docs(permissions): fix grammatical error in permissions docs (#10755)Jonathan Svenheden
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-05-27fix(#10733): empty tsconfig.json file does not cause error (#10734)Romain Prignon
Fixes #10733
2021-05-27feat(cli): add origin data dir to deno info (#10589)crowlKats
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com> Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-05-26fix(fetch): make prototype properties writable (#10769)Luca Casonato
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-26feat(lsp): show hints from `deno_lint` in addition to messages (#10739)Yusuke Tanaka
2021-05-25fix(extension/file): update File constructor following the spec (#10760)Yoshiya Hinosawa
2021-05-25cleanup(test_plugin): use else if statement (#10718)Carter Snook
2021-05-25docs(cli/dts): tag test permission example as typescript (#10753)Casper Beyer
2021-05-25feat(lsp): diagnostics for deno types and triple-slash refs (#10699)Kitson Kelly
Fixes #9823
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-23feat(extensions): BroadcastChannel WPT conformanceBen Noordhuis
Replaces the file-backed provider by an in-memory one because proper file locking is a hard problem that detracts from the proof of concept. Teach the WPT runner how to extract tests from .html files because all the relevant tests in test_util/wpt/webmessaging/broadcastchannel are inside basics.html and interface.html.
2021-05-23feat(extensions): add BroadcastChannelBen Noordhuis
Co-Authored-By: Ben Noordhuis <info@bnoordhuis.nl> Fixes: #10354
2021-05-23chore: update wptBen Noordhuis
2021-05-22bench(timers_ops): op_now() & setTimeout() (#10744)Aaron O'Mullan
2021-05-21fix(docs): rename read to readSync (#10732)迷渡
Signed-off-by: 迷渡 <justjavac@gmail.com>
2021-05-21fix(test): ensure coverage dir exists (#10717)Yoshiya Hinosawa
2021-05-21cleanup(bench_util): use Extensions for setup (#10737)Aaron O'Mullan
2021-05-21fix(bench_util): correctly run async benches in tokio context (#10736)Aaron O'Mullan
2021-05-21fix(runtime/http): fix empty blob response (#10689)Yoshiya Hinosawa
2021-05-21chore(lsp): provide test for lsp deadlock issue (#10679)Kitson Kelly
Resolves: #10587
2021-05-20chore: add README to bench_util/ (#10712)Bartek Iwańczuk
2021-05-20fix(cli/tools/test_runner): --doc should not require permissions (#10719)Casper Beyer
2021-05-20fix(lsp): re-enable the per resource configuration without a deadlock (#10625)Kitson Kelly
Fixes #10603
2021-05-20fix(cli/dts): fix missing error class (NotSupported) in types (#10713)Carter Snook
2021-05-19chore: publish deno_bench_util crate (#10709)Bartek Iwańczuk
2021-05-19fix(cli): always allow documentation modules to be checked (#10581)Casper Beyer
2021-05-19refactor(core): move ModuleMap to separate RefCell (#10656)Bartek Iwańczuk
This commit moves bulk of the logic related to module loading from "JsRuntime" to "ModuleMap". Next steps are to rewrite the actual loading logic (represented by "RecursiveModuleLoad") to be a part of "ModuleMap" as well -- that way we will be able to track multiple module loads from within the map which should help me solve the problem of concurrent loads (since all info about currently loading/loaded modules will be contained in the ModuleMap, so we'll be able to know if actually all required modules have been loaded).
2021-05-19fix(serde_v8): remove intentional deserialization error on non-utf8 strings ↵Aaron O'Mullan
(#10156) Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-05-19tooling: re-enable bench_util (#10674)Aaron O'Mullan
2021-05-19test(cli/dts): typecheck examples in declaration files (#10707)Casper Beyer
This commits adds two integration tests that typecheck examples in the docstrings in Deno declaration files.
2021-05-19ci: fix 'skip save cache' step in windows CI (#10704)Yoshiya Hinosawa
2021-05-19fix(cli/tools/test_runner): use file_fetcher.fetch to get sources (#10708)Casper Beyer
2021-05-19fix(cli): canonicalize coverage dir (#10364)Casper Beyer
2021-05-19docs(cli/dts): fix plugin example (#10647)Casper Beyer
2021-05-19fix(runtime/http): expose nextRequest() errors in respondWith() (#10384)Nayeem Rahman
2021-05-19fix(webstorage): use opstate for sqlite connection (#10692)crowlKats
Fixes #10691
2021-05-19fix(#10695): deps diagnostics include data property (#10696)Kitson Kelly
Fixes #10695
2021-05-19docs(cli/dts): make worker example pass (#10703)Casper Beyer
2021-05-19docs: fix unix socket examples (#10705)Casper Beyer
2021-05-19fix(deno install): support `file:` scheme URLs (#10562)Satya Rohith
2021-05-19docs(cli/dts): fix typo in `TestDefinition.only` description (#10697)Casper Beyer
2021-05-19docs: fix misspelling (#10683)Raika Toriyama
2021-05-19fix(runtime): support source maps with Deno.emit() and bundle (#10510)Satya Rohith
Closes: #10413
2021-05-19docs: update getting started for clarity (#10694)Kitson Kelly
Co-authored-by: RobyCigar <69680330+RobyCigar@users.noreply.github.com>
2021-05-19docs(typescript): fix typo in faqs (#10682)Raika Toriyama
2021-05-18fix(lsp): make failed to load config error descriptive (#10685)Satya Rohith