Back to Explore

jsx-eslint/jsx-ast-utils

GitHub
2 watchersOpen source

Last release:

jsx-ast-utils is an AST utility module for statically analyzing JSX syntax. It helps evaluate AST objects for JSX elements, which is useful for writing linting rules, and provides helper functions like hasProp, hasAnyProp, hasEveryProp, getProp, and functions to read prop names and values. It also includes lists of common JSX event handler props (for example, grouped by event type).

Project status

  • Maintenance status (evidence-based): The most recent tagged updates in the provided history are from 2023-07-29 (v3.3.5), but there is also a recent upstream push on 2026-02-25. Based on the release/update gaps alone, it appears mostly quiet from a release standpoint rather than actively shipping frequent changes.
  • Update cadence: Tagged updates show multi-month to multi-year gaps (for example, v3.3.4 in 2023-06, then v3.3.5 in 2023-07, and then nothing new in the provided list until at least 2023-07). Since today is 2026-06-09, this suggests infrequent releases relative to current date.

AI summary generated

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

Recent updates

  • v3.3.5

    v3.3.5 adds support for JSXFragment when extracting JSX prop values, specifically covering nested fragment cases. The only functional change shown is wiring JSXFragment into the value extraction pipeline and adding tests to validate nested fragments behavior.

  • v3.3.4

    v3.3.4 contains small behavioral improvements to JSX AST value extraction, plus some internal refactors and test additions. It also updates several dev dependencies and adds two runtime dependencies (array.prototype.flat, object.values) to support refactored implementation code paths.

    Features
  • v3.3.3

    Release v3.3.3 was published on 2022-08-08, but the publisher did not provide any release notes or change log content. Without documented changes, there is no actionable information here about new features, bug fixes, breaking changes, security updates, or migration steps.

  • v2.2.0

    Release 2.2.0 updates JSX AST value extraction to handle TypeScript-specific AST node types and changes behavior when encountering unknown AST nodes. The release also upgrades dependencies and adjusts CI, plus updates tests to reflect the new non-throwing behavior.

    Breaking
  • v2.1.0

    v2.1.0 extends the JSX prop AST value extraction to handle newer syntax, including optional chaining and additional TypeScript node types (TSAsExpression, TSNonNullExpression). It also improves evaluation for template literals containing undefined, and adds support for object spread constructs in prop values. The release appears focused on broader AST coverage rather than introducing a new public API.

    Features
  • v2.0.0

    v2.0.0 introduces an API contract change around `propName`, and includes multiple JSX value extraction improvements. The provided release notes are effectively empty (only a reference to #50), so most behavioral and API changes are not explicitly documented there.

    BreakingFeatures
  • v1.3.2

    This release (v1.3.2) adds support for UpdateExpression. The provided release notes are minimal and only reference issue #3, without describing specific behavioral changes or fixes in detail.

    Features