chore(deps): update dependency cheerio to v1.0.0-rc.12
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
cheerio (source) | resolutions | patch | 1.0.0-rc.10 -> 1.0.0-rc.12 |
Release Notes
cheeriojs/cheerio
v1.0.0-rc.12
Bugfix release. Fixed issues:
- Align
prop
undefined handling with jQuery by @fb55 in https://github.com/cheeriojs/cheerio/pull/2557 - Allow deep imports of
cheerio/lib/utils
by @blixt in https://github.com/cheeriojs/cheerio/pull/2601
New Contributors
- @blixt made their first contribution in https://github.com/cheeriojs/cheerio/pull/2601
Full Changelog: https://github.com/cheeriojs/cheerio/compare/v1.0.0-rc.11...v1.0.0-rc.12
v1.0.0-rc.11
cheerio@1.0.0-rc.11
is hopefully the last RC before the 1.0.0 release of Cheerio. There are two APIs that will be added for the next major release: An exract
method (https://github.com/cheeriojs/cheerio/issues/2523) and NodeJS specific loader methods (https://github.com/cheeriojs/cheerio/issues/2051). These are still in flux and I'd appreciate feedback on the proposals.
A big thank you to everyone that contributed to this release! This includes code contributors, as well as the amazing financial support on GitHub Sponsors!
Under the hood, a lot of work for this release went into updating parse5, cheerio's default HTML parser. Have a look at parse5's release notes to see what has changed there.
Breaking
- Cheerio is now a dual CommonJS and ESM module. That means that deep imports will now fail in newer versions of Node. https://github.com/cheeriojs/cheerio/pull/2508
-
script
andstyle
contents are added again in.text()
https://github.com/cheeriojs/cheerio/pull/2509- To keep the old behavior, switch
.text()
to.prop('innerText')
- To keep the old behavior, switch
- The TypeScript types inherited from upstream dependencies have changed. https://github.com/cheeriojs/cheerio/pull/2503
- Node types are now using tagged unions, which will make consumption a bit easier.
Features
- Relevant options are now forwarded to
cheerio-select
https://github.com/cheeriojs/cheerio/pull/2511- Custom pseudo classes can now be specified using the
pseudos
option.
- Custom pseudo classes can now be specified using the
- For the
.prop()
method:- Add
textContent
andinnerText
props https://github.com/cheeriojs/cheerio/pull/2214 - Users can now specify a
baseURI
option, which will lead tohref
andsrc
props to be resolved as URLs. https://github.com/cheeriojs/cheerio/pull/2510
- Add
- Added a
slim
export, which will always use htmlparser2 https://github.com/cheeriojs/cheerio/pull/1960
Fixes
- Have
text
turn passed values to strings https://github.com/cheeriojs/cheerio/pull/2047 - Include
undefined
in the return type ofget
by @glen-84 in https://github.com/cheeriojs/cheerio/pull/2392 - Recognise comments as HTML https://github.com/cheeriojs/cheerio/pull/2504
- Add missing
undefined
return value https://github.com/cheeriojs/cheerio/pull/2505 - Export missing static methods https://github.com/cheeriojs/cheerio/pull/2506
- Have style parsing add malformed fields to previous field https://github.com/cheeriojs/cheerio/pull/2521
Refactor
- Use
domutils
module directly https://github.com/cheeriojs/cheerio/pull/1928 - Hand-roll
isHTML
https://github.com/cheeriojs/cheerio/pull/1935 - Move initialization logic to
load
https://github.com/cheeriojs/cheerio/pull/1951 - Only return elements in
closest
https://github.com/cheeriojs/cheerio/pull/2057 - Remove unnecessary code, be more explicit https://github.com/cheeriojs/cheerio/pull/2279
- Use stricter TS, ESLint configs https://github.com/cheeriojs/cheerio/pull/2507
- Update exported values https://github.com/cheeriojs/cheerio/pull/2512
Development Experience
- Migrate husky to v6 by @DavideViolante in https://github.com/cheeriojs/cheerio/pull/1934
- Update CI by @XhmikosR in https://github.com/cheeriojs/cheerio/pull/2149
- Set permissions for GitHub actions by @neilnaveen in https://github.com/cheeriojs/cheerio/pull/2453
Docs
- Update README "is not a web browser" section by @mxschmitt in https://github.com/cheeriojs/cheerio/pull/2127
New Contributors
- @DavideViolante made their first contribution in https://github.com/cheeriojs/cheerio/pull/1934
- @mxschmitt made their first contribution in https://github.com/cheeriojs/cheerio/pull/2127
- @glen-84 made their first contribution in https://github.com/cheeriojs/cheerio/pull/2392
- @neilnaveen made their first contribution in https://github.com/cheeriojs/cheerio/pull/2453
Full Changelog: https://github.com/cheeriojs/cheerio/compare/v1.0.0-rc.10...v1.0.0-rc.11
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.