diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-07-31 18:31:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-31 18:31:03 -0400 |
commit | d3419f7d147b8c362a3795c8284d55ff6f4f3492 (patch) | |
tree | 1518a685d93c908a8820bd72d2958c6e06182c2c /cli | |
parent | 6267905f096f03dec1a5ed92609192edff901148 (diff) |
perf: update deno_ast to 0.41 (#24819)
Some perf gains in swc (I measured formatting and it was slightly
faster).
Includes:
* https://github.com/denoland/deno_graph/pull/508
* https://github.com/denoland/eszip/pull/193
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 14 | ||||
-rw-r--r-- | cli/args/mod.rs | 1 | ||||
-rw-r--r-- | cli/lsp/code_lens.rs | 2 | ||||
-rw-r--r-- | cli/lsp/testing/collectors.rs | 8 | ||||
-rw-r--r-- | cli/tools/compile.rs | 1 | ||||
-rw-r--r-- | cli/tools/repl/session.rs | 1 |
6 files changed, 15 insertions, 12 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index c8b76bf9f..a2d63ff32 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -67,10 +67,10 @@ deno_ast = { workspace = true, features = ["bundler", "cjs", "codegen", "proposa deno_cache_dir = { workspace = true } deno_config = { version = "=0.26.1", features = ["workspace", "sync"] } deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] } -deno_doc = { version = "0.144.0", features = ["html", "syntect"] } -deno_emit = "=0.43.1" -deno_graph = { version = "=0.80.1", features = ["tokio_executor"] } -deno_lint = { version = "=0.61.0", features = ["docs"] } +deno_doc = { version = "0.145.0", features = ["html", "syntect"] } +deno_emit = "=0.44.0" +deno_graph = { version = "=0.81.0" } +deno_lint = { version = "=0.62.0", features = ["docs"] } deno_lockfile.workspace = true deno_npm = "=0.21.4" deno_package_json.workspace = true @@ -78,7 +78,7 @@ deno_runtime = { workspace = true, features = ["include_js_files_for_snapshottin deno_semver = "=0.5.7" deno_task_shell = "=0.17.0" deno_terminal.workspace = true -eszip = "=0.72.2" +eszip = "=0.73.0" napi_sym.workspace = true node_resolver.workspace = true @@ -100,8 +100,8 @@ dissimilar = "=1.0.4" dotenvy = "0.15.7" dprint-plugin-json = "=0.19.3" dprint-plugin-jupyter = "=0.1.3" -dprint-plugin-markdown = "=0.17.1" -dprint-plugin-typescript = "=0.91.4" +dprint-plugin-markdown = "=0.17.2" +dprint-plugin-typescript = "=0.91.5" env_logger = "=0.10.0" fancy-regex = "=0.10.0" faster-hex.workspace = true diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 76644028c..7ae003111 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -202,6 +202,7 @@ pub fn ts_config_to_transpile_and_emit_options( inline_sources: options.inline_sources, remove_comments: false, source_map, + source_map_base: None, source_map_file: None, }, )) diff --git a/cli/lsp/code_lens.rs b/cli/lsp/code_lens.rs index 2996103be..e117888fb 100644 --- a/cli/lsp/code_lens.rs +++ b/cli/lsp/code_lens.rs @@ -107,7 +107,7 @@ impl DenoTestCollector { for prop in &obj_lit.props { if let ast::PropOrSpread::Prop(prop) = prop { if let ast::Prop::KeyValue(key_value_prop) = prop.as_ref() { - if let ast::PropName::Ident(ast::Ident { sym, .. }) = + if let ast::PropName::Ident(ast::IdentName { sym, .. }) = &key_value_prop.key { if sym == "name" { diff --git a/cli/lsp/testing/collectors.rs b/cli/lsp/testing/collectors.rs index 7b00228df..2f2ddb877 100644 --- a/cli/lsp/testing/collectors.rs +++ b/cli/lsp/testing/collectors.rs @@ -147,7 +147,7 @@ fn visit_call_expr( let ast::Prop::KeyValue(key_value_prop) = prop.as_ref() else { continue; }; - let ast::PropName::Ident(ast::Ident { sym, .. }) = + let ast::PropName::Ident(ast::IdentName { sym, .. }) = &key_value_prop.key else { continue; @@ -187,7 +187,7 @@ fn visit_call_expr( }; match prop.as_ref() { ast::Prop::KeyValue(key_value_prop) => { - let ast::PropName::Ident(ast::Ident { sym, .. }) = + let ast::PropName::Ident(ast::IdentName { sym, .. }) = &key_value_prop.key else { continue; @@ -206,7 +206,7 @@ fn visit_call_expr( } } ast::Prop::Method(method_prop) => { - let ast::PropName::Ident(ast::Ident { sym, .. }) = + let ast::PropName::Ident(ast::IdentName { sym, .. }) = &method_prop.key else { continue; @@ -472,7 +472,7 @@ impl Visit for TestCollector { collector: &mut TestCollector, node: &ast::CallExpr, range: &deno_ast::SourceRange, - ns_prop_ident: &ast::Ident, + ns_prop_ident: &ast::IdentName, member_expr: &ast::MemberExpr, ) { if ns_prop_ident.sym == "test" { diff --git a/cli/tools/compile.rs b/cli/tools/compile.rs index 4df8e772b..bb03f03d2 100644 --- a/cli/tools/compile.rs +++ b/cli/tools/compile.rs @@ -102,6 +102,7 @@ pub async fn compile( emit_options, // make all the modules relative to the root folder relative_file_base: Some(root_dir_url), + npm_packages: None, })?; log::info!( diff --git a/cli/tools/repl/session.rs b/cli/tools/repl/session.rs index ee67bb014..3e43ea3ab 100644 --- a/cli/tools/repl/session.rs +++ b/cli/tools/repl/session.rs @@ -642,6 +642,7 @@ impl ReplSession { }, &deno_ast::EmitOptions { source_map: deno_ast::SourceMapOption::None, + source_map_base: None, source_map_file: None, inline_sources: false, remove_comments: false, |