From 816d1aef9c6feb500dd60f89035ec00c7690ffca Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 13 Oct 2023 17:44:46 +0900 Subject: [PATCH] feat: deno_graph 0.57 (#150) --- Cargo.lock | 5 +++-- Cargo.toml | 2 +- lib/Cargo.toml | 2 +- lib/lib.rs | 1 + src/examples/builder.rs | 1 + src/v2.rs | 1 + 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 41ba0e3..c2bcafb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -304,9 +304,9 @@ dependencies = [ [[package]] name = "deno_graph" -version = "0.56.0" +version = "0.57.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36ea06eb5d80c3b22d93b5bf7c48280a4dddf00f0f775d5181ab68ffcb64d0fb" +checksum = "5b943d9c20f0823bfeb52d6fd9bf073c2567cd708b7422d2052cb259124089ba" dependencies = [ "anyhow", "async-trait", @@ -314,6 +314,7 @@ dependencies = [ "deno_ast", "deno_semver", "futures", + "import_map", "indexmap 2.0.0", "monch", "once_cell", diff --git a/Cargo.toml b/Cargo.toml index 49c2233..c83c756 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ path = "src/examples/viewer.rs" anyhow = "1" base64 = "0.21.0" deno_ast = { version = "0.29.3", features = ["transpiling"] } -deno_graph = "0.56.0" +deno_graph = "0.57.0" deno_npm = "0.15.0" deno_semver = "0.5.0" futures = "0.3.26" diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 1994e74..2d14504 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -14,7 +14,7 @@ crate-type = ["cdylib"] [dependencies] anyhow = "1" console_error_panic_hook = "0.1.7" -deno_graph = "0.56.0" +deno_graph = "0.57.0" eszip = { path = "../" } import_map = "0.15.0" js-sys = { version = "0.3.64" } diff --git a/lib/lib.rs b/lib/lib.rs index 7f36ef9..7059246 100644 --- a/lib/lib.rs +++ b/lib/lib.rs @@ -386,6 +386,7 @@ impl Resolver for GraphResolver { &self, specifier: &str, referrer: &deno_graph::ModuleSpecifier, + _mode: deno_graph::source::ResolutionMode, ) -> Result { if let Some(import_map) = &self.0 { import_map diff --git a/src/examples/builder.rs b/src/examples/builder.rs index 85fdb3b..15142a7 100644 --- a/src/examples/builder.rs +++ b/src/examples/builder.rs @@ -95,6 +95,7 @@ impl deno_graph::source::Resolver for Resolver { &self, specifier: &str, referrer: &deno_graph::ModuleSpecifier, + _mode: deno_graph::source::ResolutionMode, ) -> Result { if let Some(import_map) = &self.0 { import_map diff --git a/src/v2.rs b/src/v2.rs index 6a0b6c4..ee68ff8 100644 --- a/src/v2.rs +++ b/src/v2.rs @@ -1221,6 +1221,7 @@ mod tests { &self, specifier: &str, referrer: &ModuleSpecifier, + _mode: deno_graph::source::ResolutionMode, ) -> Result { self .0