The new version of domhandler now comes with an actual root element for the document. This might break tests in a few cases. See the domhandler release notes for more details.
Make some private properties actually private 1c71e60
Features:
Add a parseDocument method 4653f23
This returns the root node of the document, instead of an array of the first nodes. You likely want to use this instead of the now deprecated getDOM method.
Fix: Remove @types/node as a peer dependency 1ace384
Also pulls in a new version of the entities module, which features more compact entity maps.
v5.0.0
Breaking changes:
Default the decodeEntities option to true 8ac01e0
Removes underscores in front of many private properties & methods. 6e296d2
Removes EVENTS, WritableStream and CollectingHandler exports from module import. The latter two are still part of the module, but now have to be imported explicitly. 6e296d2
The parser no longer extends EventEmitter f30f13c
HTML <title> tag content is now processed as text (#483 by @billneff79) 0189e56
Features:
Add media content parsing to FeedHandler (#560 by @gcandal) a85e4e0
Expose the quotes that were used in the onattribute event 3c86256
Add "sideEffects: false" to package.json (#474 by @ericjeney) d90dd64
Explain stream usage in README (#446 by @mnmkng) 4c0fba8
Bug Fixes:
Properly back out of numeric entities, decode entities in attributes (fixes #276) eaf2872
Fix broken parsing after self-closing special tags (#515 by @warriordog) 4ec596f
Fix parse bug when tag name is not ASCII alpha (#497 by @Zuckjet) bc010de
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps htmlparser2 from 4.1.0 to 6.0.0.
Release notes
Sourced from htmlparser2's releases.
Commits
a9248db
6.0.09b9571a
build(deps-dev): Bump @typescript-eslint/eslint-plugin1c7fe65
fix(gh-action): Fix formatting issue0d278fd
build(deps): Bump domutils from 2.4.3 to 2.4.4d1a5df0
refactor(gh-actions): Merge NodeJS actions02a2c39
build(deps-dev): Bump @typescript-eslint/parser from 4.9.0 to 4.9.176d552c
build(deps-dev): Bump eslint-config-prettier from 6.15.0 to 7.0.0 (#663)49ae7a5
build(deps-dev): Bump eslint from 7.14.0 to 7.15.0 (#662)df7ea98
chore(docs): Update docs4653f23
feat(index): AddparseDocument
methodDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)