npm / cheerio
cheerio
What changed in cheerio 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
4 breaking2 new APIs and options4 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcheerio 112 changes
Breaking changes 4
Import paths were simplified; use cheerio/slim instead of cheerio/lib/slim.
The deprecated default instance and static methods were removed; load documents first with cheerio.load.
The minimum supported Node.js version is now 18.17 or higher.
htmlparser2 options now belong exclusively under the xml key.
New APIs and options 2
Functions were added to load buffers, streams and URLs in Node.js.
An extract method was added.
Behavior and default changes 4
The isHtml utility now runtime-validates input types.
.val() now supports button values.
closest can now start from text nodes.
The data API now allows an empty string.
Fixes and other changes 2
.find() now properly scopes :scope selectors.
Imports from cheerio/utils are now allowed.