Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 9, 2024

This PR contains the following updates:

Package Change Age Confidence
cheerio (source) ^0.22.0^1.0.0 age confidence

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


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: Never, 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 force-pushed the renovate/cheerio-1.x branch from 0b30775 to 5790c99 Compare October 14, 2024 03:37
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from 5790c99 to a7cc54f Compare November 4, 2024 03:05
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from a7cc54f to bb15780 Compare January 16, 2025 02:45
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch 4 times, most recently from 8874e57 to f1dfe7d Compare April 29, 2025 05:31
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from f1dfe7d to b39ba19 Compare May 5, 2025 05:07
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from b39ba19 to 5af39ba Compare May 12, 2025 13:28
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from 5af39ba to 7f4c43a Compare June 10, 2025 10:16
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch 5 times, most recently from 6984e6e to df48ae8 Compare July 8, 2025 12:04
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch 4 times, most recently from c98cc42 to 7cb9b8b Compare July 9, 2025 18:32
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from 7cb9b8b to d23cc48 Compare July 21, 2025 15:31
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch 3 times, most recently from f8c5c71 to 8a423de Compare August 13, 2025 12:31
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from 8a423de to e57c251 Compare August 19, 2025 12:09
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from e57c251 to 4d5924a Compare August 31, 2025 12:11
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from 4d5924a to 6cb2dca Compare September 17, 2025 07:07
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from 6cb2dca to 4892cbc Compare September 25, 2025 17:46
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch 2 times, most recently from 0182c9b to df8ed43 Compare October 23, 2025 00:04
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from df8ed43 to aaf0794 Compare November 10, 2025 23:02
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from aaf0794 to ec5b051 Compare November 18, 2025 23:15
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from ec5b051 to e1a6638 Compare December 3, 2025 16:03
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from e1a6638 to abfbd9d Compare December 31, 2025 18:29
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from abfbd9d to 744d3ac Compare January 8, 2026 21:24
@coderabbitai
Copy link

coderabbitai bot commented Jan 8, 2026

Walkthrough

The pull request updates the cheerio dependency in packages/url-utils/package.json from version ^0.22.0 to ^1.0.0. This is a single-line version specification change with no modifications to package scripts, other dependencies, or any functional code.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Update dependency cheerio to v1' accurately and concisely describes the primary change in the pull request, matching the package.json update from cheerio ^0.22.0 to ^1.0.0.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The PR description clearly relates to the changeset by documenting the cheerio dependency upgrade from ^0.22.0 to ^1.0.0.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate bot force-pushed the renovate/cheerio-1.x branch 2 times, most recently from 74827ef to 3638ea3 Compare January 24, 2026 19:55
@renovate renovate bot force-pushed the renovate/cheerio-1.x branch from 3638ea3 to 3b38098 Compare January 26, 2026 19:05
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@packages/url-utils/package.json`:
- Line 41: The package.json currently includes a dependency conflict: Cheerio v1
provides built-in TypeScript types so the legacy `@types/cheerio` (package name
"@types/cheerio") in devDependencies is redundant and may be incompatible;
remove "@types/cheerio" from devDependencies (or replace it with a v1-compatible
types package if you have a specific need) and then run a TypeScript build to
confirm usages like cheerio.load(...) (and any import/typing references in the
codebase) compile cleanly without the `@types` package.

},
"dependencies": {
"cheerio": "^0.22.0",
"cheerio": "^1.0.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check Node engine constraints at both root and package levels
echo "=== Root package.json engines ==="
jq '.engines' package.json 2>/dev/null || grep -A2 '"engines"' package.json || echo "No engines field found"

echo -e "\n=== packages/url-utils/package.json engines ==="
jq '.engines' packages/url-utils/package.json 2>/dev/null || grep -A2 '"engines"' packages/url-utils/package.json || echo "No engines field found"

# Check current package.json structure
echo -e "\n=== packages/url-utils/package.json (full) ==="
cat packages/url-utils/package.json

Repository: TryGhost/SDK

Length of output: 1495


🏁 Script executed:

#!/bin/bash
# Find all JavaScript/TypeScript files in url-utils
echo "=== Files in packages/url-utils ==="
find packages/url-utils -type f \( -name "*.js" -o -name "*.ts" -o -name "*.tsx" -o -name "*.jsx" \) | head -20

# Check if cheerio is imported anywhere
echo -e "\n=== Cheerio imports/usages ==="
rg -n 'cheerio' packages/url-utils --type=js --type=ts -C2 || echo "No cheerio imports found"

# Check for `@types/cheerio` references
echo -e "\n=== `@types/cheerio` references ==="
rg -n '@types/cheerio' packages/url-utils || echo "No `@types/cheerio` references found"

# Check dependencies for `@types/cheerio` in package.json
echo -e "\n=== `@types/cheerio` in dependencies ==="
grep -i '@types/cheerio' packages/url-utils/package.json || echo "@types/cheerio not in dependencies"

Repository: TryGhost/SDK

Length of output: 27141


Update @types/cheerio since Cheerio v1 ships with built-in types.

The @types/cheerio package (v0.22.31) is for Cheerio v0.x and is redundant for Cheerio v1, which includes its own TypeScript definitions. Either remove @types/cheerio from devDependencies or update it to a v1-compatible version. The current codebase usage pattern (cheerio.load() API) is already compatible with Cheerio v1.

🤖 Prompt for AI Agents
In `@packages/url-utils/package.json` at line 41, The package.json currently
includes a dependency conflict: Cheerio v1 provides built-in TypeScript types so
the legacy `@types/cheerio` (package name "@types/cheerio") in devDependencies is
redundant and may be incompatible; remove "@types/cheerio" from devDependencies
(or replace it with a v1-compatible types package if you have a specific need)
and then run a TypeScript build to confirm usages like cheerio.load(...) (and
any import/typing references in the codebase) compile cleanly without the `@types`
package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants