From 03f917da8be2a00a24c5185d69d5456a119ad2be Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 11 Aug 2024 01:45:15 +0000 Subject: [PATCH] Update dependency cheerio to v1.0.0 (#1227) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![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://github.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/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes
cheeriojs/cheerio (cheerio) ### [`v1.0.0`](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0) [Compare Source](https://github.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://github.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://github.com/cheeriojs/cheerio/pull/3970) - The deprecated default Cheerio instance and static methods were removed. [https://github.com/cheeriojs/cheerio/pull/3974](https://github.com/cheeriojs/cheerio/pull/3974) Before, it was possible to write code like this: ```ts import cheerio, { html } from 'cheerio'; html(cheerio('')); // ~ '' -- NO LONGER WORKS ``` Make sure to always load documents first: ```ts import * as cheerio from 'cheerio'; cheerio.load('').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://github.com/cheeriojs/cheerio/pull/3969) - htmlparser2 options now reside exclusively under the `xml` key ([https://github.com/cheeriojs/cheerio/pull/2916](https://github.com/cheeriojs/cheerio/pull/2916)): ```ts const $ = cheerio.load('', { xml: { withStartIndices: true, }, }); ``` #### New Features - Add functions to load buffers, streams & URLs in NodeJS by [@​fb55](https://github.com/fb55) in [https://github.com/cheeriojs/cheerio/pull/2857](https://github.com/cheeriojs/cheerio/pull/2857) - Add extract method by [@​fb55](https://github.com/fb55) in [https://github.com/cheeriojs/cheerio/pull/2750](https://github.com/cheeriojs/cheerio/pull/2750) #### Fixes - Allow imports of `cheerio/utils` by [@​blixt](https://github.com/blixt) in [https://github.com/cheeriojs/cheerio/pull/2601](https://github.com/cheeriojs/cheerio/pull/2601) - Allow empty string in `data`, and simplify by [@​fb55](https://github.com/fb55) in [https://github.com/cheeriojs/cheerio/pull/2818](https://github.com/cheeriojs/cheerio/pull/2818) - Make `closest` be able to start from text nodes by [@​Qualtagh](https://github.com/Qualtagh) in [https://github.com/cheeriojs/cheerio/pull/2811](https://github.com/cheeriojs/cheerio/pull/2811) - Fix potential github action smells by [@​ceddy4395](https://github.com/ceddy4395) in [https://github.com/cheeriojs/cheerio/pull/3826](https://github.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://github.com/cheeriojs/cheerio/pull/2950) **Full Changelog**: https://github.com/cheeriojs/cheerio/compare/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**: 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](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/X-oss-byte/Canary-nextjs). --- packages/next-codemod/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next-codemod/package.json b/packages/next-codemod/package.json index 239a7f2169..0283b1d4c2 100644 --- a/packages/next-codemod/package.json +++ b/packages/next-codemod/package.json @@ -4,7 +4,7 @@ "license": "MIT", "dependencies": { "chalk": "5.3.0", - "cheerio": "1.0.0-rc.12", + "cheerio": "1.0.0", "execa": "9.3.0", "globby": "14.0.2", "inquirer": "10.1.8",