Skip to content

Commit a2ece1a

Browse files
authored
refactor: upgrade to deno_graph 0.106 (#755)
1 parent 5e8fe51 commit a2ece1a

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

Cargo.lock

Lines changed: 6 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ repository = "https://github.com/denoland/deno_doc"
1111
members = ["lib"]
1212

1313
[workspace.dependencies]
14-
deno_graph = { version = "0.105.0", default-features = false, features = [
14+
deno_graph = { version = "0.106.0", default-features = false, features = [
1515
"swc",
1616
"symbols",
1717
] }
1818
deno_ast = { version = "0.52.0" }
19-
import_map = "0.24.0"
19+
import_map = "0.25.0"
2020
serde = { version = "1.0.204", features = ["derive"] }
2121

2222
[lib]
@@ -34,14 +34,13 @@ deno_ast.workspace = true
3434
deno_graph.workspace = true
3535
deno_terminal = "0.2.0"
3636
indexmap = "2.3.0"
37-
import_map.workspace = true
3837
lazy_static = "1.5.0"
3938
regex = "1.10.6"
4039
serde.workspace = true
4140
serde_json = { version = "1.0.122", features = ["preserve_order"] }
4241
termcolor = "1.4.1"
4342
itoa = "1.0.14"
44-
deno_path_util = "0.6.0"
43+
deno_path_util = "0.6.4"
4544

4645
html-escape = { version = "0.2.13" }
4746
handlebars = { version = "6.1", features = ["string_helpers"] }
@@ -79,3 +78,4 @@ codegen-units = 1
7978
incremental = true
8079
lto = true
8180
opt-level = "s"
81+

lib/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl Resolver for ImportMapResolver {
114114
self
115115
.0
116116
.resolve(specifier, &referrer_range.specifier)
117-
.map_err(|err| ResolveError::ImportMap(err))
117+
.map_err(ResolveError::from_err)
118118
}
119119
}
120120

src/html/jsdoc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub struct MarkdownToHTMLOptions {
148148
pub no_toc: bool,
149149
}
150150

151-
pub type MarkdownStripper = std::rc::Rc<dyn (Fn(&str) -> String)>;
151+
pub type MarkdownStripper = std::rc::Rc<dyn Fn(&str) -> String>;
152152

153153
pub fn strip(render_ctx: &RenderContext, md: &str) -> String {
154154
let md = parse_links(md, render_ctx, true);
@@ -163,7 +163,7 @@ pub type Anchorizer =
163163
std::sync::Arc<dyn Fn(String, u8) -> String + Send + Sync>;
164164

165165
pub type MarkdownRenderer =
166-
Rc<dyn (Fn(&str, bool, Option<ShortPath>, Anchorizer) -> Option<String>)>;
166+
Rc<dyn Fn(&str, bool, Option<ShortPath>, Anchorizer) -> Option<String>>;
167167

168168
pub fn markdown_to_html(
169169
render_ctx: &RenderContext,

0 commit comments

Comments
 (0)