unist-util-visit breaking changes
unist-util-visit 5.2.0 (October 24, 2026) is its newest release with breaking changes. The first: Signature changed visit. Every breaking API change we have recorded in unist-util-visit on npm: 14 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.2.0, released October 24, 2026. Source repository
Its 5.0.0 release requires Node.js 16 or later. Node.js end of life dates.
- From 4.0.0 to 5.2.0: 8 breaking changes in 2 versions.
- From 3.0.0 to 5.2.0: 11 breaking changes in 3 versions.
unist-util-visit 5.2.0 breaking changes
- Signature changed
visit
Was function visit<Tree extends UnistNode, Check extends Test>(tree: Tree, check: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined): undefined function visit<Tree extends UnistNode, Check extends Test>(tree... npmjs.com
unist-util-visit 5.0.0 breaking changes
- Removed
complex-types.d.ts
The complex-types.d.ts file was removed. Import its types from the main export instead. github.com - Behavior changed
The package now passes undefined, not null. Code that checks for null must check for undefined instead. github.com - Configuration changed
The package now requires Node.js 16 or later. Code that relies on private APIs must stop doing so, because the package now uses an export map. github.com - Configuration changed
The package now uses an export map. Code that imports private APIs must switch to the main export. github.com - Signature changed
BuildVisitor
Was type BuildVisitor<Tree extends import('unist').Node<import('unist').Data> = import('unist').Node<import('unist').Data>, Check extends import('unist-util-is/lib/index.js').Test = string> =... npmjs.com - Signature changed
visit
Was const visit: (<Tree extends import('unist').Node<import('unist').Data>, Check extends import('unist-util-is/lib/index.js').Test>(tree: Tree, test: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined) =>... npmjs.com - Signature changed
Visitor
Was type Visitor<Visited extends import('unist').Node<import('unist').Data> = import('unist').Node<import('unist').Data>, Ancestor extends import('unist').Parent<import('unist').Node<import('unist').Data>, import('unist').Data> =... npmjs.com
unist-util-visit 4.0.0 breaking changes
- Signature changed
The TypeScript types for what the visitor receives on the tree changed, so TypeScript users may need to update their type annotations. github.com - Signature changed
visit
Was const visit: (<T extends import('unist').Node>(tree: Node, test: | T['type'] | Partial<T> | import('unist-util-is').TestFunctionPredicate<T> | (| T['type'] | Partial<T> | import('unist-util-is').TestFunctionPredicate<T>)[], visitor... npmjs.com - Signature changed
Visitor
Was type Visitor<V extends import('unist').Node> = (node: V, index: number | null, parent: Parent | null) => VisitorResult; now type Visitor<V extends import('unist').Node<import('unist').Data>> = (node: V, index: number | null, parent... npmjs.com
unist-util-visit 3.0.0 breaking changes
- Removed
default
default was removed in unist-util-visit 3.0.0 npmjs.com - Behavior changed
The package now uses ES modules, so require() no longer loads it. Change code to use an import statement such as import {visit} from 'unist-util-visit'. github.com - Signature changed
Visitor
Was type Visitor<V extends Node> = (node: V, index: number, parent: Parent | undefined) => void | Action | Index | ActionTuple; now type Visitor<V extends import('unist').Node> = (node: V, index: number | null, parent: Parent | null) => |... 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.