generated from X-oss-byte/next.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit 6be1504
authored
Update dependency cheerio to v1.0.0 (#2411)
[](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
| [cheerio](https://cheerio.js.org/) ([source](https://togithub.com/cheeriojs/cheerio)) | [`0.22.0` -> `1.0.0`](https://renovatebot.com/diffs/npm/cheerio/0.22.0/1.0.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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 [@​fb55](https://togithub.com/fb55) in [https://github.com/cheeriojs/cheerio/pull/2857](https://togithub.com/cheeriojs/cheerio/pull/2857)
- Add extract method by [@​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 [@​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 [@​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 [@​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 [@​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**: 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 these updates 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/Nextjs).1 parent 83c399b commit 6be1504Copy full SHA for 6be1504
File tree
2 files changed
+2
-2
lines changedFilter options
- packages/next-codemod
2 files changed
+2
-2
lines changed+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
118 |
| - | |
| 118 | + | |
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
|
packages/next-codemod/package.json
Copy file name to clipboardExpand all lines: packages/next-codemod/package.json+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
|
0 commit comments