File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
217217
218218## Compatibility
219219
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+.
224221
225222This project uses [ ` vscode-languageserver ` ] [ vscode-languageserver ] 9, which
226223implements language server protocol 3.17.4.
Original file line number Diff line number Diff line change @@ -154,10 +154,7 @@ configuration.
154154
155155## Compatibility
156156
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+.
161158
162159## Types
163160
Original file line number Diff line number Diff line change @@ -88,10 +88,7 @@ This is not intended for programmatic use.
8888
8989## Compatibility
9090
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+.
9592
9693## Security
9794
Original file line number Diff line number Diff line change 22
33/**
44 * @import {TsConfigSourceFile} from 'typescript'
5- * @import {Plugin} from 'unified' with {'resolution-mode': 'import'}
5+ * @import {Plugin} from 'unified'
66 */
77
88const { pathToFileURL} = require ( 'node:url' )
9+ const {
10+ createMdxLanguagePlugin,
11+ resolveRemarkPlugins
12+ } = require ( '@mdx-js/language-service' )
913const {
1014 createAsyncLanguageServicePlugin
1115} = 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' )
1219
1320const plugin = createAsyncLanguageServicePlugin (
1421 [ '.mdx' ] ,
1522 2 /* JSX */ ,
1623 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-
2924 if ( info . project . projectKind !== ts . server . ProjectKind . Configured ) {
3025 return {
3126 languagePlugins : [
Original file line number Diff line number Diff line change 55 "composite" : true ,
66 "declarationMap" : true ,
77 "lib" : [" es2022" ],
8- "module" : " node16 " ,
8+ "module" : " nodenext " ,
99 "moduleDetection" : " force" ,
1010 "strict" : true ,
1111 "stripInternal" : true ,
You can’t perform that action at this time.
0 commit comments