unstale

npm / micromark

micromark

What changed in micromark 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

9 breaking1 tooling1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

micromark 47 changes

Breaking changes 6

  • Import parse from micromark instead of the micromark/parse subpath.

    4.0.0release notes

  • The extension is removed from the export-map path; import from micromark/stream instead.

    4.0.0release notes

  • Import codes from micromark-util-symbol instead of the codes subpath.

    4.0.0release notes

  • Node.js 16 is now required to run micromark.

    4.0.0release notes

  • Uint8Array replaces Buffer; unusual encodings might behave differently, so use UTF-8.

    4.0.0release notes

  • micromark now uses Unicode regexes, which require support for /\p{P}/u.

    4.0.0release notes

Fixes and other changes 1

micromark 34 changes

Breaking changes 3

  • Character checks such as asciiControl no longer accept eof (null) as okay.

    3.0.0release notes

  • The package is ESM-only; replace CommonJS require with an ESM named import.

    3.0.0release notes

  • sanitizeUri now performs encoding too.

    3.0.0release notes

Tooling 1

  • Types are now based on JSDoc, which may affect how developers consume the package's types.

    3.0.0release notes