Skip to content

chore(deps): update dependency cheerio to v1.2.0#32972

Merged
renovate[bot] merged 1 commit into26_1from
renovate/cheerio-1.x
Mar 19, 2026
Merged

chore(deps): update dependency cheerio to v1.2.0#32972
renovate[bot] merged 1 commit into26_1from
renovate/cheerio-1.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 19, 2026

This PR contains the following updates:

Package Change Age Confidence
cheerio (source) 1.0.0-rc.101.2.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

cheeriojs/cheerio (cheerio)

v1.2.0

Compare Source

What's Changed

New Contributors

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

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

cheerio@1.0.0-rc.11 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: Enabled.

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 the dependencies Pull requests that update a dependency file label Mar 19, 2026
@renovate renovate bot merged commit ecd6ba0 into 26_1 Mar 19, 2026
107 of 108 checks passed
@renovate renovate bot deleted the renovate/cheerio-1.x branch March 19, 2026 14:39
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