Fixed how start & end index positions are calculated (#910) 5ab080e
Some indices, especially end indices, will now have changed. Most importantly, end indices will now always be greater or equal to start indices (whoops!).
Features:
Added an isVoidElement method to the parser (#785) 00ce57a
Refactors:
Use a trie to decode HTML & XML entities in the tokenizer (#863) 9a47a55
Leads to large speed-ups when dealing with entities.
Iterate over char codes in the tokenizer (#894) f5aed75
Improved tokenizer performance by ~40%.
Use Map for openImpliesClose in the parser (#911) 39a8109
Moved logic of FeedHandler to a function (#912) 3a672ff
v6.1.0
Features:
Export tokenizer callback interface from main module (#751) ab0b3fc f59473a
Fixes:
Allow XML tags to start with any character (#778) 0b94ab5
Upgrades:
Bump domhandler from 4.0.0 to 4.1.0 e64e8e5
Bump domelementtype from 2.1.0 to 2.2.0 8bc1719
Bump domutils from 2.4.4 to 2.5.2 8b91d97 cf77476 7c233de
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.
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 7.0.0.
Release notes
Sourced from htmlparser2's releases.
... (truncated)
Commits
d1b010b
7.0.03a672ff
refactor(feedhandler): Move logic ofFeedHandler
to function (#912)39a8109
refactor(parser): UseMap
foropenImpliesClose
(#911)5ab080e
refactor(parser): Correct start & end index positions (#910)ef8f2bd
build(deps-dev): Bump@types/node
from 16.6.1 to 16.6.2 (#909)b6d7688
build(deps-dev): Bump@typescript-eslint/parser
from 4.29.1 to 4.29.2 (#907)8006ada
build(deps-dev): Bump ts-jest from 27.0.4 to 27.0.5 (#908)0ea9571
build(deps-dev): Bump@typescript-eslint/eslint-plugin
(#906)34e27f9
build(deps-dev): Bump@types/node
from 16.6.0 to 16.6.1 (#905)731f982
build(deps-dev): Bump@types/jest
from 27.0.0 to 27.0.1 (#904)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)