npm / mdast-util-from-markdown
mdast-util-from-markdown
What changed in mdast-util-from-markdown 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
7 breaking3 new APIs and options1 tooling1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmdast-util-from-markdown 29 changes
Breaking changes 6
enter now returns undefined; keep the node passed to enter around and get the node yourself before exit.
exit now returns undefined; keep the node passed to enter around and get the node yourself before exit.
Node.js 16 is now required.
The deprecated OnError type is removed; use OnEnterError instead.
Extensions replace getter/setter data access with raw data: use this.data.x instead of this.getData('x') or this.setData('x', 1).
Buffers change from Buffer to Uint8Array; use encodings supported by TextDecoder.
New APIs and options 2
Adds support for afterExit listeners.
Adds support for beforeEnter listeners.
Fixes and other changes 1
Fixes passing encoding: undefined together with options.
mdast-util-from-markdown 13 changes
Breaking changes 1
The package now uses ESM, which may affect how developers load it.
New APIs and options 1
Extension support now accepts lists of extensions.
Tooling 1
Adds JSDoc-based types for the API.