Back to Explore

syntax-tree/hast-util-to-jsx-runtime

GitHub
1 watchersOpen source

Last release: 3/5/2025

hast-util-to-jsx-runtime converts a hast syntax tree into JSX elements for frameworks like Preact, React, Solid, Svelte, and Vue, using an automatic JSX runtime. It is useful when you already have a hast tree and want to render or integrate it with a chosen JSX-based framework.

Project status

  • Actively maintained, with recent updates landing in close succession (2.3.4 on 2025-02-24, 2.3.5 on 2025-02-25, 2.3.6 on 2025-03-05), and the latest upstream push dated 2025-03-05.
  • Apparent update cadence looks like roughly weekly to biweekly for this recent window, though the evidence only covers the last few tagged changes.

AI summary generated Today

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

Recent updates

  • 2.3.6

    3/5/2025

    Release 2.3.6 is described as a refactor that externalizes some code, but the notes do not detail behavioral changes. In the actual diff, the main functional change is the style parsing implementation, swapping libraries and changing how CSS properties are converted into the output style object.

  • 2.3.5

    2/25/2025

    Release 2.3.5 is a small change focused on removing a TypeScript type hack that no longer worked as intended. The main code changes adjust TypeScript exported types and corresponding test typings, with no clear runtime logic changes.

    Breaking
  • 2.3.4

    2/24/2025

    Release 2.3.4 focuses on TypeScript type behavior when a global `JSX` namespace is not available. While the release notes only mention a specific “Fix type error if `JSX` is not defined” change, the actual diff makes broader type-surface adjustments to conditionally fall back to `unknown` and removes a previously shipped global JSX type shim.