Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 31, 2024

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Change Age Confidence
cheerio (source) 1.0.0-rc.10 -> 1.1.2 age confidence

Release Notes

cheeriojs/cheerio (cheerio)

v1.1.2

Compare Source

What's Changed

Full Changelog: cheeriojs/cheerio@v1.1.1...v1.1.2

v1.1.1

Compare Source


v1.1.0

Compare Source

What's Changed

Doc Improvements

New Contributors

Full Changelog: cheeriojs/cheerio@v1.0.0...v1.1.0

v1.0.0

Compare Source

Cheerio 1.0 is here! 🎉

Announcement Blog Post

Breaking Changes

  • The minimum NodeJS version is now 18.17 or higher #​3959

  • Import paths were simplified. For example, use cheerio/slim instead of
    cheerio/lib/slim. #​3970

  • The deprecated default Cheerio instance and static methods were removed. #​3974

    Before, it was possible to write code like this:

    import cheerio, { html } from 'cheerio';
    
    html(cheerio('<test></test>')); // ~ '<test></test>' -- NO LONGER WORKS

    Make sure to always load documents first:

    import * as cheerio from 'cheerio';
    
    cheerio.load('<test></test>').html();
  • Node types previously re-exported by Cheerio must now be imported directly
    from (domhandler)(https://github.com/fb55/domhandler). #​3969

  • htmlparser2 options now reside exclusively under the xml key (#​2916):

    const $ = cheerio.load('<html>', {
      xml: {
        withStartIndices: true,
      },
    });

New Features

Fixes

Other

Full Changelog: cheeriojs/cheerio@v1.0.0-rc.12...v1.0.0

v1.0.0-rc.12

Compare Source

Bugfix release. Fixed issues:

New Contributors

Full Changelog: cheeriojs/cheerio@v1.0.0-rc.11...v1.0.0-rc.12

v1.0.0-rc.11

Compare Source

[email protected] is hopefully the last RC before the 1.0.0 release of Cheerio. There are two APIs that will be added for the next major release: An exract method (#​2523) and NodeJS specific loader methods (#​2051). These are still in flux and I'd appreciate feedback on the proposals.

A big thank you to everyone that contributed to this release! This includes code contributors, as well as the amazing financial support on GitHub Sponsors!

Under the hood, a lot of work for this release went into updating parse5, cheerio's default HTML parser. Have a look at parse5's release notes to see what has changed there.

Breaking

  • Cheerio is now a dual CommonJS and ESM module. That means that deep imports will now fail in newer versions of Node. #​2508
  • script and style contents are added again in .text() #​2509
    • To keep the old behavior, switch .text() to .prop('innerText')
  • The TypeScript types inherited from upstream dependencies have changed. #​2503
    • Node types are now using tagged unions, which will make consumption a bit easier.

Features

  • Relevant options are now forwarded to cheerio-select #​2511
  • For the .prop() method:
    • Add textContent and innerText props #​2214
    • Users can now specify a baseURI option, which will lead to href and src props to be resolved as URLs. #​2510
  • Added a slim export, which will always use htmlparser2 #​1960

Fixes

  • Have text turn passed values to strings #​2047
  • Include undefined in the return type of get by @​glen-84 in #​2392
  • Recognise comments as HTML #​2504
  • Add missing undefined return value #​2505
  • Export missing static methods #​2506
  • Have style parsing add malformed fields to previous field #​2521

Refactor

Development Experience

Docs

New Contributors

Full Changelog: cheeriojs/cheerio@v1.0.0-rc.10...v1.0.0-rc.11


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, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added dependencies ready-to-be-merged Allow Mergify to merge this PR labels Dec 31, 2024
@renovate renovate bot changed the title chore(*): Update dependency cheerio to v1.0.0 chore(*): Update dependency cheerio to v1.1.0 Jun 8, 2025
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from 617c6a3 to daf0609 Compare June 8, 2025 20:30
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from daf0609 to ce362fa Compare July 21, 2025 01:55
@renovate renovate bot changed the title chore(*): Update dependency cheerio to v1.1.0 chore(*): Update dependency cheerio to v1.1.1 Jul 21, 2025
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from ce362fa to 50c1d61 Compare July 21, 2025 10:15
@renovate renovate bot changed the title chore(*): Update dependency cheerio to v1.1.1 chore(*): Update dependency cheerio to v1.1.2 Jul 21, 2025
@Liu233w
Copy link
Owner

Liu233w commented Aug 7, 2025

@Mergifyio rebase

Copy link
Contributor

mergify bot commented Aug 7, 2025

rebase

✅ Branch has been successfully rebased

@Liu233w Liu233w force-pushed the renovate/cheerio-1.x branch from 50c1d61 to 49219e5 Compare August 7, 2025 01:59
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch 3 times, most recently from ab07e52 to 87cebfe Compare August 10, 2025 14:16
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from 87cebfe to d093179 Compare August 13, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies ready-to-be-merged Allow Mergify to merge this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant