---
title: "mdast-util-toc 7.0.0 Breaking Changes on npm | Since.dev"
description: "What each mdast-util-toc release removed, renamed or changed: 7 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/mdast-util-toc
last_updated: 2026-12-04
---

# 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

Latest version `7.2.0`. 

Its 7.0.0 release requires [Node.js 16](https://since.dev/calendar/nodejs/16.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## mdast-util-toc 7.0.0 breaking changes

mdast-util-toc 7.0.0, released July 8, 2023: 7 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](https://github.com/syntax-tree/mdast-util-toc/releases/tag/7.0.0)
- **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](https://github.com/syntax-tree/mdast-util-toc/releases/tag/7.0.0)
- **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](https://github.com/syntax-tree/mdast-util-toc/releases/tag/7.0.0)
- **Signature changed** `Result.endIndex`  

Was endIndex: number | null; now endIndex: number | undefined. [npmjs.com](https://www.npmjs.com/package/mdast-util-toc/v/7.0.0)
- **Signature changed** `Result.index`  

Was index: number | null; now index: number | undefined. [npmjs.com](https://www.npmjs.com/package/mdast-util-toc/v/7.0.0)
- **Signature changed** `Result.map`  

Was map: List | null; now map: List | undefined. [npmjs.com](https://www.npmjs.com/package/mdast-util-toc/v/7.0.0)
- **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](https://www.npmjs.com/package/mdast-util-toc/v/7.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
