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 initmicromark 47 changes
Breaking changes 6
Import
parsefrommicromarkinstead of themicromark/parsesubpath.The extension is removed from the export-map path; import from
micromark/streaminstead.Import
codesfrommicromark-util-symbolinstead of thecodessubpath.Node.js 16 is now required to run micromark.
Uint8Array replaces Buffer; unusual encodings might behave differently, so use UTF-8.
micromark now uses Unicode regexes, which require support for
/\p{P}/u.
Fixes and other changes 1
Fixes attention flanking next to others.
micromark 34 changes
Breaking changes 3
Character checks such as asciiControl no longer accept eof (null) as okay.
The package is ESM-only; replace CommonJS require with an ESM named import.
sanitizeUri now performs encoding too.
Tooling 1
Types are now based on JSDoc, which may affect how developers consume the package's types.