Repository navigation
build(deps): upgrade htmlparser2 to v12 - #109
Merged
Merged
Conversation
BREAKING CHANGE: require Node.js ^20.19.0 || >=22.12.0 and TypeScript >=5.3.
This was referenced Oct 28, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
htmlparser2from 9 to 12 and update its transitive runtime dependencies.lowerCaseTagsbehavior for SVG elements.tscso type-only imports retain their resolution mode.Breaking changes
^20.19.0 || >=22.12.0. These versions can synchronously load the ESM-only backend through the existing CommonJS API. Earlier Node.js 22 releases cannot do so.decodeEntities: true, entities in<textarea>content are now decoded. For example,&becomes&; the previous backend left it encoded in this case.Verification
npm ci, build, lint and typecheck in the new working copy.posthtml-parser@0.12.1: 175 of 176 cases unchanged, with the one documented textarea decoding correction.Coverage: 99.37% statements/lines, 98.55% branches and 100% functions;
src/index.tshas 100% coverage.