Back to Explore

syntax-tree/mdast-util-mdxjs-esm

GitHub
1 watchersOpen source

Last release: 8/8/2023

mdast-util-mdxjs-esm provides two mdast extensions to parse and serialize MDX.js ESM syntax, specifically import and export statements, into mdast nodes. It is useful when you are already using mdast-util-from-markdown and mdast-util-to-markdown and want MDX ESM preserved in the syntax tree, with optional ESTree program data available on the node.

Project status

  • The upstream repo shows activity as of 2024-09-13, suggesting the project is still being maintained, though the last published updates in the provided history are dated 2023-08-08 (2.0.1).
  • The apparent release/update cadence from the provided data is sparse (2.0.0 in 2023-07-11, 2.0.1 in 2023-08-08, and no further published updates shown after that), so momentum since then is unclear from releases alone.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 2.0.1

    8/8/2023

    Release 2.0.1 is a small patch release with a focus on a TypeScript type inheritance fix. It also updates some developer tooling configuration and dependency versions in package.json.

  • 2.0.0

    7/11/2023

    mdast-util-mdxjs-esm 2.0.0 is a major release focused on aligning with Node.js 16+, public export surfaces, and updated TypeScript types. The package changes its main extension APIs to be callable functions (mdxjsEsmFromMarkdown(), mdxjsEsmToMarkdown()), and restructures ESM node typings by removing the deprecated MDXJSEsm alias and introducing clearer data interfaces.

    BreakingFeatures
  • 1.3.1

    1/30/2023

    Release 1.3.1 primarily updates the TypeScript surface area by introducing/standardizing the `MdxjsEsm` type export (and a corresponding hast type) and improving documentation. The codebase was also refactored to move the runtime implementation into `lib/index.js`, with `index.js` now acting as a thin re-export.

    Features