hexo-theme-inside
hexo-theme-inside copied to clipboard
chore(deps): update dependency cheerio to v1.0.0-rc.11
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
cheerio (source) | 1.0.0-rc.10 -> 1.0.0-rc.11 |
Release Notes
cheeriojs/cheerio
v1.0.0-rc.11
[email protected]
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
📅 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, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.