Back to Explore

syntax-tree/hastscript

GitHub
1 watchersOpen source

Last release: 2/19/2025

hastscript is a hyperscript-style helper for creating hast (HTML AST) trees using function calls. It provides `h` for HTML and `s` for SVG, converting simple selectors and children into the hast node structures and normalizing attributes into the form expected by hast.

Project status

  • Upstream appears actively maintained, last upstream push was 2026-03-19, and there was a recent update tagged as 9.0.1 on 2025-02-19 (though 9.0.1 is described as a dependency update).
  • Update cadence looks roughly annual based on tags, with major updates in 8.0.0 (2023-08-01), 9.0.0 (2024-01-21), and a patch update 9.0.1 (2025-02-19).

AI summary generated Today

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

Recent updates

  • 9.0.1

    2/19/2025

    Release 9.0.1 is described only as an update to the `property-information` dependency. The actual diff shows additional, broader changes, especially around TypeScript declaration output and the internal JSX runtime/type surface area.

    BreakingFeatures
  • 9.0.0

    1/21/2024

    hastscript 9.0.0 focuses on changing how the library disambiguates the second argument to `h(tag, ...)` between element properties and child nodes, described as better custom element support. The code changes significantly alter the overload detection heuristics, and the release also updates TypeScript packaging to include declaration maps.

    Breaking
  • 8.0.0

    8/1/2023

    hastscript 8.0.0 is a major release that updates the TypeScript typing infrastructure and reworks how the JSX runtimes are implemented and exported. It also raises the minimum supported Node.js version to 16 and removes some previously available export entrypoints.

    Breaking