summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-02-24 20:23:51 -0500
committerGitHub <noreply@github.com>2023-02-25 01:23:51 +0000
commitd6192ce8fd053e5ba670b8d954bd8d8f5f040941 (patch)
tree896db54e71c481858224999b43d5c6212695ae09
parent033b70af19300a4e34dcf19ab0031245bfc19625 (diff)
fix: regression remapping remote specifier to local file (#17935)
Tests added to deno_graph, which were previously not there. Closes #17932
-rw-r--r--Cargo.lock4
-rw-r--r--cli/Cargo.toml2
-rw-r--r--cli/graph_util.rs2
-rw-r--r--cli/lsp/completions.rs2
4 files changed, 7 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 397f6063c..7be61f838 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1093,9 +1093,9 @@ dependencies = [
[[package]]
name = "deno_graph"
-version = "0.44.1"
+version = "0.44.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75a9fd8abbf9fd7e79762232611c188762b495919e1e8920bfd3d74b323edae3"
+checksum = "1a2cb8c414852294d5fb23d265725bbf1fab9608296e04301440dba14fef71e5"
dependencies = [
"anyhow",
"data-url",
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index 060a91fa1..dc90d34e5 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -46,7 +46,7 @@ deno_ast = { workspace = true, features = ["bundler", "cjs", "codegen", "dep_gra
deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] }
deno_doc = "0.57.0"
deno_emit = "0.16.0"
-deno_graph = "0.44.1"
+deno_graph = "=0.44.2"
deno_lint = { version = "0.40.0", features = ["docs"] }
deno_lockfile.workspace = true
deno_runtime = { workspace = true, features = ["dont_create_runtime_snapshot", "include_js_files_for_snapshotting"] }
diff --git a/cli/graph_util.rs b/cli/graph_util.rs
index 3578601a7..31645824d 100644
--- a/cli/graph_util.rs
+++ b/cli/graph_util.rs
@@ -442,6 +442,7 @@ mod test {
specifier: input.to_string(),
range: Range {
specifier,
+ text: "".to_string(),
start: Position::zeroed(),
end: Position::zeroed(),
},
@@ -458,6 +459,7 @@ mod test {
let err = ResolutionError::InvalidSpecifier {
range: Range {
specifier,
+ text: "".to_string(),
start: Position::zeroed(),
end: Position::zeroed(),
},
diff --git a/cli/lsp/completions.rs b/cli/lsp/completions.rs
index b89aec6c9..0c27500e2 100644
--- a/cli/lsp/completions.rs
+++ b/cli/lsp/completions.rs
@@ -681,6 +681,7 @@ mod tests {
&text_info,
&Range {
specifier: ModuleSpecifier::parse("https://deno.land").unwrap(),
+ text: "".to_string(),
start: deno_graph::Position {
line: 0,
character: 0,
@@ -705,6 +706,7 @@ mod tests {
&text_info,
&Range {
specifier: ModuleSpecifier::parse("https://deno.land").unwrap(),
+ text: "".to_string(),
start: deno_graph::Position {
line: 0,
character: 0,