Back to Explore

fb55/domelementtype

GitHub
1 watchersOpen source

Last release:

Provides a list of all node types used in htmlparser2’s DOM, useful when you need to understand or work with how htmlparser2 represents parsed HTML in code.

Project status

  • Actively maintained (recent activity): the most recent recorded update is v3.0.0 on 2026-03-17, and the upstream repository shows a push on 2026-03-26 (within about 3 months of today, 2026-06-11).
  • Apparent update cadence: historically sporadic (notably updates in 2019-2022, then a multi-year gap until 2026), but with a fresh update cycle in early 2026.

AI summary generated

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

Recent updates

  • v3.0.0

    v3.0.0 primarily marks domelementtype as ESM-only. Alongside that, the project changed its packaging and build setup to output to dist and to use modern NodeNext TypeScript and new linting/formatting tooling.

    Breaking
  • v2.3.0

    v2.3.0 primarily adds an ESM build output under lib/esm and updates the package entry points to support both CommonJS (require) and ESM (import). Alongside that, the release also updates the build scripts, adds a package.json exports map, and bumps several development toolchain dependencies.

    BreakingFeatures
  • v2.2.0

    Release v2.2.0 makes a small source change to how `ElementType` is exported, switching from a TypeScript `const enum` to a regular `enum`. The release notes state this explicitly as the main change, along with routine version bumps in the package metadata.

    Breaking
  • v2.1.0

    Release v2.1.0 adds a new `root` element type to the `domelementtype` exports, alongside a `Root` alias for backwards-compatible usage. It also updates CI to run tests on `ppc64le`. Version metadata was bumped from 2.0.2 to 2.1.0.

    Features
  • v2.0.2

    v2.0.2 makes mostly metadata and documentation updates (exported ElementType documentation and funding info). The code diff also includes several repository-wide build and tooling configuration changes, plus large development dependency version bumps via the lockfile.

    Features
  • v2.0.1

    Release v2.0.1 updates the package manifest so that the published entrypoints point to the compiled output under lib/. It also adjusts which files are included when publishing to npm.

  • v2.0.0

    This release ports `domelementtype` to TypeScript. It adds a new TypeScript-friendly `ElementType` export (a `const enum`) intended for use by TypeScript consumers, replacing previous patterns for accessing element types.

    Features