Back to Explore

syntax-tree/unist-util-visit

GitHub
1 watchersOpen source

Last release: 4 months ago

unist-util-visit is a utility for working with Unist syntax trees, letting you walk the tree and run a visitor function on matching nodes. It provides helpers to continue traversal, skip child traversal, and exit early, which is useful for tasks like processing or inspecting nodes in a tree structure.

Project status

  • Actively maintained, as evidenced by a relatively recent update (5.1.0 on 2026-01-22), with the last upstream push also on 2026-01-22.
  • Apparent update cadence is low but not abandoned, with a multi year gap between 5.0.0 (2023-07-07) and 5.1.0 (2026-01-22).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 5.1.0

    4 months ago

    Release 5.1.0 focuses on TypeScript type declaration improvements, including switching JSDoc to use `@import`s, adding declaration maps, and improving type support for readonly array checks. The runtime library code does not show functional changes in the provided diff, but the repo build and CI toolchain were updated.

    Features
  • 5.0.0

    7/7/2023

    Release 5.0.0 is a major update that modernizes the package for ESM tooling and TypeScript, including updating the public export setup and tightening Node.js support. It also changes the `visit` callback’s `index` and `parent` values to use `undefined` instead of `null`, and contains a TypeScript performance fix around `InclusiveDescendant`.

    Breaking
  • 4.1.2

    1/24/2023

    Release 4.1.2 is described as documentation and code-style/refactor work, plus a tsconfig update. However, the actual diff shows a larger restructure: the runtime implementation and most type definitions were moved into a new lib/index.js with new/reworked declaration entrypoints, while the root index.js became a re-export layer.