Skip to content

Commit e55f5fa

Browse files
authored
0.17.0 (#200)
1 parent df6f746 commit e55f5fa

File tree

5 files changed

+57
-41
lines changed

5 files changed

+57
-41
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "deno_doc"
3-
version = "0.16.0"
3+
version = "0.17.0"
44
edition = "2018"
55
description = "doc generation for deno"
66
authors = ["the Deno authors"]
@@ -16,8 +16,8 @@ name = "ddoc"
1616
[dependencies]
1717
anyhow = { version = "1.0.43", optional = true }
1818
cfg-if = "1.0.0"
19-
deno_ast = "0.3.0"
20-
deno_graph = "0.7.0"
19+
deno_ast = "0.4.0"
20+
deno_graph = "0.8.0"
2121
futures = "0.3.17"
2222
js-sys = { version = "0.3.54", optional = true }
2323
lazy_static = "1.4.0"

examples/ddoc/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use deno_graph::create_graph;
1010
use deno_graph::source::LoadFuture;
1111
use deno_graph::source::LoadResponse;
1212
use deno_graph::source::Loader;
13-
use deno_graph::CapturingSourceParser;
13+
use deno_graph::DefaultSourceParser;
1414
use deno_graph::ModuleSpecifier;
1515
use futures::executor::block_on;
1616
use futures::future;
@@ -60,18 +60,17 @@ fn main() {
6060

6161
let mut loader = SourceFileLoader {};
6262
let future = async move {
63-
let ast_parser = CapturingSourceParser::new();
63+
let source_parser = DefaultSourceParser::new();
6464
let graph = create_graph(
6565
vec![source_file.clone()],
6666
false,
6767
None,
6868
&mut loader,
6969
None,
7070
None,
71-
Some(&ast_parser),
71+
Some(&source_parser),
7272
)
7373
.await;
74-
let source_parser = deno_graph::DefaultSourceParser::new();
7574
let parser = DocParser::new(graph, false, &source_parser);
7675
let parse_result = parser.parse_with_reexports(&source_file);
7776

lib/deno_doc.generated.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ function isLikeNone(x) {
220220
* @param {string} root_specifier
221221
* @param {Function} load
222222
* @param {Function | undefined} maybe_resolve
223-
* @returns {Promise<any>} */
223+
* @returns {Promise<any>}
224+
*/
224225
export function doc(root_specifier, load, maybe_resolve) {
225226
var ptr0 = passStringToWasm0(
226227
root_specifier,
@@ -351,8 +352,8 @@ const imports = {
351352
__wbindgen_throw: function (arg0, arg1) {
352353
throw new Error(getStringFromWasm0(arg0, arg1));
353354
},
354-
__wbindgen_closure_wrapper822: function (arg0, arg1, arg2) {
355-
var ret = makeMutClosure(arg0, arg1, 154, __wbg_adapter_16);
355+
__wbindgen_closure_wrapper821: function (arg0, arg1, arg2) {
356+
var ret = makeMutClosure(arg0, arg1, 155, __wbg_adapter_16);
356357
return addHeapObject(ret);
357358
},
358359
},

lib/deno_doc_bg.wasm

22 KB
Binary file not shown.

0 commit comments

Comments
 (0)