unstale

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 init

@unstale/cli on npm

unist-util-visit 58 changes

Breaking changes 4

  • This declaration file was removed; use the main export instead.

    5.0.0release notes

  • The package now uses an export map; developers should avoid private APIs.

    5.0.0release notes

  • Node.js 16 is now required, so developers must use a compatible runtime.

    5.0.0release notes

  • The package now passes undefined rather than null; update callers or expectations accordingly.

    5.0.0release notes

New APIs and options 1

Performance 2

Fixes and other changes 1

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.

    4.0.0release notes

unist-util-visit 32 changes

Breaking changes 1

  • The package uses ESM; import visit with a named import instead of using require.

    3.0.0release notes

Tooling 1

  • Types are now based on JSDoc, giving developers type information for the package.

    3.0.0release notes

unist-util-visit 21 changes

Tooling 1

  • Typings were added; this may be breaking if you or your dependents use TypeScript.

    2.0.0release notes