---
title: "unist-util-visit 5.2.0 Breaking Changes on npm | Since.dev"
description: "What each unist-util-visit release removed, renamed or changed: 14 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/unist-util-visit
last_updated: 2026-12-04
---

# 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

Latest version `5.2.0`, released October 24, 2026. [Source repository](https://github.com/syntax-tree/unist-util-visit)

Its 5.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).

- From [4.0.0](#v-4-0-0) to [5.2.0](#v-5-2-0): 8 breaking changes in 2 versions.
- From [3.0.0](#v-3-0-0) to [5.2.0](#v-5-2-0): 11 breaking changes in 3 versions.

## unist-util-visit 5.2.0 breaking changes

unist-util-visit 5.2.0, released October 24, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/unist-util-visit/v/5.2.0)

## unist-util-visit 5.0.0 breaking changes

unist-util-visit 5.0.0, released July 7, 2023: 7 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](https://github.com/syntax-tree/unist-util-visit/releases/tag/5.0.0)
- **Behavior changed**  

The package now passes undefined, not null. Code that checks for null must check for undefined instead. [github.com](https://github.com/syntax-tree/unist-util-visit/releases/tag/5.0.0)
- **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](https://github.com/syntax-tree/unist-util-visit/releases/tag/5.0.0)
- **Configuration changed**  

The package now uses an export map. Code that imports private APIs must switch to the main export. [github.com](https://github.com/syntax-tree/unist-util-visit/releases/tag/5.0.0)
- **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](https://www.npmjs.com/package/unist-util-visit/v/5.0.0)
- **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](https://www.npmjs.com/package/unist-util-visit/v/5.0.0)
- **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](https://www.npmjs.com/package/unist-util-visit/v/5.0.0)

## unist-util-visit 4.0.0 breaking changes

unist-util-visit 4.0.0, released July 30, 2021: 3 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](https://github.com/syntax-tree/unist-util-visit/releases/tag/4.0.0)
- **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](https://www.npmjs.com/package/unist-util-visit/v/4.0.0)
- **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](https://www.npmjs.com/package/unist-util-visit/v/4.0.0)

## unist-util-visit 3.0.0 breaking changes

unist-util-visit 3.0.0, released April 20, 2021: 3 breaking changes.

- **Removed** `default`  

default was removed in unist-util-visit 3.0.0 [npmjs.com](https://www.npmjs.com/package/unist-util-visit/v/3.0.0)
- **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](https://github.com/syntax-tree/unist-util-visit/releases/tag/3.0.0)
- **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](https://www.npmjs.com/package/unist-util-visit/v/3.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.
