Releases: bloczjs/mdx
Releases · bloczjs/mdx
v0.3.0
v0.2.0
@blocz/mdx-live
- Upgrade for MDX 2 BREAKING CHANGE
- Switch to ESM only (it depends on
@mdx-js/mdxthat also switched to ESM only) BREAKING CHANGE - Add
exportsfield inpackage.json - Add peer dependency on
@mdx-js/mdxBREAKING CHANGE - Add support for
recmaPluginsin addition torehypePluginsandremarkPluginsinMDXprops useMDXcan accept all kind of plugins- Add
isReadyinuseMDXreturn object - Bundle size was reduced from 1.6 MB to 21.9 kB (-98.6%)
@blocz/mdx-plugin-detect-imports
-
Update for MDX 2 (but still in CJS, and compatible in ESM) BREAKING CHANGE
-
Add
exportsfield inpackage.json -
Can only be used in MDX async function (like
compile) but not the sync ones (likecompileSync) BREAKING CHANGE -
Change format of
ImportStatementto better represent named vs default exports: (BREAKING CHANGE)In v0.1.0:
interface ImportStatement { module: string; imports: Array<{ imported: string; local: string; value: any; }>; }
Now in v0.2.0:
interface ImportStatement { module: string; imports: Array< | { kind: "named"; imported: string; local: string; value: any; } | { kind: "namespace" | "default"; local: string; value: any; } >; }
@blocz/detect-imports
Removed because no longer needed
@blocz/mdx-loader
Removed because already fully covered by the recommended @mdx-js/loader + @blocz/mdx-plugin-detect-imports plugin
Other changes
- Upgraded to yarn v3.2.1
- Add support for node 18 in addition to node 16
- Add a few e2e tests
Full changelog: v0.1.0...v0.2.0
v0.2.0-rc.9
v0.2.0-rc.8
v0.2.0-rc.7
v0.2.0-rc.6
v0.2.0-rc.5
What's Changed
- Re-add imported and fix value for named imports in #39
Full Changelog: v0.2.0-rc.4...v0.2.0-rc.5
v0.2.0-rc.4
v0.2.0-rc.3
What's Changed
- Add changelog in #35
- switch
@blocz/mdx-plugin-detect-importsto a mix of CJS + ESM which makes it async
and so it now cannot be used anymore withmdx.compileSync, onlyawait mdx.compileBREAKING CHANGE in #36 @blocz/mdx-plugin-detect-importsgenerates a proper AST for the exported variable in #36
Full Changelog: v0.2.0-rc.2...v0.2.0-rc.3
v0.2.0-rc.2
What's Changed
Full Changelog: v0.2.0-rc.1...v0.2.0-rc.2