Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Jun 12, 2021

Bumps html-to-text from 5.1.1 to 8.0.0.

Changelog

Sourced from html-to-text's changelog.

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 sourse 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.

  • new function compile(options) returns a function of a single argument (html string);
  • htmlToText(html, options) is now an alias to convert(html, options) function and works as before.

Deprecated options

  • baseElement;
  • returnDomByDefault;
  • tables;
  • tags.

Refer to README for migration instructions.

No previously deprecated stuff is removed in this version. Significant cleanup is planned for version 9 instead.

Version 7.1.1

... (truncated)

Commits
  • 79f6731 Version 8.0.0
  • 827a3f2 selectors, baseElements, compile/convert
  • 411dc3e Bump dev deps, regenerate package-lock
  • 5ac1e87 Regenerate package-lock
  • c309d69 Split coverage report into separate action
  • 6d32a1c .gitattributes to keep line endings consistent
  • 8c85673 Replace Travis with GitHub Actions
  • edbf0d5 Bump dependencies
  • 90395a3 Create FUNDING.yml
  • 08d9ff7 Version bumped to 7.0.0, package-lock.json regenerated
  • 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.0.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.0.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 Jun 12, 2021

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

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 12, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Nov 13, 2021

Superseded by #87.

@dependabot dependabot bot closed this Nov 13, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/html-to-text-8.0.0 branch November 13, 2021 02:11
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.

1 participant