summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2021-07-26chore: release crates (#11519)Bartek Iwańczuk
2021-07-26refactor: use `primordials` in runtime, extensions and core (#11500)Yusuke Tanaka
2021-07-19chore: release crates (#11454)Bartek Iwańczuk
2021-07-13chore: release crates (#11378)Bartek Iwańczuk
2021-07-12chore: upgrade rusty_v8 (#11372)Bartek Iwańczuk
2021-07-09chore: update crates (#11332)Luca Casonato
2021-07-08feat(core): return v8::Value from JsRuntime::execute_script (#11129)Bartek Iwańczuk
This commit changes return type of JsRuntime::execute_script to include v8::Value returned from evaluation. When embedding deno_core it is sometimes useful to be able to inspect script evaluation value without the hoops of adding ops to store the value on the OpState. v8::Global<v8::Value> is used so consumers don't have to pass scope themselves.
2021-07-08perf(core): avoid extra alloc in Deno.core.encode() (#11323)Aaron O'Mullan
2021-07-06chore: use parking_lot for synchronization primitives to align with tokio ↵David Sherret
(#11289) parking_lot is already transitively used in tokio via the "full" cargo feature
2021-07-06feat: support SharedArrayBuffer sharing between workers (#11040)Luca Casonato
This commit adds support for sharing SABs between workers.
2021-07-06refactor: use primordials in extensions/web (#11273)Bartek Iwańczuk
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2021-07-05fix(core): Delay deadlock detection for dynamic imports (#11282)Nayeem Rahman
2021-07-05chore: upgrade Tokio to 1.8.0 (#11281)Yusuke Tanaka
2021-07-05refactor: introduce primordials for web/streams (#11251)Luca Casonato
2021-07-03feat: enable WebAssembly.instantiateStreaming and wasm async compilation ↵Andreu Botella
(#11200) The WebAssembly streaming APIs used to be enabled, but used to take buffer sources as their first argument (see #6154 and #7259). This change re-enables them, requiring a Promise<Response> instead, as well as enabling asynchronous compilation of WebAssembly modules.
2021-07-03chore: add TypedArray to primordials typings (#11236)Luca Casonato
2021-07-02chore: upgrade rusty_v8 and serde_v8 (#11233)Bartek Iwańczuk
2021-07-02refactor: use primordials for extensions/webidl (#11227)Luca Casonato
2021-07-02refactor: introduce primordials (#10939)Luca Casonato
This commit introduces primordials to deno_core. Primordials are a frozen set of all intrinsic objects in the runtime. They are not vulnerable to prototype pollution.
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-07-02chore: upgrade rusty_v8 and serde_v8 (#11216)Bartek Iwańczuk
2021-06-29fix(core/modules): Fix concurrent loading of dynamic imports (#11089)Nayeem Rahman
This commit changes implementation of module loading in "deno_core" to track all currently fetched modules across all existing module loads. In effect a bug that caused concurrent dynamic imports referencing the same module to fail is fixed.
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-28chore: release deno_core (#11164)Bartek Iwańczuk
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(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