Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repository = "https://github.com/denoland/deno_doc"
members = ["lib"]

[workspace.dependencies]
deno_graph = { version = "0.91.0", default-features = false, features = ["symbols"] }
deno_graph = { version = "0.92.0", default-features = false, features = ["symbols"] }
deno_ast = { version = "0.47.0" }
import_map = "0.21.0"
serde = { version = "1.0.204", features = ["derive"] }
Expand Down
1 change: 1 addition & 0 deletions benches/doc_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ async fn parse() -> IndexMap<ModuleSpecifier, Vec<DocNode>> {
graph
.build(
vec![root.clone()],
Vec::new(),
&memory_loader,
BuildOptions {
module_analyzer: &analyzer,
Expand Down
2 changes: 2 additions & 0 deletions examples/ddoc/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ impl Loader for SourceFileLoader {
.map(|content| {
Some(LoadResponse::Module {
specifier: specifier.clone(),
mtime: None,
maybe_headers: None,
content: content.into(),
})
Expand Down Expand Up @@ -117,6 +118,7 @@ async fn run() -> anyhow::Result<()> {
graph
.build(
source_files.clone(),
Vec::new(),
&loader,
BuildOptions {
module_analyzer: &analyzer,
Expand Down
5 changes: 3 additions & 2 deletions lib/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl Loader for JsLoader {
let this = JsValue::null();
let arg0 = JsValue::from(specifier.to_string());
let arg1 = serde_wasm_bindgen::to_value(&JsLoadOptions {
is_dynamic: options.is_dynamic,
is_dynamic: options.in_dynamic_branch,
cache_setting: options.cache_setting.as_js_str(),
checksum: options.maybe_checksum.map(|c| c.into_string()),
})
Expand Down Expand Up @@ -203,7 +203,7 @@ async fn inner_doc(
.load(
&import_map_specifier,
LoadOptions {
is_dynamic: false,
in_dynamic_branch: false,
was_dynamic_root: false,
cache_setting: CacheSetting::Use,
maybe_checksum: None,
Expand Down Expand Up @@ -245,6 +245,7 @@ async fn inner_doc(
graph
.build(
root_specifiers.clone(),
Vec::new(),
&mut loader,
BuildOptions {
module_analyzer: &analyzer,
Expand Down
3 changes: 3 additions & 0 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub(crate) async fn setup<S: AsRef<str> + Copy>(
graph
.build(
vec![root.clone()],
Vec::new(),
&memory_loader,
BuildOptions {
module_analyzer: &analyzer,
Expand Down Expand Up @@ -72,6 +73,7 @@ async fn content_type_handling() {
graph
.build(
vec![root.clone()],
Vec::new(),
&memory_loader,
BuildOptions {
module_analyzer: &analyzer,
Expand Down Expand Up @@ -123,6 +125,7 @@ async fn types_header_handling() {
graph
.build(
vec![root.clone()],
Vec::new(),
&memory_loader,
BuildOptions {
module_analyzer: &analyzer,
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ impl TestBuilder {
graph
.build(
roots.clone(),
Vec::new(),
&self.loader,
BuildOptions {
module_analyzer: &analyzer,
Expand Down
2 changes: 2 additions & 0 deletions tests/html_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ impl Loader for SourceFileLoader {
Some(LoadResponse::Module {
specifier: specifier.clone(),
maybe_headers: None,
mtime: None,
content: content.into(),
})
})
Expand Down Expand Up @@ -133,6 +134,7 @@ async fn get_files(subpath: &str) -> IndexMap<ModuleSpecifier, Vec<DocNode>> {
graph
.build(
source_files.clone(),
Vec::new(),
&loader,
BuildOptions {
module_analyzer: &analyzer,
Expand Down