summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2021-06-26fix(fetch): encode and decode headers as byte strings (#11070)Andreu Botella
2021-06-26fix: MessagePort in message for postMessage transfers (#11103)Luca Casonato
2021-06-26feat(core): Re-export serde_v8 (#11125)Nick Randall
2021-06-25chore: upgrade serde_v8 (#11120)Bartek Iwańczuk
2021-06-25upgrade: rusty_v8 0.23.0 (V8 9.2.230.12) (#11113)Ryan Dahl
2021-06-25fix(runtime/signal): use op_async_unref for op_signal_poll (#11097)Yoshiya Hinosawa
2021-06-23docs(core): Use op name in example (#11094)Maxime Guerreiro
The first argument to opSync/opAsync is the op name. In the examples, the name is 'hello', and so it should be the first argument.
2021-06-22cleanup(core): top-level-await is now always enabled (#11082)Maxime Guerreiro
Starting with V8 9.1, top-level-await is always enabled by default. See https://v8.dev/blog/v8-release-91 for the release notes. - Remove the now redundant v8 flag. - Clarify doc comment and add link to the feature explainer.
2021-06-22fix(core): don't panic on stdout/stderr write failures in Deno.core.print ↵Charlie Moog
(#11039)
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-21refactor(core): always attach inspector to isolate (#11042)Bartek Iwańczuk
This commit changes "deno_core::JsRuntime" to always create "deno_core::JsRuntimeInspector" instance.
2021-06-21chore: release crates (#11068)Bartek Iwańczuk
2021-06-20docs(core): replaces dispatch references with op (#11054)Max
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-19chore: upgrade Tokio to 1.7.1 (#11045)Yusuke Tanaka
2021-06-17chore: upgrade Rust to 1.53.0 (#11021)Yusuke Tanaka
2021-06-16chore: upgrade Tokio to 1.7.0 (#11008)Yusuke Tanaka
2021-06-15chore: release crates (#10976)Bartek Iwańczuk
2021-06-09chore: move serde_v8 to separate repo (#10909)Bartek Iwańczuk
Now available at https://github.com/denoland/serde_v8
2021-06-08chore: release crates (#10896)Bartek Iwańczuk
2021-06-08upgrade: rusty_v8 0.22.3 (#10892)Bartek Iwańczuk
2021-06-06tests: run wpt scripts with Deno.core.evalContext (#10852)Luca Casonato
This means wpts are now run in script context, and there are better stack traces.
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-05-31Merge v1.10.3 into main (#10801)Bert Belder
2021-05-31v1.10.3Bert Belder
2021-05-31fix(cli): Don't statically error on dynamic unmapped bare specifiers (#10618)Nayeem Rahman
Fixes #10168 Fixes #10615 Fixes #10616
2021-05-31chore: upgrade Tokio to 1.6.1 (#10782)Yusuke Tanaka
2021-05-31fix(cli): Don't statically error on dynamic unmapped bare specifiers (#10618)Nayeem Rahman
Fixes #10168 Fixes #10615 Fixes #10616
2021-05-29core: don't include_str extension js code (#10786)Luca Casonato
This speeds up incremental rebuild when only touching JS files by 13-15% Rebuild time after `touch 01_broadcast_channel.js`: main: run 1 49.18s, run 2 50.34s this: run 1 43.12s, run 2 43.19s
2021-05-29chore: upgrade Tokio to 1.6.1 (#10782)Yusuke Tanaka
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-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-19tooling: re-enable bench_util (#10674)Aaron O'Mullan
2021-05-18cleanup(core.js): make op wrapper arg names generic (#10675)Aaron O'Mullan
These bits were missed in #10448.
2021-05-17chore: release crates (#10661)Luca Casonato
For the Deno 1.10.2 release.
2021-05-17chore: update dependencies (#10660)Luca Casonato
2021-05-15cleanup(core/example/hello_world): use Deno.core.print instead of new op ↵Aaron O'Mullan
(#10645)
2021-05-15cleanup(core): flatten print's op args (#10643)Aaron O'Mullan
2021-05-15chore: upgrade Tokio to 1.6.0 (#10637)Yusuke Tanaka
2021-05-11chore: release crates (#10596)Bartek Iwańczuk
2021-05-11feat(runtime/worker): Structured cloning worker message passing (#9323)Tim Ramlot
This commit upgrade "Worker.postMessage()" implementation to use structured clone algorithm instead of non-spec compliant JSON serialization.
2021-05-10upgrade: rusty_v8 0.22.2 (#10551)Bartek Iwańczuk
2021-05-09docs: fix a tiny typo (#10535)heddi.nabbisen
2021-05-08cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530)Aaron O'Mullan
2021-05-07fix: align plugin api with Extension (#10427)Elias Sjögreen
2021-05-06refactor(ops): replace `ZeroCopyBuf` arg by 2nd generic deserializable arg ↵Aaron O'Mullan
(#10448)
2021-05-03fix(core): error registration could pollute constructors (#10422)Aaron O'Mullan
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-05-03fix(core/print): flush stderr (#10480)Aaron O'Mullan
2021-05-02refactor(core): convert core.print() to a builtin op (#10436)Aaron O'Mullan
2021-05-01fix(core): fix typo in error message of print function (#10456)Aditya Pandit