fix(deps): update dependency htmlparser2 to v8 #45

Merged
renovate[bot] merged 1 commit from renovate/htmlparser2-8.x into main 2022-08-01 19:16:48 +00:00
renovate[bot] commented 2022-08-01 18:52:15 +00:00 (Migrated from github.com)

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
htmlparser2 ^6.1.0 -> 8.0.1 age adoption passing confidence

Release Notes

fb55/htmlparser2

v8.0.1

Compare Source

  • Added missing WritableStream export in the package.json 6923fca

v8.0.0

Compare Source

Breaking

Features

Other changes

New Contributors

Full Changelog: https://github.com/fb55/htmlparser2/compare/v7.2.0...v8.0.0

v7.2.0

Compare Source

What's Changed

Fixes:

Docs

Refactors:

The refactors lead to a combined ~5% speed-up.

New Contributors

Full Changelog: https://github.com/fb55/htmlparser2/compare/v7.1.2...v7.2.0

v7.1.2

Compare Source

v7.1.1

Compare Source

  • Fixed a bug where implied close tags would be misreported (#​933) 903fb43
  • Fixed endIndex of text events being off by 1 (#​932) 78ef1b7

v7.1.0

Compare Source

Features:

Fixes:

  • htmlparser2@​7.0.0 changed how indices were computed. Unfortunately, a lot of edge-cases weren't handled correctly. This version fixes this.
    • refactor: Fix how indices are computed, add attrib indices (#​929) 28c162b
    • fix(parser): Fix indices for end, CDATA, add indices to tests (#​928) 4e25252
    • fix(parser): Don't override position for implied opening tags (#​917) fac221d
    • fix(parser): Index of closing tag was misaligned (#​913) 04c411c
  • .pause would lead to data being wrongfully discarded (#​927) 78af88d
  • The tokenizer would still emit some data after an error (#​923) 08b2040
  • Issue in foreign content: The tag name foreignObject will always be lowercased in HTML e852205

Refactors:

  • refactor(feeds): Move getFeed to domutils (#​931) f10dc03
  • refactor(tokenizer): Use explicit empty buffer if we have reached the end 9c30fe6
  • chore(tests): Add test for error without a listener 0eb0067
  • chore(tests): Use proxies to collect events (#​920) a2b0bf3
  • chore(tests): Move stream tests into WritableStream.spec (#​916) da67eba
  • refactor(tokenizer): Remove unused branches, improve test coverage (#​914) a2eae51
  • docs(readme): Update benchmark results d45fc82

v7.0.0

Compare Source

htmlparser2@​7.0.0 changes a lot of internals, resulting in an 20% overall performance improvement in AndreasMadsen's htmlparser-benchmark.

Breaking changes:

  • 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 than start indices (whoops!).

Features:

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

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [htmlparser2](https://togithub.com/fb55/htmlparser2) | [`^6.1.0` -> `8.0.1`](https://renovatebot.com/diffs/npm/htmlparser2/6.1.0/8.0.1) | [![age](https://badges.renovateapi.com/packages/npm/htmlparser2/8.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/htmlparser2/8.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/htmlparser2/8.0.1/compatibility-slim/6.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/htmlparser2/8.0.1/confidence-slim/6.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>fb55/htmlparser2</summary> ### [`v8.0.1`](https://togithub.com/fb55/htmlparser2/releases/tag/v8.0.1) [Compare Source](https://togithub.com/fb55/htmlparser2/compare/v8.0.0...v8.0.1) - Added missing `WritableStream` export in the `package.json` [`6923fca`](https://togithub.com/fb55/htmlparser2/commit/6923fca) ### [`v8.0.0`](https://togithub.com/fb55/htmlparser2/releases/tag/v8.0.0) [Compare Source](https://togithub.com/fb55/htmlparser2/compare/v7.2.0...v8.0.0) #### Breaking - The deprecated `FeedHandler` class has been removed [https://github.com/fb55/htmlparser2/pull/1166](https://togithub.com/fb55/htmlparser2/pull/1166) - See [https://github.com/fb55/htmlparser2/pull/1166](https://togithub.com/fb55/htmlparser2/pull/1166) for how to migrate. - Typescript >= 4.5 is now required; see [https://github.com/fb55/htmlparser2/issues/1242](https://togithub.com/fb55/htmlparser2/issues/1242) - The types from [`domhandler`](https://togithub.com/fb55/domhandler/releases/tag/v5.0.0) and [`domutils`](https://togithub.com/fb55/domutils/releases/tag/v3.0.0) have changed, the deprecated `normalizeWhitespace` option was removed [https://github.com/fb55/htmlparser2/pull/1164](https://togithub.com/fb55/htmlparser2/pull/1164) - The parser was updated to no longer concatenate strings. This led to several changes of internal interfaces. [https://github.com/fb55/htmlparser2/pull/1045](https://togithub.com/fb55/htmlparser2/pull/1045) - This reduces the memory overhead when parsing streams, and avoids copying memory. - Breaking if you were previously extending internals. #### Features - `htmlparser2` is now a dual CommonJS & ESM module [https://github.com/fb55/htmlparser2/pull/1165](https://togithub.com/fb55/htmlparser2/pull/1165) #### Other changes - Updated for `entities`' updated decoding tree structure [https://github.com/fb55/htmlparser2/pull/1146](https://togithub.com/fb55/htmlparser2/pull/1146) - Highlight special close-implies-open logic by [@&#8203;vassudanagunta](https://togithub.com/vassudanagunta) in [https://github.com/fb55/htmlparser2/pull/1047](https://togithub.com/fb55/htmlparser2/pull/1047) - Update Events/07 test to clarify interpretation of tag end slashes by [@&#8203;vassudanagunta](https://togithub.com/vassudanagunta) in [https://github.com/fb55/htmlparser2/pull/1046](https://togithub.com/fb55/htmlparser2/pull/1046) - Suggest `parse5` for HTML compliance by [@&#8203;vassudanagunta](https://togithub.com/vassudanagunta) in [https://github.com/fb55/htmlparser2/pull/1147](https://togithub.com/fb55/htmlparser2/pull/1147) #### New Contributors - [@&#8203;vassudanagunta](https://togithub.com/vassudanagunta) made their first contribution in [https://github.com/fb55/htmlparser2/pull/1047](https://togithub.com/fb55/htmlparser2/pull/1047) **Full Changelog**: https://github.com/fb55/htmlparser2/compare/v7.2.0...v8.0.0 ### [`v7.2.0`](https://togithub.com/fb55/htmlparser2/releases/tag/v7.2.0) [Compare Source](https://togithub.com/fb55/htmlparser2/compare/v7.1.2...v7.2.0) #### What's Changed **Fixes:** - Decode entities after < by [@&#8203;fb55](https://togithub.com/fb55) in [https://github.com/fb55/htmlparser2/pull/1008](https://togithub.com/fb55/htmlparser2/pull/1008) - Stringify non-string chunks by [@&#8203;fb55](https://togithub.com/fb55) in [https://github.com/fb55/htmlparser2/pull/1010](https://togithub.com/fb55/htmlparser2/pull/1010) **Docs** - docs(readme): make `parseDocument()` example clearer by [@&#8203;cameronsteele](https://togithub.com/cameronsteele) in [https://github.com/fb55/htmlparser2/pull/998](https://togithub.com/fb55/htmlparser2/pull/998) **Refactors:** - Introduce sequences & fast forwarding by [@&#8203;fb55](https://togithub.com/fb55) in [https://github.com/fb55/htmlparser2/pull/1007](https://togithub.com/fb55/htmlparser2/pull/1007) - Emit text before entities once entity is confirmed by [@&#8203;fb55](https://togithub.com/fb55) in [https://github.com/fb55/htmlparser2/pull/1009](https://togithub.com/fb55/htmlparser2/pull/1009) The refactors lead to a combined ~5% speed-up. #### New Contributors - [@&#8203;cameronsteele](https://togithub.com/cameronsteele) made their first contribution in [https://github.com/fb55/htmlparser2/pull/998](https://togithub.com/fb55/htmlparser2/pull/998) **Full Changelog**: https://github.com/fb55/htmlparser2/compare/v7.1.2...v7.2.0 ### [`v7.1.2`](https://togithub.com/fb55/htmlparser2/releases/tag/v7.1.2) [Compare Source](https://togithub.com/fb55/htmlparser2/compare/v7.1.1...v7.1.2) - Fix indices of self-closing tags in XML ([#&#8203;949](https://togithub.com/fb55/htmlparser2/issues/949), reported in [#&#8203;941](https://togithub.com/fb55/htmlparser2/issues/941)) [`3287ef2`](https://togithub.com/fb55/htmlparser2/commit/3287ef2) - Bump domhandler from 4.2.0 to 4.2.2 ([#&#8203;935](https://togithub.com/fb55/htmlparser2/issues/935)) [`45b2cfe`](https://togithub.com/fb55/htmlparser2/commit/45b2cfe) ### [`v7.1.1`](https://togithub.com/fb55/htmlparser2/releases/tag/v7.1.1) [Compare Source](https://togithub.com/fb55/htmlparser2/compare/v7.1.0...v7.1.1) - Fixed a bug where implied close tags would be misreported ([#&#8203;933](https://togithub.com/fb55/htmlparser2/issues/933)) [`903fb43`](https://togithub.com/fb55/htmlparser2/commit/903fb43) - Fixed `endIndex` of text events being off by 1 ([#&#8203;932](https://togithub.com/fb55/htmlparser2/issues/932)) [`78ef1b7`](https://togithub.com/fb55/htmlparser2/commit/78ef1b7) ### [`v7.1.0`](https://togithub.com/fb55/htmlparser2/releases/tag/v7.1.0) [Compare Source](https://togithub.com/fb55/htmlparser2/compare/v7.0.0...v7.1.0) **Features:** - Added an `isImplied` flag to the `onopentag`/`onclosetag` events ([#&#8203;930](https://togithub.com/fb55/htmlparser2/issues/930)) [`f917004`](https://togithub.com/fb55/htmlparser2/commit/f917004) - This allows consumers to set start/end indices more correctly. Inspired by [https://github.com/posthtml/posthtml-parser/pull/80](https://togithub.com/posthtml/posthtml-parser/pull/80). - It is now possible to get indices for attributes ([#&#8203;929](https://togithub.com/fb55/htmlparser2/issues/929)) [`28c162b`](https://togithub.com/fb55/htmlparser2/commit/28c162b) **Fixes:** - `htmlparser2@&#8203;7.0.0` changed how indices were computed. Unfortunately, a lot of edge-cases weren't handled correctly. This version fixes this. - refactor: Fix how indices are computed, add attrib indices ([#&#8203;929](https://togithub.com/fb55/htmlparser2/issues/929)) [`28c162b`](https://togithub.com/fb55/htmlparser2/commit/28c162b) - fix(parser): Fix indices for end, CDATA, add indices to tests ([#&#8203;928](https://togithub.com/fb55/htmlparser2/issues/928)) [`4e25252`](https://togithub.com/fb55/htmlparser2/commit/4e25252) - fix(parser): Don't override position for implied opening tags ([#&#8203;917](https://togithub.com/fb55/htmlparser2/issues/917)) [`fac221d`](https://togithub.com/fb55/htmlparser2/commit/fac221d) - fix(parser): Index of closing tag was misaligned ([#&#8203;913](https://togithub.com/fb55/htmlparser2/issues/913)) [`04c411c`](https://togithub.com/fb55/htmlparser2/commit/04c411c) - `.pause` would lead to data being wrongfully discarded ([#&#8203;927](https://togithub.com/fb55/htmlparser2/issues/927)) [`78af88d`](https://togithub.com/fb55/htmlparser2/commit/78af88d) - The tokenizer would still emit some data after an error ([#&#8203;923](https://togithub.com/fb55/htmlparser2/issues/923)) [`08b2040`](https://togithub.com/fb55/htmlparser2/commit/08b2040) - Issue in foreign content: The tag name `foreignObject` will always be lowercased in HTML [`e852205`](https://togithub.com/fb55/htmlparser2/commit/e852205) **Refactors:** - refactor(feeds): Move `getFeed` to `domutils` ([#&#8203;931](https://togithub.com/fb55/htmlparser2/issues/931)) [`f10dc03`](https://togithub.com/fb55/htmlparser2/commit/f10dc03) - refactor(tokenizer): Use explicit empty buffer if we have reached the end [`9c30fe6`](https://togithub.com/fb55/htmlparser2/commit/9c30fe6) - chore(tests): Add test for error without a listener [`0eb0067`](https://togithub.com/fb55/htmlparser2/commit/0eb0067) - chore(tests): Use proxies to collect events ([#&#8203;920](https://togithub.com/fb55/htmlparser2/issues/920)) [`a2b0bf3`](https://togithub.com/fb55/htmlparser2/commit/a2b0bf3) - chore(tests): Move `stream` tests into `WritableStream.spec` ([#&#8203;916](https://togithub.com/fb55/htmlparser2/issues/916)) [`da67eba`](https://togithub.com/fb55/htmlparser2/commit/da67eba) - refactor(tokenizer): Remove unused branches, improve test coverage ([#&#8203;914](https://togithub.com/fb55/htmlparser2/issues/914)) [`a2eae51`](https://togithub.com/fb55/htmlparser2/commit/a2eae51) - docs(readme): Update benchmark results [`d45fc82`](https://togithub.com/fb55/htmlparser2/commit/d45fc82) ### [`v7.0.0`](https://togithub.com/fb55/htmlparser2/releases/tag/v7.0.0) [Compare Source](https://togithub.com/fb55/htmlparser2/compare/v6.1.0...v7.0.0) `htmlparser2@&#8203;7.0.0` changes a lot of internals, resulting in an 20% overall performance improvement in [AndreasMadsen's htmlparser-benchmark](https://togithub.com/AndreasMadsen/htmlparser-benchmark). **Breaking changes:** - Fixed how start & end index positions are calculated ([#&#8203;910](https://togithub.com/fb55/htmlparser2/issues/910)) [`5ab080e`](https://togithub.com/fb55/htmlparser2/commit/5ab080e) - Some indices, especially end indices, will now have changed. Most importantly, end indices will now always be greater or equal than start indices (whoops!). **Features:** - Added an `isVoidElement` method to the parser ([#&#8203;785](https://togithub.com/fb55/htmlparser2/issues/785)) [`00ce57a`](https://togithub.com/fb55/htmlparser2/commit/00ce57a) **Refactors:** - Use a trie to decode HTML & XML entities in the tokenizer ([#&#8203;863](https://togithub.com/fb55/htmlparser2/issues/863)) [`9a47a55`](https://togithub.com/fb55/htmlparser2/commit/9a47a55) - Leads to large speed-ups when dealing with entities. - Iterate over char codes in the tokenizer ([#&#8203;894](https://togithub.com/fb55/htmlparser2/issues/894)) [`f5aed75`](https://togithub.com/fb55/htmlparser2/commit/f5aed75) - Improved tokenizer performance by ~40%. - Use `Map` for `openImpliesClose` in the parser ([#&#8203;911](https://togithub.com/fb55/htmlparser2/issues/911)) [`39a8109`](https://togithub.com/fb55/htmlparser2/commit/39a8109) - Moved logic of `FeedHandler` to a function ([#&#8203;912](https://togithub.com/fb55/htmlparser2/issues/912)) [`3a672ff`](https://togithub.com/fb55/htmlparser2/commit/3a672ff) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/mcataford/rss-reader). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMzUuMSIsInVwZGF0ZWRJblZlciI6IjMyLjEzNS4xIn0=-->
github-actions[bot] commented 2022-08-01 19:06:16 +00:00 (Migrated from github.com)

👀 Branch deployed at Website Draft URL: https://62e8242216e11e14230f8132--sleepy-shaw-d8efec.netlify.app

:eyes: Branch deployed at Website Draft URL: https://62e8242216e11e14230f8132--sleepy-shaw-d8efec.netlify.app
github-actions[bot] commented 2022-08-01 19:16:06 +00:00 (Migrated from github.com)

👀 Branch deployed at Website Draft URL: https://62e8266fc907591537d7b497--sleepy-shaw-d8efec.netlify.app

:eyes: Branch deployed at Website Draft URL: https://62e8266fc907591537d7b497--sleepy-shaw-d8efec.netlify.app
mcataford (Migrated from github.com) approved these changes 2022-08-01 19:16:42 +00:00
Sign in to join this conversation.
No description provided.