Back to Explore

syntax-tree/unist-util-is

GitHub
1 watchersOpen source

Last release: 7 months ago

unist-util-is is a small utility for checking whether a UNIST node matches a given test, such as a specific node type or a set of required properties. It’s useful for avoiding repeated node-type and structure checks when working with syntax trees.

Project status

  • The source syntax-tree/unist-util-is appears actively maintained, with a recent update (6.0.1 on 2025-10-16) and a latest upstream push timestamp of 2025-10-22.
  • Update cadence looks relatively low frequency: a major update in 2023 (6.0.0), then a long gap until another update in late 2025 (6.0.1).

AI summary generated Today

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

Recent updates

  • 6.0.1

    7 months ago

    Release 6.0.1 primarily improves the TypeScript typings of `unist-util-is` to accept `ReadonlyArray` in test conditions. The diff also shows packaging, build, and CI/tooling changes that are not mentioned in the release notes.

    Features
  • 6.0.0

    7/7/2023

    unist-util-is 6.0.0 is a major release that modernizes the type system, renames several exported type aliases, and changes the package entrypoint via an export map. It also raises the minimum supported Node.js version to 16. The code changes go beyond the release notes mainly in how the package is declared to Node and how TypeScript types are expected to resolve.

    Breaking
  • 5.2.1

    2/27/2023

    Release 5.2.1 mainly updates the package manifest. The documented change is adding @types/unist to the dependencies.

  • 5.2.0

    1/23/2023

    Release 5.2.0 primarily documents an added TypeScript export, `PredicateTest`, and includes miscellaneous documentation and tsconfig updates. The code diff, however, shows a large internal refactor (moving implementation and JSDoc type definitions into a new `lib/` module) plus substantial build, tooling, and dev dependency changes not called out in the release notes.

    Features
  • 5.1.1

    7/21/2021

    Release 5.1.1 is presented as a type-only fix, specifically updating typings to allow `null`. The code diff shows additional runtime and tooling-related changes beyond the documented type tweak.

  • 5.1.0

    5/10/2021

    Release 5.1.0 introduces a new `Test` type alias in the TypeScript definitions. It also updates the `test` parameter typings for `is` and `convert` to reference this new alias, with no apparent runtime logic changes.

    Features
  • 5.0.0

    4/19/2021

    v5.0.0 is a major refactor that switches the package to ESM and replaces the hand-authored TypeScript declaration files with JSDoc-based type definitions generated from the source. The runtime entrypoint also changes how exports are exposed and how the `convert` utility is surfaced to consumers.

    BreakingFeatures
  • 4.1.0

    3/7/2021

    Release 4.1.0 focuses on TypeScript typing updates for `unist-util-is`. It expands the `test` parameter types to support nullish values and updates the documented behavior accordingly.

    Features
  • 4.0.4

    11/29/2020

    Release 4.0.4 is a small patch focused on making `convert` reliably return boolean values instead of sometimes returning `undefined`. In addition to that runtime behavior fix, the repo updates CI configuration, build script flags, and a dev lint dependency.

  • 4.0.3

    10/30/2020

    Release 4.0.3 is a small internal refactor described as improving bundle size. The code changes actually touch core validation and predicate conversion logic, including error behavior and the return values of predicate functions produced by `is.convert`.