Skip to content

Commit b4081b0

Browse files
fix(deps): update dependency cheerio to v1.0.0 (#11218)
[![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 [https://github.com/cheeriojs/cheerio/pull/3959](https://togithub.com/cheeriojs/cheerio/pull/3959) - Import paths were simplified. For example, use `cheerio/slim` instead of `cheerio/lib/slim`. [https://github.com/cheeriojs/cheerio/pull/3970](https://togithub.com/cheeriojs/cheerio/pull/3970) - The deprecated default Cheerio instance and static methods were removed. [https://github.com/cheeriojs/cheerio/pull/3974](https://togithub.com/cheeriojs/cheerio/pull/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). [https://github.com/cheeriojs/cheerio/pull/3969](https://togithub.com/cheeriojs/cheerio/pull/3969) - htmlparser2 options now reside exclusively under the `xml` key ([https://github.com/cheeriojs/cheerio/pull/2916](https://togithub.com/cheeriojs/cheerio/pull/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 [https://github.com/cheeriojs/cheerio/pull/2857](https://togithub.com/cheeriojs/cheerio/pull/2857) - Add extract method by [@&#8203;fb55](https://togithub.com/fb55) in [https://github.com/cheeriojs/cheerio/pull/2750](https://togithub.com/cheeriojs/cheerio/pull/2750) #### Fixes - Allow imports of `cheerio/utils` by [@&#8203;blixt](https://togithub.com/blixt) in [https://github.com/cheeriojs/cheerio/pull/2601](https://togithub.com/cheeriojs/cheerio/pull/2601) - Allow empty string in `data`, and simplify by [@&#8203;fb55](https://togithub.com/fb55) in [https://github.com/cheeriojs/cheerio/pull/2818](https://togithub.com/cheeriojs/cheerio/pull/2818) - Make `closest` be able to start from text nodes by [@&#8203;Qualtagh](https://togithub.com/Qualtagh) in [https://github.com/cheeriojs/cheerio/pull/2811](https://togithub.com/cheeriojs/cheerio/pull/2811) - Fix potential github action smells by [@&#8203;ceddy4395](https://togithub.com/ceddy4395) in [https://github.com/cheeriojs/cheerio/pull/3826](https://togithub.com/cheeriojs/cheerio/pull/3826) #### Other - Cheerio has [a new website](https://cheerio.js.org), featuring updated API docs and guides! [https://github.com/cheeriojs/cheerio/pull/2950](https://togithub.com/cheeriojs/cheerio/pull/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>
1 parent f784347 commit b4081b0

File tree

3 files changed

+51
-6
lines changed

3 files changed

+51
-6
lines changed

packages/codemods/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@svgr/plugin-jsx": "8.1.0",
3535
"@vscode/ripgrep": "1.15.9",
3636
"@whatwg-node/fetch": "0.9.19",
37-
"cheerio": "1.0.0-rc.12",
37+
"cheerio": "1.0.0",
3838
"core-js": "3.38.0",
3939
"deepmerge": "4.3.1",
4040
"execa": "5.1.1",

packages/prerender/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@redwoodjs/web": "workspace:*",
3333
"@whatwg-node/fetch": "0.9.19",
3434
"babel-plugin-ignore-html-and-css-imports": "0.1.0",
35-
"cheerio": "1.0.0-rc.12",
35+
"cheerio": "1.0.0",
3636
"core-js": "3.38.0",
3737
"graphql": "16.9.0",
3838
"mime-types": "2.1.35"

yarn.lock

+49-4
Original file line numberDiff line numberDiff line change
@@ -7977,7 +7977,7 @@ __metadata:
79777977
"@types/yargs": "npm:17.0.33"
79787978
"@vscode/ripgrep": "npm:1.15.9"
79797979
"@whatwg-node/fetch": "npm:0.9.19"
7980-
cheerio: "npm:1.0.0-rc.12"
7980+
cheerio: "npm:1.0.0"
79817981
core-js: "npm:3.38.0"
79827982
deepmerge: "npm:4.3.1"
79837983
execa: "npm:5.1.1"
@@ -8390,7 +8390,7 @@ __metadata:
83908390
"@whatwg-node/fetch": "npm:0.9.19"
83918391
babel-plugin-ignore-html-and-css-imports: "npm:0.1.0"
83928392
babel-plugin-tester: "npm:11.0.4"
8393-
cheerio: "npm:1.0.0-rc.12"
8393+
cheerio: "npm:1.0.0"
83948394
core-js: "npm:3.38.0"
83958395
graphql: "npm:16.9.0"
83968396
mime-types: "npm:2.1.35"
@@ -13687,7 +13687,26 @@ __metadata:
1368713687
languageName: node
1368813688
linkType: hard
1368913689

13690-
"cheerio@npm:1.0.0-rc.12, cheerio@npm:^1.0.0-rc.12":
13690+
"cheerio@npm:1.0.0, cheerio@npm:^1.0.0-rc.12":
13691+
version: 1.0.0
13692+
resolution: "cheerio@npm:1.0.0"
13693+
dependencies:
13694+
cheerio-select: "npm:^2.1.0"
13695+
dom-serializer: "npm:^2.0.0"
13696+
domhandler: "npm:^5.0.3"
13697+
domutils: "npm:^3.1.0"
13698+
encoding-sniffer: "npm:^0.2.0"
13699+
htmlparser2: "npm:^9.1.0"
13700+
parse5: "npm:^7.1.2"
13701+
parse5-htmlparser2-tree-adapter: "npm:^7.0.0"
13702+
parse5-parser-stream: "npm:^7.1.2"
13703+
undici: "npm:^6.19.5"
13704+
whatwg-mimetype: "npm:^4.0.0"
13705+
checksum: 10c0/d0e16925d9c36c879edfaef1c0244c866375a4c7b8d6ccd7ae0ad42da7d26263ea1a3c17b9a1aa5965918deeff2d40ac2e7223824f8e6eca972df3b81316a09f
13706+
languageName: node
13707+
linkType: hard
13708+
13709+
"cheerio@npm:1.0.0-rc.12":
1369113710
version: 1.0.0-rc.12
1369213711
resolution: "cheerio@npm:1.0.0-rc.12"
1369313712
dependencies:
@@ -15786,6 +15805,16 @@ __metadata:
1578615805
languageName: node
1578715806
linkType: hard
1578815807

15808+
"encoding-sniffer@npm:^0.2.0":
15809+
version: 0.2.0
15810+
resolution: "encoding-sniffer@npm:0.2.0"
15811+
dependencies:
15812+
iconv-lite: "npm:^0.6.3"
15813+
whatwg-encoding: "npm:^3.1.1"
15814+
checksum: 10c0/b312e0d67f339bec44e021e5210ee8ee90d7b8f9975eb2c79a36fd467eb07709e88dcf62ee20f62ee0d74a13874307d99557852a2de9b448f1e3fb991fc68257
15815+
languageName: node
15816+
linkType: hard
15817+
1578915818
"encoding@npm:^0.1.13":
1579015819
version: 0.1.13
1579115820
resolution: "encoding@npm:0.1.13"
@@ -18985,7 +19014,7 @@ __metadata:
1898519014
languageName: node
1898619015
linkType: hard
1898719016

18988-
"iconv-lite@npm:0.6.3, iconv-lite@npm:^0.6.2":
19017+
"iconv-lite@npm:0.6.3, iconv-lite@npm:^0.6.2, iconv-lite@npm:^0.6.3":
1898919018
version: 0.6.3
1899019019
resolution: "iconv-lite@npm:0.6.3"
1899119020
dependencies:
@@ -24364,6 +24393,15 @@ __metadata:
2436424393
languageName: node
2436524394
linkType: hard
2436624395

24396+
"parse5-parser-stream@npm:^7.1.2":
24397+
version: 7.1.2
24398+
resolution: "parse5-parser-stream@npm:7.1.2"
24399+
dependencies:
24400+
parse5: "npm:^7.0.0"
24401+
checksum: 10c0/e236c61000d38ecad369e725a48506b051cebad8abb00e6d4e8bff7aa85c183820fcb45db1559cc90955bdbbdbd665ea94c41259594e74566fff411478dc7fcb
24402+
languageName: node
24403+
linkType: hard
24404+
2436724405
"parse5@npm:^5.1.1":
2436824406
version: 5.1.1
2436924407
resolution: "parse5@npm:5.1.1"
@@ -28934,6 +28972,13 @@ __metadata:
2893428972
languageName: node
2893528973
linkType: hard
2893628974

28975+
"undici@npm:^6.19.5":
28976+
version: 6.19.7
28977+
resolution: "undici@npm:6.19.7"
28978+
checksum: 10c0/801d1e66d5bccdd3fcc9ecf1c95b83a593e4867b89e21ed725e35bd4d572b3d3ce1d7feab2a4f2046f65923de70bfafb69ac148c633d1ab30a948d6fec24475a
28979+
languageName: node
28980+
linkType: hard
28981+
2893728982
"unicode-canonical-property-names-ecmascript@npm:^2.0.0":
2893828983
version: 2.0.0
2893928984
resolution: "unicode-canonical-property-names-ecmascript@npm:2.0.0"

0 commit comments

Comments
 (0)