summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-19feat(ext/web): add globalThis.reportError() (#13799)Nayeem Rahman
2022-04-18perf: move Deno.writeTextFile and like functions to Rust (#14221)David Sherret
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-04-18chore: update wpt (#14313)Luca Casonato
2022-04-18feat: Add DENO_NO_PROMPT variable (#14209)Nayeem Rahman
This commit adds support for "DENO_NO_PROMPT" env variable, that can be used instead of "--no-prompt" flag to completely disable permission prompts.
2022-04-18fix(fmt): regression where some short if stmt headers being split on ↵David Sherret
multiple lines (#14292) Closes #14291
2022-04-18fix(cli/emit): Check JS roots with // @ts-check (#14090)Nayeem Rahman
2022-04-18feat(test): skip internal stack frames for errors (#14302)Bartek Iwańczuk
This commit changes "deno test" to filter out stack frames if it is beneficial to the user. This is the case when there are stack frames coming from "internal" code below frames coming from user code. Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2022-04-18fix(permissions): fallback to denied access if the permission prompt fails ↵David Sherret
(#14235)
2022-04-17fix: panic when trying to pledge permissions before restoring previous ↵Bartek Iwańczuk
pledge (#14306) This commit fixes and edge case, where testing/benching code could pledge new permission set before restoring the previous pledge. Appropriate panics were added and tests that assert that process is killed in case of "recursive pledge".
2022-04-17feat(core): Add initial support for realms (#14019)Andreu Botella
This commit adds tentative support for multiple realms in "deno_core". It adds the "JsRealm" API that adds methods like "JsRuntime"'s "handle_scope", "global_object" and "execute_script" specific to the realm.
2022-04-16fix(cli/tools/test): Prefix test module paths with "./" (#14301)Nayeem Rahman
2022-04-16feat(test): use structured data for JavaScript errors in tests (#14287)Bartek Iwańczuk
This commit rewrites test runner to send structured error data from JavaScript to Rust instead of passing strings. This will allow to customize display of errors in test report (which will be addressed in follow up commits).
2022-04-16fix(tools/wpt): replace deprecated writeAllSync and writeAll (#14282)Feng Yu
2022-04-16feat: Better formatting for AggregateError (#14285)Bartek Iwańczuk
This commit adds "aggregated" field to "deno_core::JsError" that stores instances of "JsError" recursively to properly handle "AggregateError" formatting. Appropriate logics was added to "PrettyJsError" and "console" API to format AggregateErrors. Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2022-04-16refactor: update runtime code for primordial check x in y (#13642)Bartek Iwańczuk
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-04-15refactor: Move source map lookups to core (#14274)Nayeem Rahman
The following transformations gradually faced by "JsError" have all been moved up front to "JsError::from_v8_exception()": - finding the first non-"deno:" source line; - moving "JsError::script_resource_name" etc. into the first error stack in case of syntax errors; - source mapping "JsError::script_resource_name" etc. when wrapping the error even though the frame locations are source mapped earlier; - removing "JsError::{script_resource_name,line_number,start_column,end_column}" entirely in favour of "js_error.frames.get(0)". We also no longer pass a js-side callback to "core/02_error.js" from cli. I avoided doing this on previous occasions because the source map lookups were in an awkward place.
2022-04-15chore: release fixes based on doing the v1.20.6 release (#14289)David Sherret
2022-04-15feat(test): format user code output (#14271)Bartek Iwańczuk
This commit changes "deno test" to better denote user output coming from test cases. This is done by printing "---- output ----" and "---- output end ----" markers if an output is produced. The output from "console" and "Deno.core.print" is captured, as well as direct writes to "Deno.stdout" and "Deno.stderr". To achieve that new APIs were added to "deno_core" crate, that allow to replace an existing resource with a different one (while keeping resource ids intact). Resources for stdout and stderr are replaced by pipes. Co-authored-by: David Sherret <dsherret@gmail.com>
2022-04-14chore: forward v1.20.6 release commit to main (#14288)David Sherret
2022-04-13chore: use lock file for tooling scripts (#14253)Bartek Iwańczuk
This commit adds lock file for maintenance scripts in "tools/" directory. The lock file is stored in "tools/deno.lock.json".
2022-04-13chore: rephrase env var help (#14270)Bartek Iwańczuk
2022-04-13refactor(core/error): Clarify JsError message fields (#14269)Nayeem Rahman
2022-04-13fix(test): Don't error on missing op details (#14184)AEtheve
2022-04-13chore: add info about DENO_FUTURE_CHECK env var to --help (#14267)Bartek Iwańczuk
2022-04-13feat(ext/web): Add error events for event listener and timer errors (#14159)Nayeem Rahman
- feat: Add handleable error event for even listener errors - feat: Add handleable error event for setTimeout()/setInterval() errors - feat: Add Deno.core.destructureError() - feat: Add Deno.core.terminate() - fix: Don't throw listener errors from dispatchEvent() - fix: Use biased mode when selecting between mod_evaluate() and run_event_loop() results
2022-04-12fix(serde_v8): more robust number deserialization (#14216)Aaron O'Mullan
Fixes #14128
2022-04-11feat(test): Improve testing report output (#14255)Bartek Iwańczuk
Following changes were done in this commit: - remove "test" prefix before each test - use gray color for "running N tests from ..." prompt - use relative path or remote URL instead of full URL in "running N tests from ..." prompt - in "failures" section, add file path/remote URL before the test name Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-04-11chore: use local copy of std in tools/bench/ scripts (#14251)Bartek Iwańczuk
2022-04-11refactor: improve help text (#14249)Ryan Dahl
2022-04-11feat: Add "deno check" subcommand for type checking (#14072)Bartek Iwańczuk
This commit adds new "deno check" subcommand. Currently it is an alias for "deno cache" with the difference that remote modules don't emit TS diagnostics by default. Prints warning for "deno run" subcommand if "--check" flag is not present and there's no "--no-check" flag. Adds "DENO_FUTURE_CHECK" env variable that allows to opt into new behavior now.
2022-04-08chore: update release instructions based on 1.20.5 release (#14239)David Sherret
2022-04-08fix: upgrade to swc_ecmascript 0.143 (#14238)David Sherret
2022-04-08feat(repl): Don't type check when importing modules (#14112)Arthur Lafrance
2022-04-08refactor(core): OpCtx (#14228)Aaron O'Mullan
2022-04-07chore: forward v1.20.5 release commit to main (#14232)David Sherret
2022-04-07fix(ext/crypto): check extractable in exportKey (#14222)EduM22
2022-04-06fix(cli/install): preserve compat flag (#14223)Valentin Anger
2022-04-06feat(test): Add "name", "origin" and "parent" to "Deno.TestContext" (#14007)Yongwook Choi
This commit adds following fields to "Deno.TestContext" interface: - name - origin - parent These are prerequisites for supporting snapshot functionality in "std/testing".
2022-04-04chore(ci): automatically open PR to forward patch release back to main (#14180)David Sherret
2022-04-04chore(ci): update deno_std release steps (#14178)David Sherret
2022-04-04chore(ext/websocket): custom arity (#14202)Divy Srivastava
2022-04-04chore(ext/http): custom arity (#14200)Divy Srivastava
2022-04-04chore(ext/broadcast_channel): custom arity (#14199)Divy Srivastava
2022-04-04chore(ext/webstorage): custom arity (#14201)Divy Srivastava
2022-04-03chore(ext/url): cleanup url ops (#14177)Divy Srivastava
2022-04-03refactor(lsp): migrate from lspower back to tower-lsp (#14163)Jason
2022-04-02chore: update tokio, tokio-util and libc dependencies (#14174)Bartek Iwańczuk
2022-04-02chore(ci): automatically include releases notes in release draft (#14179)David Sherret
2022-04-02experiment(serde_v8): derive_more enabled opaque wrappers (#14096)Aaron O'Mullan
2022-04-02feat(serde_v8): DetachedBuffer (#14102)Aaron O'Mullan