From ade0cd5e97e25896457624a0ec6bf524a5fa5c20 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 11 Apr 2024 19:00:17 -0400 Subject: fix: upgrade deno_ast related crates (#23187) Had to revert back swc due to https://github.com/swc-project/swc/issues/8840 Fixes: - https://github.com/denoland/deno_lint/pull/1262 - https://github.com/denoland/deno_doc/pull/538 - https://github.com/denoland/deno_doc/pull/537 - https://github.com/denoland/deno_graph/pull/430 - https://github.com/denoland/deno_graph/pull/425 - https://github.com/denoland/deno_graph/pull/432 --- cli/tools/registry/graph.rs | 2 ++ cli/tools/registry/unfurl.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'cli/tools/registry') diff --git a/cli/tools/registry/graph.rs b/cli/tools/registry/graph.rs index 0310a97c6..001f85e76 100644 --- a/cli/tools/registry/graph.rs +++ b/cli/tools/registry/graph.rs @@ -59,6 +59,8 @@ pub fn collect_invalid_external_imports( let options = WalkOptions { check_js: true, follow_dynamic: true, + // this being disabled will cause it to follow everything in the graph + prefer_fast_check_graph: false, follow_type_only: true, }; let mut iter = graph.walk(&graph.roots, options); diff --git a/cli/tools/registry/unfurl.rs b/cli/tools/registry/unfurl.rs index 2224d0870..f45b6ffc3 100644 --- a/cli/tools/registry/unfurl.rs +++ b/cli/tools/registry/unfurl.rs @@ -4,9 +4,9 @@ use deno_ast::ParsedSource; use deno_ast::SourceRange; use deno_ast::SourceTextInfo; use deno_core::ModuleSpecifier; -use deno_graph::DefaultModuleAnalyzer; use deno_graph::DependencyDescriptor; use deno_graph::DynamicTemplatePart; +use deno_graph::ParserModuleAnalyzer; use deno_graph::TypeScriptReference; use deno_runtime::deno_node::is_builtin_node_module; @@ -192,7 +192,7 @@ impl<'a> SpecifierUnfurler<'a> { diagnostic_reporter: &mut dyn FnMut(SpecifierUnfurlerDiagnostic), ) -> String { let mut text_changes = Vec::new(); - let module_info = DefaultModuleAnalyzer::module_info(parsed_source); + let module_info = ParserModuleAnalyzer::module_info(parsed_source); let analyze_specifier = |specifier: &str, range: &deno_graph::PositionRange, -- cgit v1.2.3