mdast-util-toc breaking changes
mdast-util-toc 7.0.0 (July 8, 2023) is its newest release with breaking changes, 7 of them. The first: Returns undefined instead of null in mdast-util-toc 7.0.0. Every breaking API change we have recorded in mdast-util-toc on npm: 7 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.2.0.
Its 7.0.0 release requires Node.js 16 or later. Node.js end of life dates.
mdast-util-toc 7.0.0 breaking changes
- Behavior changed
The package now returns undefined where it previously returned null. Code that checks for null must check for undefined instead. github.com - Configuration changed
The package now requires Node.js 16 or later. Users on older Node.js versions must upgrade before using this release. github.com - Configuration changed
The package now resolves imports through an export map, so private internal paths are no longer available. Import only the public entry points. github.com - Signature changed
Result.endIndex
Was endIndex: number | null; now endIndex: number | undefined. npmjs.com - Signature changed
Result.index
Was index: number | null; now index: number | undefined. npmjs.com - Signature changed
Result.map
Was map: List | null; now map: List | undefined. npmjs.com - Signature changed
toc
Was function toc(tree: Node, options?: Options | null | undefined): Result; now function toc(tree: Nodes, options?: Options | null | undefined): Result. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.