Back to Explore

micromark/micromark-extension-mdxjs-esm

GitHub
1 watchersOpen source

Last release:

micromark-extension-mdxjs-esm is a micromark extension that adds support for MDX ESM import and export syntax in markdown by parsing the ESM statements with acorn. It’s useful if you want to enable JavaScript ESM import/exports as part of MDX parsing with micromark, including an option to add acorn result fields to tokens.

Project status

  • Maintenance status: The source appears quiet today, with the last known upstream push on 2024-09-02 and the most recent detailed published change in the provided timeline on 2023-10-19.
  • Apparent update cadence: Historically there were frequent updates through 2023 (multiple updates between early to late 2023), but there is a large gap of many months to nearly 2 years from the last listed updates relative to 2026-06-09.

AI summary generated

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

Recent updates

  • 3.0.0

    Release 3.0.0 updates the MDX JS ESM micromark extension to use a newer default Acorn configuration. The release notes specifically call out switching the default `ecmaVersion` to 2024 ("migrate: use modern js").

    Breaking
  • 2.0.1

    Release 2.0.1 primarily updates dependencies. The published notes only say “Update dependency” without specifying which package changed.

  • 2.0.0

    Release 2.0.0 updates the project to require Node.js 16, and refreshes micromark-related dependencies. It also adds URLs to thrown errors to make debugging easier.

    BreakingFeatures
  • 1.0.5

    Release 1.0.5 appears to be a TypeScript typing update for micromark-util-types support related to `mdxjsEsm`. The code changes focus on adding a declaration file and adjusting tests to match the updated types.

  • 1.0.4

    Release 1.0.4 largely focuses on refactoring and documentation updates (per the release notes), with some supporting changes to tooling and tests. The code diff also shows internal tokenizer logic changes in `dev/lib/syntax.js` plus build/test configuration updates.

  • 1.0.3

    Release 1.0.3 addresses a crash related to end-of-input handling in the MDX ESM extension parser. The code changes add more precise EOF handling in the parser state machine, and the test suite is updated to cover the problematic EOF-after-EOL scenario.

  • 1.0.2

    This release updates the development assertion utility used by the project, switching from `power-assert` to `uvu/assert`. It also updates project dependencies accordingly and makes a small linting configuration adjustment.

  • 1.0.1

    Release 1.0.1 makes the development build use `power-assert` instead of Node's built-in `assert`. The diff also includes several unrelated dev-time dependency bumps and a couple small test/documentation cleanups.

  • 1.0.0

    Release 1.0.0 is a major refactor that converts the package to ESM, moves the implementation into a new lib/syntax.js module, and updates the micromark integration stack. The release notes mention ESM, docs, JSDoc types, and a micromark update, but the diff shows additional API and packaging changes that are not fully covered.

    BreakingFeatures
  • 0.3.1

    Release 0.3.1 is a small behavioral fix centered on preventing MDX ESM constructs from interrupting other markdown parsing. The code change also removes a default Acorn option and bumps the dev dependency eslint tool.