File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 64
64
"c8" : " ^7.0.0" ,
65
65
"estree-to-babel" : " ^3.0.0" ,
66
66
"estree-util-build-jsx" : " ^2.0.0" ,
67
- "hast-util-from-parse5" : " ^6 .0.0" ,
67
+ "hast-util-from-parse5" : " ^7 .0.0" ,
68
68
"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" ,
71
71
"mdast-util-to-hast" : " ^11.0.0" ,
72
- "micromark-extension-mdxjs" : " ^0.3 .0" ,
72
+ "micromark-extension-mdxjs" : " ^1.0 .0" ,
73
73
"parse5" : " ^6.0.0" ,
74
74
"prettier" : " ^2.0.0" ,
75
75
"recast" : " ^0.20.0" ,
80
80
"type-coverage" : " ^2.0.0" ,
81
81
"typescript" : " ^4.0.0" ,
82
82
"unist-util-visit" : " ^3.0.0" ,
83
- "vfile" : " ^4 .0.0" ,
83
+ "vfile" : " ^5 .0.0" ,
84
84
"xo" : " ^0.39.0"
85
85
},
86
86
"scripts" : {
111
111
"atLeast" : 100 ,
112
112
"detail" : true ,
113
113
"strict" : true ,
114
- "ignoreCatch" : true
114
+ "ignoreCatch" : true ,
115
+ "#" : " needed any" ,
116
+ "ignoreFiles" : [
117
+ " index.d.ts"
118
+ ]
115
119
}
116
120
}
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ import {Parser} from 'acorn'
11
11
import jsx from 'acorn-jsx'
12
12
import toBabel from 'estree-to-babel'
13
13
import { walk } from 'estree-walker'
14
- import vfile from 'vfile'
14
+ import { VFile } from 'vfile'
15
15
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'
18
18
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'
21
21
import parse5 from 'parse5'
22
22
import recast from 'recast'
23
23
import { visit } from 'unist-util-visit'
@@ -598,10 +598,9 @@ test('integration (recast)', (t) => {
598
598
t . deepEqual (
599
599
recastSerialize (
600
600
toEstree (
601
- // @ts -expect-error: update.
602
601
fromParse5 (
603
602
parse5 . parseFragment ( doc , { sourceCodeLocationInfo : true } ) ,
604
- vfile ( doc )
603
+ new VFile ( doc )
605
604
)
606
605
)
607
606
) ,
You can’t perform that action at this time.
0 commit comments