NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4721 most downloaded on npm
HTML to DOM parser.
Last release 1 months ago
13 Aug 2026
Release timing varies
gaps range from 8 days to 6 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
63 releases · first in 2016
bundle ESM-only server deps into CJS build to avoid ERR_REQUIRE_ESM_RACE_CONDITION (68e3f8f), closes #1551
One column per quarter.
tsconfig: build output now targets ES6 instead of ES5
options: add CSP support with trustedTypePolicy (#1439) (25da34e) @remdex
bundle ESM-only deps into CJS output with Rollup (#1409) (901f1b4) @athenacfr
deps: bump htmlparser2 from 11.0.0 to 12.0.0
client: remove exports formatAttributes and CARRIAGE_RETURN constants
client: fix polynomial regular expression used on uncontrolled data
fix npm script "prepublishOnly"
resolve ModuleNotFoundError in ESM environments by generating native bundles (#1299) (7172552) @Div627
## 5.1.4 (2026-01-23) ### Miscellaneous Chores * release 5.1.4
readme: replace badgen.net with shields.io status badges
## 5.1.1 (2025-05-09) ### Documentation * readme: fix build status badge
add browser and default conditions to "." #1059 (aa0ca64), closes #1058 @beeequeue
deps: bump htmlparser2 from 9.1.0 to 10.0.0
client: don't break LaTeX when replacing carriage returns (d69bc66), closes #917
enable client parser to retain carriage return characters (#902) (fe2e993), closes #420 @kingflamez
github: publish package to npm registry with provenance
exports field includes package.json (#765) (c373a92) @jlarmstrongiv
## 5.0.8 (2024-02-12) ### Bug Fixes * esm: fix exported types
deps: bump htmlparser2 from 9.0.0 to 9.1.0
re-export types correctly for verbatimModuleSyntax
esm: fix ESM types by adding .mts declaration files
## 5.0.4 (2023-10-31) ### Bug Fixes * esm: support vite bundler
## 5.0.3 (2023-10-22) ### Miscellaneous Chores * export types from index.ts
package: add "/src" to files to fix source map warning
package: add types to exports in package.json
CommonJS imports require the .default key.
index: set TypeScript Version to 5.2 in index.d.ts
deps: bump htmlparser2 from 8.0.2 to 9.0.0
deps: bump htmlparser2 from 8.0.1 to 8.0.2 (4fbe117), closes #433
client: correct spelling of feGaussianBlur (9e28250), closes #429
client: check for "template" in utilities formatDOM (748cf27), closes #417
client: get template content childNodes in utilities formatDOM (c2c0bed), closes #414
package: specify types in package.json and exports field
client: fix import in html-to-dom.mjs (78a7607), closes #337
client: correct ECMAScript export in client html-to-dom.mjs (7de506c), closes #334
## 3.1.0 (2022-08-16) ### Features * add esm for client
client: ensure head and body with newline are parsed correctly (b26b645), closes #317
upgrade domhandler to 5.0.3 and htmlparser2 to 8.0.1
client: remove Internet Explorer (IE11) support
add compatibility for react-native
package: upgrade domhandler from 4.3.0 to 4.3.1
### Features * add ES Module support
deps: bump domhandler from 4.2.2 to 4.3.0
upgrade dependency htmlparser2 to v7.2.0
deps: bump domhandler from 4.2.0 to 4.2.2
## 1.0.1 (2021-06-13)
client: deprecate Internet Explorer 9 (IE9)
domhandler to v4 and htmlparser2 to v6 (ec5673e)domhandler to v4 and htmlparser2 to v6 domhandler 3.3.0 → 4.0.0
htmlparser2 4.1.0 → 6.0.0
domhandler:
htmlparser2:
decodeEntities option now defaults to true. <title> is parsed correctly. Remove root parent node to keep parser backwards compatible.
upgrade domhandler to 3.3.0 and htmlparser2 to 4.1.0
upgrade domhandler to 3.0.0 and htmlparser to 4.0.0
## 0.3.1 (2020-12-13)
lib: throw error if browser does not support parsing methods
lib: improve head and body regex in domparser.js (457bb58), closes #18
eslint and install prettier and plugin (b7a6b81)webpack and save webpack-cli (908e56d)html.js (25d7e8a)html.js (6fdf2ea)complex.html (1418775)index.js which exports helpers (a9255d5)runTests to its own file (8e30784)html-to-dom-server.js to server directory (3684dac)utilities: do not lowercase case-sensitive SVG tags
## 0.2.1 (2019-04-03)
types: add TypeScript decelerations
Fix regular expression vulnerability
Create helper isIE() in utilities
isIE() in utilities (#7)mocha@3.4.2 and webpack@2.6.1 (#5)build runs both build:min and build:unmin (#5)CHANGELOG with previous releases backfilled
createHTMLDocument (#4)Your coding agent can read these notes before it upgrades. Set up the MCP server →