Skip to content

Commit 0acdba3

Browse files
committed
Update dev-dependencies
1 parent 35d39ba commit 0acdba3

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@
6464
"c8": "^7.0.0",
6565
"estree-to-babel": "^3.0.0",
6666
"estree-util-build-jsx": "^2.0.0",
67-
"hast-util-from-parse5": "^6.0.0",
67+
"hast-util-from-parse5": "^7.0.0",
6868
"hastscript": "^7.0.0",
69-
"mdast-util-from-markdown": "^0.8.0",
70-
"mdast-util-mdx": "^0.1.0",
69+
"mdast-util-from-markdown": "^1.0.0",
70+
"mdast-util-mdx": "^1.0.0",
7171
"mdast-util-to-hast": "^11.0.0",
72-
"micromark-extension-mdxjs": "^0.3.0",
72+
"micromark-extension-mdxjs": "^1.0.0",
7373
"parse5": "^6.0.0",
7474
"prettier": "^2.0.0",
7575
"recast": "^0.20.0",
@@ -80,7 +80,7 @@
8080
"type-coverage": "^2.0.0",
8181
"typescript": "^4.0.0",
8282
"unist-util-visit": "^3.0.0",
83-
"vfile": "^4.0.0",
83+
"vfile": "^5.0.0",
8484
"xo": "^0.39.0"
8585
},
8686
"scripts": {
@@ -111,6 +111,10 @@
111111
"atLeast": 100,
112112
"detail": true,
113113
"strict": true,
114-
"ignoreCatch": true
114+
"ignoreCatch": true,
115+
"#": "needed any",
116+
"ignoreFiles": [
117+
"index.d.ts"
118+
]
115119
}
116120
}

test.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import {Parser} from 'acorn'
1111
import jsx from 'acorn-jsx'
1212
import toBabel from 'estree-to-babel'
1313
import {walk} from 'estree-walker'
14-
import vfile from 'vfile'
14+
import {VFile} from 'vfile'
1515
import {h, s} from 'hastscript'
16-
import fromParse5 from 'hast-util-from-parse5'
17-
import fromMarkdown from 'mdast-util-from-markdown'
16+
import {fromParse5} from 'hast-util-from-parse5'
17+
import {fromMarkdown} from 'mdast-util-from-markdown'
1818
import {toHast} from 'mdast-util-to-hast'
19-
import {fromMarkdown as mdxFromMarkdown} from 'mdast-util-mdx'
20-
import mdxjs from 'micromark-extension-mdxjs'
19+
import {mdxFromMarkdown} from 'mdast-util-mdx'
20+
import {mdxjs} from 'micromark-extension-mdxjs'
2121
import parse5 from 'parse5'
2222
import recast from 'recast'
2323
import {visit} from 'unist-util-visit'
@@ -598,10 +598,9 @@ test('integration (recast)', (t) => {
598598
t.deepEqual(
599599
recastSerialize(
600600
toEstree(
601-
// @ts-expect-error: update.
602601
fromParse5(
603602
parse5.parseFragment(doc, {sourceCodeLocationInfo: true}),
604-
vfile(doc)
603+
new VFile(doc)
605604
)
606605
)
607606
),

0 commit comments

Comments
 (0)