Skip to content

Commit

Permalink
fix(deps): update dependency cheerio to v1.0.0 (#11218)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [cheerio](https://cheerio.js.org/)
([source](https://togithub.com/cheeriojs/cheerio)) | [`1.0.0-rc.12` ->
`1.0.0`](https://renovatebot.com/diffs/npm/cheerio/1.0.0-rc.12/1.0.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/cheerio/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cheerio/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cheerio/1.0.0-rc.12/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cheerio/1.0.0-rc.12/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>cheeriojs/cheerio (cheerio)</summary>

###
[`v1.0.0`](https://togithub.com/cheeriojs/cheerio/releases/tag/v1.0.0)

[Compare
Source](https://togithub.com/cheeriojs/cheerio/compare/v1.0.0-rc.12...v1.0.0)

Cheerio 1.0 is here! 🎉

### [Announcement Blog Post](https://cheerio.js.org/blog/cheerio-1.0)

#### Breaking Changes

- The minimum NodeJS version is now 18.17 or higher
[cheeriojs/cheerio#3959

- Import paths were simplified. For example, use `cheerio/slim` instead
of
`cheerio/lib/slim`.
[cheeriojs/cheerio#3970

- The deprecated default Cheerio instance and static methods were
removed.
[cheeriojs/cheerio#3974

    Before, it was possible to write code like this:

    ```ts
    import cheerio, { html } from 'cheerio';

html(cheerio('<test></test>')); // ~ '<test></test>' -- NO LONGER WORKS
    ```

    Make sure to always load documents first:

    ```ts
    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).
[cheeriojs/cheerio#3969

- htmlparser2 options now reside exclusively under the `xml` key
([cheeriojs/cheerio#2916):

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

#### New Features

- Add functions to load buffers, streams & URLs in NodeJS by
[@&#8203;fb55](https://togithub.com/fb55) in
[cheeriojs/cheerio#2857
- Add extract method by [@&#8203;fb55](https://togithub.com/fb55) in
[cheeriojs/cheerio#2750

#### Fixes

- Allow imports of `cheerio/utils` by
[@&#8203;blixt](https://togithub.com/blixt) in
[cheeriojs/cheerio#2601
- Allow empty string in `data`, and simplify by
[@&#8203;fb55](https://togithub.com/fb55) in
[cheeriojs/cheerio#2818
- Make `closest` be able to start from text nodes by
[@&#8203;Qualtagh](https://togithub.com/Qualtagh) in
[cheeriojs/cheerio#2811
- Fix potential github action smells by
[@&#8203;ceddy4395](https://togithub.com/ceddy4395) in
[cheeriojs/cheerio#3826

#### Other

- Cheerio has [a new website](https://cheerio.js.org), featuring updated
API docs and guides!
[cheeriojs/cheerio#2950

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

</details>

---

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

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yMC4xIiwidXBkYXRlZEluVmVyIjoiMzguMjAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] committed Aug 12, 2024
1 parent f784347 commit b4081b0
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@svgr/plugin-jsx": "8.1.0",
"@vscode/ripgrep": "1.15.9",
"@whatwg-node/fetch": "0.9.19",
"cheerio": "1.0.0-rc.12",
"cheerio": "1.0.0",
"core-js": "3.38.0",
"deepmerge": "4.3.1",
"execa": "5.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/prerender/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@redwoodjs/web": "workspace:*",
"@whatwg-node/fetch": "0.9.19",
"babel-plugin-ignore-html-and-css-imports": "0.1.0",
"cheerio": "1.0.0-rc.12",
"cheerio": "1.0.0",
"core-js": "3.38.0",
"graphql": "16.9.0",
"mime-types": "2.1.35"
Expand Down
53 changes: 49 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7977,7 +7977,7 @@ __metadata:
"@types/yargs": "npm:17.0.33"
"@vscode/ripgrep": "npm:1.15.9"
"@whatwg-node/fetch": "npm:0.9.19"
cheerio: "npm:1.0.0-rc.12"
cheerio: "npm:1.0.0"
core-js: "npm:3.38.0"
deepmerge: "npm:4.3.1"
execa: "npm:5.1.1"
Expand Down Expand Up @@ -8390,7 +8390,7 @@ __metadata:
"@whatwg-node/fetch": "npm:0.9.19"
babel-plugin-ignore-html-and-css-imports: "npm:0.1.0"
babel-plugin-tester: "npm:11.0.4"
cheerio: "npm:1.0.0-rc.12"
cheerio: "npm:1.0.0"
core-js: "npm:3.38.0"
graphql: "npm:16.9.0"
mime-types: "npm:2.1.35"
Expand Down Expand Up @@ -13687,7 +13687,26 @@ __metadata:
languageName: node
linkType: hard

"cheerio@npm:1.0.0-rc.12, cheerio@npm:^1.0.0-rc.12":
"cheerio@npm:1.0.0, cheerio@npm:^1.0.0-rc.12":
version: 1.0.0
resolution: "cheerio@npm:1.0.0"
dependencies:
cheerio-select: "npm:^2.1.0"
dom-serializer: "npm:^2.0.0"
domhandler: "npm:^5.0.3"
domutils: "npm:^3.1.0"
encoding-sniffer: "npm:^0.2.0"
htmlparser2: "npm:^9.1.0"
parse5: "npm:^7.1.2"
parse5-htmlparser2-tree-adapter: "npm:^7.0.0"
parse5-parser-stream: "npm:^7.1.2"
undici: "npm:^6.19.5"
whatwg-mimetype: "npm:^4.0.0"
checksum: 10c0/d0e16925d9c36c879edfaef1c0244c866375a4c7b8d6ccd7ae0ad42da7d26263ea1a3c17b9a1aa5965918deeff2d40ac2e7223824f8e6eca972df3b81316a09f
languageName: node
linkType: hard

"cheerio@npm:1.0.0-rc.12":
version: 1.0.0-rc.12
resolution: "cheerio@npm:1.0.0-rc.12"
dependencies:
Expand Down Expand Up @@ -15786,6 +15805,16 @@ __metadata:
languageName: node
linkType: hard

"encoding-sniffer@npm:^0.2.0":
version: 0.2.0
resolution: "encoding-sniffer@npm:0.2.0"
dependencies:
iconv-lite: "npm:^0.6.3"
whatwg-encoding: "npm:^3.1.1"
checksum: 10c0/b312e0d67f339bec44e021e5210ee8ee90d7b8f9975eb2c79a36fd467eb07709e88dcf62ee20f62ee0d74a13874307d99557852a2de9b448f1e3fb991fc68257
languageName: node
linkType: hard

"encoding@npm:^0.1.13":
version: 0.1.13
resolution: "encoding@npm:0.1.13"
Expand Down Expand Up @@ -18985,7 +19014,7 @@ __metadata:
languageName: node
linkType: hard

"iconv-lite@npm:0.6.3, iconv-lite@npm:^0.6.2":
"iconv-lite@npm:0.6.3, iconv-lite@npm:^0.6.2, iconv-lite@npm:^0.6.3":
version: 0.6.3
resolution: "iconv-lite@npm:0.6.3"
dependencies:
Expand Down Expand Up @@ -24364,6 +24393,15 @@ __metadata:
languageName: node
linkType: hard

"parse5-parser-stream@npm:^7.1.2":
version: 7.1.2
resolution: "parse5-parser-stream@npm:7.1.2"
dependencies:
parse5: "npm:^7.0.0"
checksum: 10c0/e236c61000d38ecad369e725a48506b051cebad8abb00e6d4e8bff7aa85c183820fcb45db1559cc90955bdbbdbd665ea94c41259594e74566fff411478dc7fcb
languageName: node
linkType: hard

"parse5@npm:^5.1.1":
version: 5.1.1
resolution: "parse5@npm:5.1.1"
Expand Down Expand Up @@ -28934,6 +28972,13 @@ __metadata:
languageName: node
linkType: hard

"undici@npm:^6.19.5":
version: 6.19.7
resolution: "undici@npm:6.19.7"
checksum: 10c0/801d1e66d5bccdd3fcc9ecf1c95b83a593e4867b89e21ed725e35bd4d572b3d3ce1d7feab2a4f2046f65923de70bfafb69ac148c633d1ab30a948d6fec24475a
languageName: node
linkType: hard

"unicode-canonical-property-names-ecmascript@npm:^2.0.0":
version: 2.0.0
resolution: "unicode-canonical-property-names-ecmascript@npm:2.0.0"
Expand Down

0 comments on commit b4081b0

Please sign in to comment.