Skip to content

Commit 61ed5dd

Browse files
deps: update unist and highlight.js
1 parent d88a14d commit 61ed5dd

11 files changed

+37
-34
lines changed

__tests__/__snapshots__/bin.js.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ the referenced class type</p>
618618
<div class='py1 quiet mt1 prose-big'>Example</div>
619619
620620
621-
<pre class='p1 overflow-auto round fill-light'><span class=\\"hljs-keyword\\">var</span> k = <span class=\\"hljs-keyword\\">new</span> Klass();
622-
k.isArrayOfBuffers();</pre>
621+
<pre class='p1 overflow-auto round fill-light'><span class=\\"hljs-keyword\\">var</span> k = <span class=\\"hljs-keyword\\">new</span> <span class=\\"hljs-title class_\\">Klass</span>();
622+
k.<span class=\\"hljs-title function_\\">isArrayOfBuffers</span>();</pre>
623623
624624
625625
@@ -740,7 +740,7 @@ k.isArrayOfBuffers();</pre>
740740
741741
<p><p>this shows you how to getFoo</p>
742742
</p>
743-
<pre class='p1 overflow-auto round fill-light'><span class=\\"hljs-keyword\\">var</span> x = foo.getFoo();</pre>
743+
<pre class='p1 overflow-auto round fill-light'><span class=\\"hljs-keyword\\">var</span> x = foo.<span class=\\"hljs-title function_\\">getFoo</span>();</pre>
744744
745745
746746

__tests__/__snapshots__/test.js.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -1586,8 +1586,8 @@ the referenced class type</p>
15861586
<div class='py1 quiet mt1 prose-big'>Example</div>
15871587

15881588

1589-
<pre class='p1 overflow-auto round fill-light'><span class=\\"hljs-keyword\\">var</span> k = <span class=\\"hljs-keyword\\">new</span> Klass();
1590-
k.isArrayOfBuffers();</pre>
1589+
<pre class='p1 overflow-auto round fill-light'><span class=\\"hljs-keyword\\">var</span> k = <span class=\\"hljs-keyword\\">new</span> <span class=\\"hljs-title class_\\">Klass</span>();
1590+
k.<span class=\\"hljs-title function_\\">isArrayOfBuffers</span>();</pre>
15911591

15921592

15931593

@@ -1708,7 +1708,7 @@ k.isArrayOfBuffers();</pre>
17081708

17091709
<p><p>this shows you how to getFoo</p>
17101710
</p>
1711-
<pre class='p1 overflow-auto round fill-light'><span class=\\"hljs-keyword\\">var</span> x = foo.getFoo();</pre>
1711+
<pre class='p1 overflow-auto round fill-light'><span class=\\"hljs-keyword\\">var</span> x = foo.<span class=\\"hljs-title function_\\">getFoo</span>();</pre>
17121712

17131713

17141714

__tests__/lib/parse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import parse from '../../src/parsers/javascript.js';
22
import removePosition from '../../src/remark-remove-position.js';
33
import { remark } from 'remark';
44
const remarkParse = remark().use(removePosition).parse;
5-
import visit from 'unist-util-visit';
5+
import { visit } from 'unist-util-visit';
66

77
function pick(obj, props) {
88
if (Array.isArray(props)) {

package-lock.json

+21-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"github-slugger": "1.4.0",
2525
"glob": "^7.1.2",
2626
"globals-docs": "^2.4.0",
27-
"highlight.js": "^10.7.2",
27+
"highlight.js": "^11.3.1",
2828
"ini": "^2.0.0",
2929
"js-yaml": "^4.1.0",
3030
"lodash": "^4.17.10",
@@ -44,8 +44,8 @@
4444
"resolve": "^1.8.1",
4545
"stream-array": "^1.1.2",
4646
"strip-json-comments": "^4.0.0",
47-
"unist-builder": "^2.0.3",
48-
"unist-util-visit": "^2.0.3",
47+
"unist-builder": "^3.0.0",
48+
"unist-util-visit": "^4.1.0",
4949
"vfile": "^5.1.1",
5050
"vfile-reporter": "^7.0.2",
5151
"vfile-sort": "^3.0.0",

src/output/highlighter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import visit from 'unist-util-visit';
1+
import { visit } from 'unist-util-visit';
22
import hljs from 'highlight.js';
33

44
/**

src/output/markdown_ast.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import u from 'unist-builder';
1+
import { u } from 'unist-builder';
22
import { remark } from 'remark';
33
import mergeConfig from '../merge_config.js';
44
import toc from 'remark-toc';

src/output/util/format_type.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import doctrine from 'doctrine-temporary-fork';
22
const Syntax = doctrine.Syntax;
3-
import u from 'unist-builder';
3+
import { u } from 'unist-builder';
44

55
/**
66
* Shortcut to create a new text node

src/output/util/formatters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { remark } from 'remark';
22
import html from 'remark-html';
33
import doctrine from 'doctrine-temporary-fork';
44
const Syntax = doctrine.Syntax;
5-
import u from 'unist-builder';
5+
import { u } from 'unist-builder';
66
import _rerouteLinks from './reroute_links.js';
77
import highlighter from '../highlighter.js';
88
import formatType from './format_type.js';

src/output/util/reroute_links.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import visit from 'unist-util-visit';
1+
import { visit } from 'unist-util-visit';
22

33
/**
44
* Reroute inline jsdoc links in documentation

src/remark-remove-position.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import visit from 'unist-util-visit';
1+
import { visit } from 'unist-util-visit';
22

33
export default function () {
44
const data = this.data();

0 commit comments

Comments
 (0)