Releases: fb55/htmlparser2
Releases · fb55/htmlparser2
v10.1.0
What's Changed
- entities was bumped from 6.0.1 to 7.0.1, bringing size & speed improvements #2215
- Test files are no longer shipped in the published module 72da671
New Contributors
Full Changelog: v10.0.0...v10.1.0
v10.0.0
v9.1.0
v9.0.0
Breaking Changes
- The tokenizer now uses the
EntityDecoderfrom theentitiesmodule #1480- Parsing of entities in attributes is now aligned with the HTML spec, and some inputs will produce different results. Eg. in
<a href='&=boo'>the attribute value won't be modified any more. - The
ontextentitytokenizer callback now has anendIndexargument; if you use the tokenizer directly, make sure indices are still the same.
- Parsing of entities in attributes is now aligned with the HTML spec, and some inputs will produce different results. Eg. in
- Stacks inside the parser have been reversed. #1511
Features
- Added a
createDocumentStreamfunction, analogous tocreateDomStream(which is now deprecated) #1510
Full Changelog: v8.0.2...v9.0.0
v8.0.2
Bug Fixes
Other changes
- Dependency version bumps
- GitHub Workflows security hardening by @sashashura in #1365
- refactor(lint): Add
eslint-plugin-nand-unicornby @fb55 in #1352 - chore(test): Move from JSON tests to specs by @fb55 in #1354
- docs(readme): Use GitHub Actions CI badge by @fb55 in #1374
New Contributors
- @sashashura made their first contribution in #1365
- @KillyMXI made their first contribution in #1460
Full Changelog: v8.0.1...v8.0.2
v8.0.1
v8.0.0
Breaking
- The deprecated
FeedHandlerclass has been removed #1166- See #1166 for how to migrate.
- Typescript >= 4.5 is now required; see #1242
- The types from
domhandleranddomutilshave changed, the deprecatednormalizeWhitespaceoption was removed #1164 - The parser was updated to no longer concatenate strings. This led to several changes of internal interfaces. #1045
- This reduces the memory overhead when parsing streams, and avoids copying memory.
- Breaking if you were previously extending internals.
Features
htmlparser2is now a dual CommonJS & ESM module #1165
Other changes
- Updated for
entities' updated decoding tree structure #1146 - Highlight special close-implies-open logic by @vassudanagunta in #1047
- Update Events/07 test to clarify interpretation of tag end slashes by @vassudanagunta in #1046
- Suggest
parse5for HTML compliance by @vassudanagunta in #1147
New Contributors
- @vassudanagunta made their first contribution in #1047
Full Changelog: v7.2.0...v8.0.0
v7.2.0
What's Changed
Fixes:
Docs
- docs(readme): make
parseDocument()example clearer by @cameronsteele in #998
Refactors:
- Introduce sequences & fast forwarding by @fb55 in #1007
- Emit text before entities once entity is confirmed by @fb55 in #1009
The refactors lead to a combined ~5% speed-up.
New Contributors
- @cameronsteele made their first contribution in #998
Full Changelog: v7.1.2...v7.2.0