Skip to content

Latest commit

 

History

History
152 lines (103 loc) · 4.5 KB

CHANGELOG.md

File metadata and controls

152 lines (103 loc) · 4.5 KB

Changelog

v0.2

0.2.0

@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: https://github.com/bloczjs/mdx/compare/v0.1.0...v0.2.0

See detailed changelog

0.2.0-rc.9

  • Add types in exports in all packages. See #46

0.2.0-rc.8

  • Fix TS issue in @blocz/mdx-live. See #44

0.2.0-rc.7

  • Fix provider import source in @blocz/mdx-live. See #43

0.2.0-rc.6

  • 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

0.2.0-rc.5

  • Re-add imported and fix value for named imports in #39

0.2.0-rc.4

  • Use proper loc / position / range in generated AST

0.2.0-rc.3

  • 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
  • @blocz/mdx-plugin-detect-imports generates a proper AST for the exported variable

0.2.0-rc.2

  • 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

0.2.0-rc.1

  • 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

0.2.0-rc.0

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:

  • minor: regenerate yarn.lock in #19
  • minor: upgrade to yarn v3.2.1 in #20

Changelog: https://github.com/bloczjs/mdx/compare/v0.1.0...v0.2.0-rc