npm / unist-util-visit
unist-util-visit
What changed in unist-util-visit 2 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
6 breaking1 new APIs and options2 performance2 tooling1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initunist-util-visit 58 changes
Breaking changes 4
This declaration file was removed; use the main export instead.
The package now uses an export map; developers should avoid private APIs.
Node.js 16 is now required, so developers must use a compatible runtime.
The package now passes
undefinedrather thannull; update callers or expectations accordingly.
New APIs and options 1
Adds support for exit visitors.
Performance 2
Fixes performance around indexOf.
The performance of the InclusiveDescendant type was fixed.
Fixes and other changes 1
Fixes type support for readonly arrays.
unist-util-visit 41 changes
Breaking changes 1
TypeScript types for what visitor gets are now based on tree; this is breaking if you use TypeScript.
unist-util-visit 32 changes
Breaking changes 1
The package uses ESM; import visit with a named import instead of using require.
Tooling 1
Types are now based on JSDoc, giving developers type information for the package.
unist-util-visit 21 changes
Tooling 1
Typings were added; this may be breaking if you or your dependents use TypeScript.