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
- Actively maintained: Evidence is limited, but the last observed upstream push is 2024-09-13, while the last published updates shown here are 2.0.1 on 2023-08-08 (over 9 months before that push). Overall, this looks more like maintenance/low activity than active rapid development as of 2026-06-09.
- Update cadence: After the major 2.0.0 (2023-07-11) and patch 2.0.1 (2023-08-08), the public update trail is quiet. A later upstream push in 2024-09 suggests some continued work, but there is no evidence of recent versioned updates after 2023-08.
AI summary generated
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.
BreakingFeatures1.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.
Features1.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.
Features1.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.
Features1.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.
Breaking0.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.