blog
blog copied to clipboard
chore(deps): bump cheerio from 1.0.0-rc.12 to 1.0.0
Bumps cheerio from 1.0.0-rc.12 to 1.0.0.
Release notes
Sourced from cheerio's releases.
v1.0.0
Cheerio 1.0 is here! 🎉
Announcement Blog Post
Breaking Changes
The minimum NodeJS version is now 18.17 or higher cheeriojs/cheerio#3959
Import paths were simplified. For example, use
cheerio/slim
instead ofcheerio/lib/slim
. cheeriojs/cheerio#3970The deprecated default Cheerio instance and static methods were removed. cheeriojs/cheerio#3974
Before, it was possible to write code like this:
import cheerio, { html } from 'cheerio';
html(cheerio('<test></test>')); // ~ '<test></test>' -- NO LONGER WORKS
Make sure to always load documents first:
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). cheeriojs/cheerio#3969htmlparser2 options now reside exclusively under the
xml
key (cheeriojs/cheerio#2916):const $ = cheerio.load('<html>', { xml: { withStartIndices: true, }, });
New Features
- Add functions to load buffers, streams & URLs in NodeJS by
@fb55
in cheeriojs/cheerio#2857- Add extract method by
@fb55
in cheeriojs/cheerio#2750Fixes
- Allow imports of
cheerio/utils
by@blixt
in cheeriojs/cheerio#2601- Allow empty string in
data
, and simplify by@fb55
in cheeriojs/cheerio#2818
... (truncated)
Commits
50b5d5c
1.0.0eea2fec
fix(eslint): Disable misfiring lint rulee60f659
chore(package): Update published files4fe3e7b
chore(docs): Add 1.0 Announcement Post (#3984)944553b
build(deps): bump docusaurus-plugin-typedoc in /website (#3983)e34967e
build(deps-dev): bump tsx from 4.16.5 to 4.17.0 (#3982)eb7122b
chore(traversing): Add test case forlowerCaseTags
(#3981)b824ba8
fix(website): Fix ReactLiveScope examples (#3980)08ebee5
build(deps-dev): bump eslint-plugin-jsdoc from 49.0.0 to 50.0.0 (#3979)bf5f44c
build(deps-dev): bump eslint-plugin-jsdoc from 48.11.0 to 49.0.0 (#3976)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)