# What changed in unist-util-visit-parents

> 12 changes in unist-util-visit-parents 3 to 6 from its official release notes, upgrade guides and advisories: 5 breaking, 2 new APIs and options. Each one cited. Sources checked 2026-10-31. HTML: https://unstale.sh/npm/unist-util-visit-parents/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## unist-util-visit-parents 6

### Breaking changes

- This declaration file was removed; use the main export instead. (6.0.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/6.0.0)
- The package now uses an export map; consumers should avoid private APIs. (6.0.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/6.0.0)
- Node.js 16 is now required to use the package. (6.0.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/6.0.0)

### New APIs and options

- Support for exit visitors was added. (6.1.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/6.1.0)
- The index of a node in its parent is now available. (6.1.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/6.1.0)

### Performance

- The performance of the InclusiveDescendant type was improved. (6.0.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/6.0.0)

### Tooling

- TypeScript can now infer the type of parents. (6.0.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/6.0.0)

### Fixes and other changes

- Fixes type support for readonly arrays. (6.0.2) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/6.0.2)

## unist-util-visit-parents 5

### Breaking changes

- Types now base what visitor gets on tree; this is a breaking change for TypeScript users. (5.0.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/5.0.0)

## unist-util-visit-parents 4

### Breaking changes

- The package uses ESM, affecting how developers import it. (4.0.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/4.0.0)

### Tooling

- Types are added based on JSDoc, providing type information to developers. (4.0.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/4.0.0)

## unist-util-visit-parents 3

### Tooling

- Typings were added; this may be breaking if you or your dependents use TypeScript. (3.0.0) — [release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases/tag/3.0.0)
