From 783ce7fafe98b1c53844f8f88fcbaa6ab382517f Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 6 Apr 2023 10:42:30 -0400 Subject: [PATCH] feat: upgrade deno_graph to 0.46 (#331) --- Cargo.lock | 17 +++++++++++++++-- Cargo.toml | 2 +- deno.lock | 10 +++++----- js/mod.ts | 6 +++--- 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bfba4e59..4e23ceff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -380,13 +380,14 @@ dependencies = [ [[package]] name = "deno_graph" -version = "0.45.0" +version = "0.46.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c47969e9745b8ecd0bbf674e374a47a2cc465b00887716295b422ddb5ae56b" +checksum = "1fb5531f3c2be6926e51ce5888fcffa434ca83516c53d26563882533aee871d0" dependencies = [ "anyhow", "data-url", "deno_ast", + "deno_semver", "futures", "indexmap", "monch", @@ -399,6 +400,18 @@ dependencies = [ "url", ] +[[package]] +name = "deno_semver" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2d677702f75c9ff62afc3e06d24a4affa661d6a6cdbf3ca705af8a9170c71d" +dependencies = [ + "monch", + "serde", + "thiserror", + "url", +] + [[package]] name = "diff" version = "0.1.12" diff --git a/Cargo.toml b/Cargo.toml index b357ab64..9835fc07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ name = "ddoc" anyhow = { version = "1.0.58", optional = true } cfg-if = "1.0.0" deno_ast = "0.25.0" -deno_graph = "0.45.0" +deno_graph = "0.46.0" futures = "0.3.26" js-sys = { version = "=0.3.61", optional = true } import_map = "0.13.0" diff --git a/deno.lock b/deno.lock index 896b630f..559a072a 100644 --- a/deno.lock +++ b/deno.lock @@ -9,11 +9,11 @@ "https://deno.land/x/deno_graph@0.43.1/lib/media_type.ts": "a89a1b38d07c160e896de9ceb99285ba8391940140558304171066b5c3ef7609", "https://deno.land/x/deno_graph@0.43.1/lib/types.d.ts": "29dd92165cc3107a3ff3234a16742c7a7ea2ee21e330c71cc4c9d8b7a5397c41", "https://deno.land/x/deno_graph@0.43.1/mod.ts": "50e494fa1c9a286c4f9f161eb8cad5670d1fd11f07d26d5c7e88c813cf214a69", - "https://deno.land/x/deno_graph@0.45.0/lib/deno_graph_wasm.generated.js": "b7c8b93851bb6ea39351ecb19b727504d86b270ec7727a0749ee14da8ed0d882", - "https://deno.land/x/deno_graph@0.45.0/lib/loader.ts": "a2e757383908f4a51659fe1b1203386887ebb17756bac930a64856d613d8d57d", - "https://deno.land/x/deno_graph@0.45.0/lib/media_type.ts": "a89a1b38d07c160e896de9ceb99285ba8391940140558304171066b5c3ef7609", - "https://deno.land/x/deno_graph@0.45.0/lib/types.d.ts": "8f4101e79df43b526cd8d6528fb0ce1d2e719576bcb69640f92bf4f5af977fd7", - "https://deno.land/x/deno_graph@0.45.0/mod.ts": "0bb3511c2f6fe0dce2733d7bdf6307dc6260caa156491b669e2b7af398d569f1", + "https://deno.land/x/deno_graph@0.46.0/deno_graph_wasm.generated.js": "f74c4164e05bccb3437dcaae1206a500c99f1a862c0ad4f40b473cac83a4f01d", + "https://deno.land/x/deno_graph@0.46.0/loader.ts": "a2e757383908f4a51659fe1b1203386887ebb17756bac930a64856d613d8d57d", + "https://deno.land/x/deno_graph@0.46.0/media_type.ts": "a89a1b38d07c160e896de9ceb99285ba8391940140558304171066b5c3ef7609", + "https://deno.land/x/deno_graph@0.46.0/mod.ts": "47b5e8560f3e66468194742239fc76cf587d611dd43c1913eeebb9b1d94fc39f", + "https://deno.land/x/deno_graph@0.46.0/types.d.ts": "8f4101e79df43b526cd8d6528fb0ce1d2e719576bcb69640f92bf4f5af977fd7", "https://esm.sh/source-map@0.7.3/source-map.d.ts": "b90c59ac4682368a01c83881b814738eb151de8a58f52eb7edadea2bcffb11b9" } } diff --git a/js/mod.ts b/js/mod.ts index 6604bdef..79846478 100644 --- a/js/mod.ts +++ b/js/mod.ts @@ -2,10 +2,10 @@ import { instantiate } from "./deno_doc.generated.js"; import type { DocNode } from "./types.d.ts"; -import { load as defaultLoad } from "https://deno.land/x/deno_graph@0.45.0/lib/loader.ts"; -import type { LoadResponse } from "https://deno.land/x/deno_graph@0.45.0/mod.ts"; +import { load as defaultLoad } from "https://deno.land/x/deno_graph@0.46.0/loader.ts"; +import type { LoadResponse } from "https://deno.land/x/deno_graph@0.46.0/mod.ts"; -export type { LoadResponse } from "https://deno.land/x/deno_graph@0.45.0/mod.ts"; +export type { LoadResponse } from "https://deno.land/x/deno_graph@0.46.0/mod.ts"; export interface DocOptions { /** An optional URL string which provides a location of an import map to be