- Upgrade for MDX 2 BREAKING CHANGE
- Switch to ESM only (it depends on
@mdx-js/mdx
that also switched to ESM only) BREAKING CHANGE - Add
exports
field inpackage.json
- Add peer dependency on
@mdx-js/mdx
BREAKING CHANGE - Add support for
recmaPlugins
in addition torehypePlugins
andremarkPlugins
inMDX
props useMDX
can accept all kind of plugins- Add
isReady
inuseMDX
return object - Bundle size was reduced from 1.6 MB to 21.9 kB (-98.6%)
-
Update for MDX 2 (but still in CJS, and compatible in ESM) BREAKING CHANGE
-
Add
exports
field inpackage.json
-
Can only be used in MDX async function (like
compile
) but not the sync ones (likecompileSync
) BREAKING CHANGE -
Change format of
ImportStatement
to 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; } >; }
Removed because no longer needed
Removed because already fully covered by the recommended @mdx-js/loader
+ @blocz/mdx-plugin-detect-imports
plugin
- Upgraded to yarn v3.2.1
- Add support for node 18 in addition to node 16
- Add a few e2e tests
Full changelog: https://github.com/bloczjs/mdx/compare/v0.1.0...v0.2.0
See detailed changelog
- Add types in exports in all packages. See #46
- Fix TS issue in
@blocz/mdx-live
. See #44
- Fix provider import source in
@blocz/mdx-live
. See #43
- Update test/dev packages in #40
- Rollback unist-util-select to 4.0.0 in #41
- Re-include exports fields in scope in the Provider in #42
- Re-add imported and fix value for named imports in #39
- Use proper loc / position / range in generated AST
- switch
@blocz/mdx-plugin-detect-imports
to a mix of CJS + ESM which makes it async and so it now cannot be used anymore withmdx.compileSync
, onlyawait mdx.compile
BREAKING CHANGE @blocz/mdx-plugin-detect-imports
generates a proper AST for the exported variable
- Update
microbundle
in #32 - Update GH actions & add support for node 18 in #33
- Mark
@mdx-js/mdx
as peer dependency in #34
Changelog: https://github.com/bloczjs/mdx/compare/v0.2.0-rc.1...v0.2.0-rc.2
- Update top level README and add a new CONTRIBUTING.md in #22
- Update prettier in #23
- Move top level scripts in #24
- Update various dependencies in #25
- Update package.json's keywords for all repos in #26
- Add tests for
esbuild
in #28 - Add tests for
rollup
in #31
Changelog: https://github.com/bloczjs/mdx/compare/v0.2.0-rc...v0.2.0-rc.1
Upgrade for MDX 2 in #20:
@blocz/mdx-live
(ESM only)@blocz/mdx-plugin-detect-imports
(CJS only)
Remove because no longer required for MDX 2 in #20:
@blocz/detect-imports
Remove because no longer used in #20:
@blocz/mdx-loader
Also:
Changelog: https://github.com/bloczjs/mdx/compare/v0.1.0...v0.2.0-rc