File tree Expand file tree Collapse file tree 6 files changed +19
-26
lines changed Expand file tree Collapse file tree 6 files changed +19
-26
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @mdx-js/typescript-plugin ' : minor
3
+ ' @mdx-js/language-service ' : minor
4
+ ' @mdx-js/language-server ' : minor
5
+ ---
6
+
7
+ Remove support for Node.js 18
Original file line number Diff line number Diff line change @@ -217,10 +217,7 @@ Use [`unifiedjs.vscode-mdx`][vscode-mdx] to use the MDX language server with
217
217
218
218
## Compatibility
219
219
220
- Projects maintained by the unified collective are compatible with all maintained
221
- versions of Node.js.
222
- As of now, that is Node.js and 16.0+.
223
- Our projects sometimes work with older versions, but this is not guaranteed.
220
+ This project is compatible Node.js 20.19+.
224
221
225
222
This project uses [ ` vscode-languageserver ` ] [ vscode-languageserver ] 9, which
226
223
implements language server protocol 3.17.4.
Original file line number Diff line number Diff line change @@ -154,10 +154,7 @@ configuration.
154
154
155
155
## Compatibility
156
156
157
- Projects maintained by the unified collective are compatible with all maintained
158
- versions of Node.js.
159
- As of now, that is Node.js and 16.0+.
160
- Our projects sometimes work with older versions, but this is not guaranteed.
157
+ This project is compatible Node.js 20.19+.
161
158
162
159
## Types
163
160
Original file line number Diff line number Diff line change @@ -88,10 +88,7 @@ This is not intended for programmatic use.
88
88
89
89
## Compatibility
90
90
91
- Projects maintained by the unified collective are compatible with all maintained
92
- versions of Node.js.
93
- As of now, that is Node.js and 16.0+.
94
- Our projects sometimes work with older versions, but this is not guaranteed.
91
+ This project is compatible Node.js 20.19+.
95
92
96
93
## Security
97
94
Original file line number Diff line number Diff line change 2
2
3
3
/**
4
4
* @import {TsConfigSourceFile} from 'typescript'
5
- * @import {Plugin} from 'unified' with {'resolution-mode': 'import'}
5
+ * @import {Plugin} from 'unified'
6
6
*/
7
7
8
8
const { pathToFileURL} = require ( 'node:url' )
9
+ const {
10
+ createMdxLanguagePlugin,
11
+ resolveRemarkPlugins
12
+ } = require ( '@mdx-js/language-service' )
9
13
const {
10
14
createAsyncLanguageServicePlugin
11
15
} = require ( '@volar/typescript/lib/quickstart/createAsyncLanguageServicePlugin.js' )
16
+ const { loadPlugin} = require ( 'load-plugin' )
17
+ const { default : remarkFrontmatter } = require ( 'remark-frontmatter' )
18
+ const { default : remarkGfm } = require ( 'remark-gfm' )
12
19
13
20
const plugin = createAsyncLanguageServicePlugin (
14
21
[ '.mdx' ] ,
15
22
2 /* JSX */ ,
16
23
async ( ts , info ) => {
17
- const [
18
- { createMdxLanguagePlugin, resolveRemarkPlugins} ,
19
- { loadPlugin} ,
20
- { default : remarkFrontmatter } ,
21
- { default : remarkGfm }
22
- ] = await Promise . all ( [
23
- import ( '@mdx-js/language-service' ) ,
24
- import ( 'load-plugin' ) ,
25
- import ( 'remark-frontmatter' ) ,
26
- import ( 'remark-gfm' )
27
- ] )
28
-
29
24
if ( info . project . projectKind !== ts . server . ProjectKind . Configured ) {
30
25
return {
31
26
languagePlugins : [
Original file line number Diff line number Diff line change 5
5
"composite" : true ,
6
6
"declarationMap" : true ,
7
7
"lib" : [" es2022" ],
8
- "module" : " node16 " ,
8
+ "module" : " nodenext " ,
9
9
"moduleDetection" : " force" ,
10
10
"strict" : true ,
11
11
"stripInternal" : true ,
You can’t perform that action at this time.
0 commit comments