unstale

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 init

@unstale/cli on npm

mdast-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.

    2.0.0release notes

  • exit now returns undefined; keep the node passed to enter around and get the node yourself before exit.

    2.0.0release notes

  • Node.js 16 is now required.

    2.0.0release notes

  • The deprecated OnError type is removed; use OnEnterError instead.

    2.0.0release notes

  • Extensions replace getter/setter data access with raw data: use this.data.x instead of this.getData('x') or this.setData('x', 1).

    2.0.0release notes

  • Buffers change from Buffer to Uint8Array; use encodings supported by TextDecoder.

    2.0.0release notes

New APIs and options 2

Fixes and other changes 1

  • Fixes passing encoding: undefined together with options.

    2.0.3release notes

mdast-util-from-markdown 13 changes

Breaking changes 1

  • The package now uses ESM, which may affect how developers load it.

    1.0.0release notes

New APIs and options 1

  • Extension support now accepts lists of extensions.

    1.0.0release notes

Tooling 1