hast-util-whitespace is a small utility for hast (HTML AST) that checks whether a given node or string is inter-element whitespace according to HTML rules. It’s useful when you need to detect text nodes that contain only allowed whitespace characters like spaces, tabs, and line breaks.
Project status
- Actively maintained status, not supported by evidence, upstream last push was 2023-07-31, and there have been no reported updates since then, so this appears quiet or in maintenance mode as of 2026-06-09.
- Update cadence, based on the timeline shown, updates are infrequent (multi-year gaps), with releases clustered in 2018-2023 and no recent activity after mid-2023.
AI summary generated
Recent updates
3.0.0
Release 3.0.0 is a major update that drops support for older Node.js versions, restructures the package to use an `exports` entry, and tightens the `whitespace` API to only handle valid Hast text nodes or strings. The code changes also refactor the implementation into `lib/index.js` and update tooling and build configuration.
Breaking2.0.1
Release 2.0.1 is described as a documentation-only update. However, the actual diff includes multiple build, test, and CI/tooling changes in addition to documentation and minor JSDoc updates around the `whitespace` function.
2.0.0
v2.0.0 converts the package to ESM and adds JSDoc based types (with TypeScript-generated declaration support). The core whitespace-checking logic remains small and similar, but the published module interface changes.
Breaking1.0.4
Release 1.0.4 updates package metadata and documentation. The release notes mention adding a funding field, and adding security notes, plus a small prose refactor.
Features1.0.3
Release 1.0.3 is described as a prose refactor. The actual code changes appear limited to comment/doc formatting, but the release also updates CI configuration and several development tool dependencies, none of which are mentioned in the release notes.
1.0.2
Release 1.0.2 primarily updates metadata and documentation, including adding badges, switching various URLs to HTTPS, and renaming the LICENSE file to lowercase license. The shipped runtime code does not appear to change (only metadata, README, and build-related configuration are modified).
Features1.0.1
Release 1.0.1 primarily refactors repository and documentation, including a migration of repo metadata and links to the syntax-tree organization. The only runtime code change is a small style refactor in index.js, with the exported function name and behavior effectively preserved. However, the project tooling, test, and CI configuration changed significantly compared to 1.0.0.
Features1.0.0
Release 1.0.0 was published on 2016-04-15. The provided release notes contain no information about features, fixes, breaking changes, or migration steps.