Back to Explore

syntax-tree/mdast-util-mdxjs-esm

GitHub
2 watchersOpen source

Last release:

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 source appears to be in maintenance mode rather than actively evolving, with no published updates after 2.0.1 in 2023-08-08, and the last observed upstream push only on 2024-09-13.
  • Update cadence has slowed sharply, following a burst in 2023 (major 2.0.0 in 2023-07-11, patch 2.0.1 in 2023-08-08), then a long quiet period relative to today (2026-09-10).

AI summary generated

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

Recent updates

  • 2.0.1

    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

    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

    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
  • 1.3.0

    Release 1.3.0 updates the package metadata and bumps a couple of dependencies in package.json. The release notes explicitly mention updating @types/estree-jsx, and the code diff shows additional changes beyond that note.

  • 1.2.1

    Release 1.2.1 contains a TypeScript-focused fix for type imports and a documentation update. The code diff also shows configuration and tooling changes (tsconfig, CI Node version, devDependency bumps) plus test/README adjustments that hint at differences in AST location metadata.

  • 1.2.0

    Version 1.2.0 updates mdast-util-mdxjs-esm to register the mdxjsEsm node type in the hast type registries. It also introduces a TypeScript type rename from MDXJSEsm to MdxjsEsm.

    Features
  • 1.1.1

    Release 1.1.1 primarily updates the package manifest to correct TypeScript typings by adjusting which dependencies are installed at runtime. The code diff shows no source code changes, only package.json dependency and tooling version updates.

  • 1.1.0

    Release 1.1.0 adds MDX ESM node typing support to the mdast node type registry, so mdxjsEsm is recognized in the mdast BlockContentMap with an appropriate data.estree shape. The code changes are primarily TypeScript typing related, plus minor tooling adjustments.

    Features
  • 1.0.0

    Release 1.0.0 moves the package to ESM and introduces JSDoc-based types plus documentation updates. The code changes also restructure the public exports and build setup, which goes beyond the brevity of the release notes.

    Breaking
  • 0.1.1

    Release 0.1.1 mainly updates documentation and upgrades a few development and parsing-related dependencies. The only code-relevant change visible in the diff is test expectations, which now include additional ESTree location data (`range`) and a `comments: []` field.