Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump html-to-text from 5.1.1 to 8.2.0 #139

Closed

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Apr 9, 2022

Bumps html-to-text from 5.1.1 to 8.2.0.

Changelog

Sourced from html-to-text's changelog.

Version 8.2.0

Fix for the issue #249 and possibly other obscure issues when some selector options are ignored. options.selectors array was not fully processed before.

Version 8.1.1

Bump minimist dependency, regenerate package-lock.json.

Version 8.1.0

  • Fix for too many newlines in certain cases when preserveNewlines option is used. Addresses #232;
  • Link and image formatters now have a linkBrackets option - it accepts an array of two strings (default: ['[', ']']) or false to remove the brackets. Addresses #236;
  • noLinkBrackets formatters option is now deprecated.

All commits: 8.0.0...8.1.0

Version 8.0.0

All commits: 7.1.1...8.0.0

Version 8 roadmap issue: #228

Selectors

The main focus of this version. Addresses the most demanded user requests (#159, #179, partially #143).

It is now possible to specify formatting options or assign custom formatters not only by tag names but by almost any selectors.

See the README Selectors section for details.

Note: The new selectors option is an array, in contrast to the tags option introduced in version 6 (and now deprecated). Selectors have to have a well defined order and object properties is not a right tool for that.

Two new packages were created to enable this feature - parseley and selderee.

Base elements

The same selectors implementation is used now to narrow down the conversion to specific HTML DOM fragments. Addresses #96. (Previous implementation had more limited selectors format.)

BREAKING CHANGE: All outermost elements matching provided selectors will be present in the output (previously it was only the first match for each selector). Addresses #215.

limits.maxBaseElements can be used when you only need a fixed number of base elements and would like to avoid checking the rest of the source HTML document.

Base elements can be arranged in output text in the order of matched selectors (default, to keep it closer to the old implementation) or in the order of appearance in source HTML document.

BREAKING CHANGE: previous implementation was treating id selectors in the same way as class selectors (could match <foo id="a b"> with foo#a selector). New implementation is closer to the spec and doesn't expect multiple ids on an element. You can achieve the old behavior with foo[id~=a] selector in case you rely on it for some poorly formatted documents (note that it has different specificity though).

Batch processing

Since options preprocessing is getting more involved with selectors compilation, it seemed reasonable to break the single htmlToText() function into compilation and convertation steps. It might provide some performance benefits in client code.

... (truncated)

Commits
  • c5b768e Version 8.2.0, fix selectors processing issue
  • 74b414c Version 8.1.1
  • 7813d5f Revert "Make options table more readable [skip ci]"
  • bc09f01 Make options table more readable [skip ci]
  • 9c152b6 Version 8.1.0
  • ba86977 Fix extraneous newlines (#232)
  • 1c72e2d custom link brackets for links and images (#236)
  • 38aa8e0 Bump dev deps, replace nyc with c8, regen lockfile
  • 25c2d7d typos
  • ea876d6 Limit set function to the scope where it is used
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by killy.mxi, a new releaser for html-to-text since your current version.


Dependabot compatibility score

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 [html-to-text](https://github.com/html-to-text/node-html-to-text) from 5.1.1 to 8.2.0.
- [Release notes](https://github.com/html-to-text/node-html-to-text/releases)
- [Changelog](https://github.com/html-to-text/node-html-to-text/blob/master/CHANGELOG.md)
- [Commits](html-to-text/node-html-to-text@5.1.1...8.2.0)

---
updated-dependencies:
- dependency-name: html-to-text
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Apr 9, 2022

The following labels could not be found: 3. to review.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 9, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Aug 6, 2022

Superseded by #184.

@dependabot dependabot bot closed this Aug 6, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/html-to-text-8.2.0 branch August 6, 2022 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants