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
- Maintenance status: The last recorded upstream push and published update is 2025-03-05, which is about 15 months ago as of 2026-06-09, so the project appears quiet/dormant rather than actively maintained.
- Update cadence: Updates came in a relatively tight burst around Feb to Mar 2025 (2.3.3 to 2.3.6), but there is no evidence of further updates since then.
AI summary generated
Recent updates
2.3.6
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
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.
Breaking2.3.4
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.
2.3.3
Release 2.3.3 is primarily described as an update to the `property-information` dependency. However, the code diff shows multiple additional changes, including React and tooling dependency bumps, TypeScript type declaration adjustments, and observable output behavior changes in the JSX attribute casing and source information used by tests.
Breaking2.3.2
Release 2.3.2 is a small TypeScript-focused update. The release notes mention a fix to allow assigning the React runtime to the library’s types.
2.3.1
Release 2.3.1 focuses on type surface changes and documentation. The main documented updates are adding guidance for registering a global JSX namespace (for React 19 type support) and refactoring TypeScript declarations, including adding declaration maps.
Features2.3.0
Version 2.3.0 adds an option called `createEvaluater` intended to supply an evaluator for embedded MDX expressions/programs. The actual code changes go much further than the release notes, adding new MDX JSX node handling, multiple new exported TypeScript types, and several notable dependency upgrades.
BreakingFeatures2.2.0
Release 2.2.0 adds a new `ignoreInvalidStyle` option to prevent errors when parsing invalid `style` strings, and it exports a new `ExtraProps` type. It also adjusts the `passNode` behavior when rendering components.
Features2.1.1
Release 2.1.1 contains a small documented typo fix. However, the actual code change modifies how the `align` attribute is converted into a `style` property name, based on `stylePropertyNameCase`.
2.1.0
Release 2.1.0 introduces a new option, `tableCellAlignToStyle`, intended to convert obsolete `align` props on `td` and `th` into CSS `style` properties. The release notes are minimal and only mention the option addition and a small docs typo fix.
Features