summaryrefslogtreecommitdiff
path: root/runtime
AgeCommit message (Collapse)Author
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
2020-12-15fix: make DNS resolution async (#8743)Yusuke Tanaka
This commit adds a new function that is an asynchronous version of `resolve_addr` using `tokio::net::lookup_host`, and accordingly, renames the synchronous version to `resolve_addr_sync`. This allows async ops to resolve hosts with non-blocking.
2020-12-14chore: release crates (#8765)Bartek Iwańczuk
2020-12-14Revert "build: Factor out common code into core/build_util.rs (#8756)" (#8763)Bartek Iwańczuk
This reverts commit 502c77aad969fe8557aaf6d56432f94450c26a2a.
2020-12-14fix(repl): recover from invalid input (#8759)Casper Beyer
2020-12-14chore: release crates (#8760)Bartek Iwańczuk
2020-12-14chore: release deno_runtime 0.2.0 (#8758)Bartek Iwańczuk
2020-12-14fix: docs.rs detection (#8755)Ryan Dahl
2020-12-14build: Factor out common code into core/build_util.rs (#8756)Ryan Dahl
2020-12-13chore: release crates (#8744)Bartek Iwańczuk
2020-12-13refactor: deno_runtime crate (#8640)Bartek Iwańczuk
This commit moves Deno JS runtime, ops, permissions and inspector implementation to new "deno_runtime" crate located in "runtime/" directory. Details in "runtime/README.md". Co-authored-by: Ryan Dahl <ry@tinyclouds.org>