Back to Explore

fb55/domelementtype

GitHub
2 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

  • Maintenance status: Appears actively maintained, with the most recent published update (v3.0.0 on 2026-03-17) and an upstream push on 2026-09-03 indicating ongoing development.
  • Update cadence: There was a long quiet stretch between 2022-04-07 (v2.3.0) and 2026-03-17 (v3.0.0), but updates have been more recent since then (March 2026, plus a September 2026 upstream push).

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