summaryrefslogtreecommitdiff
path: root/runtime
AgeCommit message (Collapse)Author
2021-01-17fix(op_crates/web): Use WorkerLocation for location in workers (#9084)Nayeem Rahman
2021-01-17chore: Enforce ban-untagged-todo lint rule (#9135)Bartek Iwańczuk
2021-01-15core(runtime): fix copyright in date (#9116)Liam Murphy
2021-01-15refactor(op_crates/crypto): Prefix ops with "op_crypto_" (#9067)Yacine Hmito
2021-01-15refactor(op_crate/fetch): align streams to spec (#9103)Kitson Kelly
Fixes #8814
2021-01-14fix: don't swallow customInspect exceptions (#9095)Steven Guerrero
2021-01-14refactor: make Process#kill() throw sensible errors on Windows (#9111)Bert Belder
Previously, calling `Process#kill()` after the process had exited would sometimes throw a `TypeError` on Windows. After this patch, it will throw `NotFound` instead, just like other platforms. This patch also fixes flakiness of the `runKillAfterStatus` test on Windows.
2021-01-13release cratesRyan Dahl
2021-01-12feat(runtime/tls): add global tls session cache (#8877)Ben Noordhuis
Fixes #8875
2021-01-12feat: stabilize Deno.shutdown() and Conn#closeWrite()Bartek Iwańczuk
Closes: #9099
2021-01-12fix(cli): dispatch unload on exit (#9088)Yoshiya Hinosawa
2021-01-11chore: update copyright year (#9094)Yoshiya Hinosawa
2021-01-11upgrade: tokio 1.0 (#8779)Bartek Iwańczuk
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-10update copyright to 2021 (#9081)Ryan Dahl
2021-01-10feat(fetch): req streaming + 0-copy resp streaming (#9036)Luca Casonato
* feat(fetch): req streaming + 0-copy resp streaming * lint * lint * fix test * rm test.js * explicitly use CancelHandle::default() * Apply review suggestions Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> * fix test * Merge remote-tracking branch 'origin/master' into fetch_real_streaming * fix test * retrigger ci Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
2021-01-10tests(wpt/console): Enables web platform tests for console (#9013)Tarik Eshaq
2021-01-08fix(runtime): use tokio for async fs ops (#9042)Casper Beyer
This commit makes following ops async: - op_fstat_async - op_ftruncate_async - op_seek_async - op_fdatasync_async - op_fsync_async - op_futime_async
2021-01-08fix: Worker hangs when posting "undefined" as message (#8920)yonatan ben avraham
This commit fixes hang in web workers occuring when sending "undefined" as message value. It is a temporary band-aid until proper structured close is implemented. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-01-08feat: denort binary (#9041)Luca Casonato
This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-01-07feat: add --location=<href> and globalThis.location (#7369)Nayeem Rahman
2021-01-07fix: Use "none" instead of false to sandbox Workers (#9034)Nayeem Rahman
2021-01-06feat: Add configurable permissions for Workers (#8215)Steven Guerrero
This commit adds new option to "Worker" Web API that allows to configure permissions. New "Worker.deno.permissions" option can be used to define limited permissions to the worker thread by either: - inherit set of parent thread permissions - use limited subset of parent thread permissions - revoke all permissions (full sandbox) In order to achieve this functionality "CliModuleLoader" was modified to accept "initial permissions", which are used for top module loading (ie. uses parent thread permission set to load top level module of a worker).
2021-01-06refactor: move WebSocket API to an op_crate (#9026)Luca Casonato
2021-01-06fix: stronger input checking for setTimeout; add function overload (#8957)Anonymous
2021-01-06feat(cli): support data urls (#8866)Kitson Kelly
Closes: #5059 Co-authored-by: Valentin Anger <syrupthinker@gryphno.de>
2021-01-06fix: align performance API to spec using WPT (#9012)Luca Casonato
2021-01-05fix(runtime/websocket): respond to ping with pong (#8974)crowlKats
2021-01-05feat(cli/standalone): support runtime flags for deno compile (#8738)Nayeem Rahman
2021-01-04fix(inspector): kill child process after test (#8986)Ben Noordhuis
The child process kept running and printing "hello" to stdout. This commit also removes the dependency on reqwest and instead switches to the re-export from the fetch crate. Brings back commit 1a2e7741c33490d2a91147966019853c6b1d6a48.
2021-01-04Revert "fix(inspector): add back list endpoint (#8894)" (#8977)Luca Casonato
This reverts commit 1a2e7741c33490d2a91147966019853c6b1d6a48.
2021-01-04fix: panic on invalid file:// module specifier (#8964)Maayan Hanin
2021-01-03fix(inspector): add back list endpoint (#8894)Liam Perlaki
This commit adds back "/json/list" endpoint to inspector server which was erroneously removed during server rewrite. Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
2021-01-02upgrade: Rust 1.49.0 (#8955)Bartek Iwańczuk
2021-01-01refactor(cli): runtime compiler APIs consolidated to Deno.emit() (#8799)Kitson Kelly
Closes: #4752
2020-12-30BREAKING(unstable): Use hosts for net allowlists (#8845)Nayeem Rahman
Allowlist checking already uses hosts but for some reason requests, revokes and the runtime permissions API use URLs. - BREAKING(lib.deno.unstable.d.ts): Change NetPermissionDescriptor::url to NetPermissionDescriptor::host - fix(runtime/permissions): Don't add whole URLs to the allowlist on request - fix(runtime/permissions): Harden strength semantics: ({ name: "net", host: "127.0.0.1" } is stronger than { name: "net", host: "127.0.0.1:8000" }) for blocklisting - refactor(runtime/permissions): Use tuples for hosts, make the host optional in Permissions::{query_net, request_net, revoke_net}()
2020-12-30chore: release crates (#8931)Bartek Iwańczuk
2020-12-29refactor(runtime): return iterator from resolve_addr (#8891)Yusuke Tanaka
2020-12-29refactor(cli/flags): change allow_read/write/net types from bool to ↵Yusuke Tanaka
Option<Vec<T>> (#8896) This PR refactors "cli/flags.rs" and "runtime/permissions.rs" so that "allow_read", "allow_write" and "allow_net" themselves have allowlists, instead of storing them in additional fields.
2020-12-22chore: release crates (#8854)Bartek Iwańczuk
2020-12-21refactor(runtime): remove warp dependency (#8813)Liam Perlaki
This commit replaces the "warp" web server in the "deno_runtime" crate with a "hyper" server and a "tokio-tungstenite" websocket implementation.
2020-12-21feat(unstable): record raw coverage into a directory (#8642)Casper Beyer
2020-12-20Revert "fix: TLA in web worker (#8809)" (#8839)Bartek Iwańczuk
This reverts commit e924bbdf3606e83ff9eef3a8ed640c4ecc34444f.
2020-12-20fix: TLA in web worker (#8809)Bartek Iwańczuk
Implementors of `deno_core::JsRuntime` might want to do additional actions during each turn of event loop, eg. `deno_runtime::Worker` polls inspector, `deno_runtime::WebWorker` receives/dispatches messages from/to worker host. Previously `JsRuntime::mod_evaluate` was implemented in such fashion that it only polled `JsRuntime`'s event loop. This behavior turned out to be wrong in the example of `WebWorker` which couldn't receive/dispatch messages because its implementation of event loop was never called. This commit rewrites "mod_evaluate" to return a handle to receiver that resolves when module's promise resolves. It is now implementors responsibility to poll event loop after calling `mod_evaluate`.
2020-12-19upgrade: rustyline 7.1.0 (#8829)Bartek Iwańczuk
2020-12-18fix(runtime/websocket): remove eprintln (#8817)crowlKats
2020-12-17refactor: Rename runtime/rt to runtime/js (#8806)Nayeem Rahman
2020-12-17chore(runtime): fix typo (#8791)Yusuke Tanaka
2020-12-16refactor: rewrite ops to use ResourceTable2 (#8512)Bartek Iwańczuk
This commit migrates all ops to use new resource table and "AsyncRefCell". Old implementation of resource table was completely removed and all code referencing it was updated to use new system.
2020-12-15refactor: remove dead code (#8781)Bartek Iwańczuk