hast-util-from-html is a utility that parses serialized HTML into a hast (HTML AST) syntax tree. It is useful when you want to work with syntax trees directly, with options for parsing fragments, switching between HTML and embedded SVG, and configuring how HTML parse errors are handled.
Project status
- Maintenance status: Quiet, effectively dormant. The most recent upstream push and latest listed updates are from 2024-09-17, which is long before today (2026-06-09), with no evidence of more recent activity.
- Update cadence: Historically clustered updates, with a noticeable gap since the latest ones (from 2024-09-17 through 2026-06-09 no further updates are shown). Earlier years show bursts around 2023-08 and 2022-05, but recent cadence is clearly slowed/stalled.
AI summary generated
Recent updates
2.0.3
Release 2.0.3 primarily contains a TypeScript declaration fix, described as correcting types that were accidentally destroyed by `xo`. The code diff is limited to type definitions and tooling configuration, with no runtime implementation changes shown.
2.0.2
Release 2.0.2 primarily adds TypeScript declaration map generation (declarationMap) and introduces explicit type declaration files. Code changes also reorganize where the public types are defined and exported, while the runtime behavior of `fromHtml` appears effectively unchanged.
2.0.1
Release 2.0.1 is a small update focused on TypeScript/JSDoc typing. The documented change is a fix related to registering data from `hast-util-from-parse5`.
2.0.0
Release 2.0.0 upgrades the package for newer ecosystem dependencies and modern Node.js support. It also changes how parse errors are reported (notably the `source` on parse error messages) and modernizes package entry resolution via the `exports` field.
Breaking1.0.2
Release 1.0.2 makes a small dependency/tooling update in the project configuration. The documented change appears to be adding a previously missing dependency related to types, but the code diff also includes additional, undocumented configuration changes.
1.0.1
Release 1.0.1 claims to only add improved documentation. However, the diff shows changes beyond docs, mainly around the `fromHtml` option handling and the TypeScript-facing JSDoc/type definitions, plus build and CI configuration updates.
1.0.0
Release 1.0.0 was published on 2022-05-29. The provided release notes contain no feature, fix, or compatibility details, only a link to the full changelog for commit-level inspection.