Skip to content

Releases: bloczjs/mdx

v0.3.0

20 Apr 12:13
Compare
Choose a tag to compare

What's Changed

  • [react/jsx-runtime] remove extension from path for ESM React 18 by @Ayc0 in #47
  • Bump for React 18 by @Ayc0 in #48

Full Changelog: v0.2.0...v0.3.0

v0.2.0

20 Mar 20:05
Compare
Choose a tag to compare

@blocz/mdx-live

  • 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 in package.json
  • Add peer dependency on @mdx-js/mdx BREAKING CHANGE
  • Add support for recmaPlugins in addition to rehypePlugins and remarkPlugins in MDX props
  • useMDX can accept all kind of plugins
  • Add isReady in useMDX return 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 exports field in package.json

  • Can only be used in MDX async function (like compile) but not the sync ones (like compileSync) 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;
              }
        >;
    }

@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

20 Mar 14:32
Compare
Choose a tag to compare
v0.2.0-rc.9 Pre-release
Pre-release

What's Changed

Full Changelog: v0.2.0-rc.8...v0.2.0-rc.9

v0.2.0-rc.8

20 Mar 14:32
Compare
Choose a tag to compare
v0.2.0-rc.8 Pre-release
Pre-release

What's Changed

Full Changelog: v0.2.0-rc.7...v0.2.0-rc.8

v0.2.0-rc.7

20 Mar 14:32
Compare
Choose a tag to compare
v0.2.0-rc.7 Pre-release
Pre-release

What's Changed

  • Fix provider import source by @Ayc0 in #43

Full Changelog: v0.2.0-rc.6...v0.2.0-rc.7

v0.2.0-rc.6

20 Mar 14:32
Compare
Choose a tag to compare
v0.2.0-rc.6 Pre-release
Pre-release

What's Changed

  • Update test/dev packages by @Ayc0 in #40
  • Rollback unist-util-select to 4.0.0 by @Ayc0 in #41
  • Re-include exports fields in scope in the Provider by @Ayc0 in #42

Full Changelog: v0.2.0-rc.5...v0.2.0-rc.6

v0.2.0-rc.5

04 Jan 22:11
Compare
Choose a tag to compare
v0.2.0-rc.5 Pre-release
Pre-release

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

23 Jul 23:04
Compare
Choose a tag to compare
v0.2.0-rc.4 Pre-release
Pre-release

What's Changed

  • Add loc and range to esast in #38

Full Changelog: v0.2.0-rc.3...v0.2.0-rc.4

v0.2.0-rc.3

22 Jul 19:57
Compare
Choose a tag to compare
v0.2.0-rc.3 Pre-release
Pre-release

What's Changed

  • Add changelog in #35
  • switch @blocz/mdx-plugin-detect-imports to a mix of CJS + ESM which makes it async
    and so it now cannot be used anymore with mdx.compileSync, only await mdx.compile BREAKING CHANGE in #36
  • @blocz/mdx-plugin-detect-imports generates 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

13 Jul 15:06
Compare
Choose a tag to compare
v0.2.0-rc.2 Pre-release
Pre-release

What's Changed

  • Update microbundle in #32
  • Update GH actions in #33
  • Mark @mdx-js/mdx as peer dep in #34

Full Changelog: v0.2.0-rc.1...v0.2.0-rc.2