cheerio breaking changes
cheerio 1.2.0 (January 23, 2026) is its newest release with breaking changes, 2 of them. The first: Behavior changed find. Every breaking API change we have recorded in cheerio on npm: 28 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.2.0, released January 23, 2026. Source repository
Its 1.0.0 release requires Node.js 18.17 or later. Node.js end of life dates.
- From 0.22.0 to 1.2.0: 26 breaking changes in 8 versions.
- From 0.20.0 to 1.2.0: 27 breaking changes in 9 versions.
cheerio 1.2.0 breaking changes
- Behavior changed
find
Selectors using :scope inside .find() now resolve relative to the scope element, so results for existing code using :scope may differ. github.com - Behavior changed
isHtml
The isHtml utility now checks its input types at runtime, so calls with inputs of the wrong type may now throw where they previously did not. github.com
cheerio 1.1.0 breaking changes
- Signature changed
Cheerio.data
Was function data<T extends AnyNode>(this: Cheerio<T>, name: string): unknown | undefined; now function data<T extends AnyNode>(this: Cheerio<T>, name: string): unknown. npmjs.com - Signature changed
CheerioAPI.parseHTML
Was function parseHTML(this: CheerioAPI, data: string, context?: unknown | boolean, keepScripts?: boolean): AnyNode[]; now function parseHTML(this: CheerioAPI, data: string, context?: unknown, keepScripts?: boolean): AnyNode[]. npmjs.com - Signature changed
HTMLParser2Options
Was interface HTMLParser2Options extends DomHandlerOptions, HTMLParser2ParserOptions; now interface HTMLParser2Options extends DomHandlerOptions, DomSerializerOptions, HTMLParser2ParserOptions. npmjs.com - Signature changed
utils:isCheerio
Was function isCheerio<T>(maybeCheerio: any): maybeCheerio is Cheerio<T>; now function isCheerio<T>(maybeCheerio: unknown): maybeCheerio is Cheerio<T>. npmjs.com
cheerio 1.0.0 breaking changes
- Removed
The deprecated default Cheerio instance and its static methods were removed. Load a document with cheerio.load first. github.com - Removed
"cheerio"
"cheerio" was removed in cheerio 1.0.0 npmjs.com - Removed
Document
Document was removed in cheerio 1.0.0 npmjs.com - Renamed
cheerio.lib.slim
Import paths were simplified, so code importing cheerio/lib/slim must import cheerio/slim instead. github.com - Behavior changed
Cheerio 1.0 requires Node.js 18.17 or higher, so older Node.js versions are no longer supported. github.com - Configuration changed
htmlparser2 options now must be passed under the xml key of the load options instead of at the top level. github.com
cheerio 1.0.0-rc.11 breaking changes
- Removed
Cheerio is now dual CommonJS and ESM, so deep imports into its internal files will fail on newer Node versions. github.com - Behavior changed
Node types inherited from upstream dependencies now use tagged unions, which can break code that relied on the old type shapes. github.com - Behavior changed
text
The text method once more includes script and style contents. To keep the old behavior, use prop with innerText. github.com
cheerio 1.0.0-rc.9 breaking changes
- Removed
cheerio
Code that called the function exported by cheerio directly must require the default export instead. Using load is the recommended form. npmjs.com - Behavior changed
Typed Cheerio instances of mapped values only allow compatible methods, so some previously compiling calls such as attr on mapped strings now fail to compile. github.com
cheerio 1.0.0-rc.6 breaking changes
- Behavior changed
In XML mode every element now has type tag. Code checking other type values for elements must be updated. github.com - Behavior changed
parentsUntil
The order of results returned by parentsUntil now matches jQuery. Code that depends on the old order must be updated. github.com - Behavior changed
prevAll
The order of results returned by prevAll now matches jQuery. Code that depends on the old order must be updated. github.com - Behavior changed
prevUntil
The order of results returned by prevUntil now matches jQuery. Code that depends on the old order must be updated. github.com
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
cheerio 1.0.0-rc.4 breaking changes
- Behavior changed
Nodes no longer expose a root property; the root node is reached through the parent property instead. github.com - Default changed
Serialized output keeps non-ASCII characters unencoded by default. Make sure the output is sent with the correct content encoding. github.com
cheerio 1.0.0-rc.2 breaking changes
- Renamed
useHtmlParser2
The useHtmlParser2 option was renamed in this release. Update code that passes the old option name. github.com - Behavior changed
Cheerio now uses the parse5 HTML parser by default instead of htmlparser2, which can change parsed output and speed. XML documents still use htmlparser2. github.com
And 1 more in this version.
cheerio 0.22.0 breaking changes
- Behavior changed
prop
Calling .prop on an invalid element or tag now returns undefined instead of previous behavior. Check code that relies on the old return value. github.com
cheerio 0.20.0 breaking changes
- Behavior changed
attr
Calling attr({foo: null}) now removes attribute foo, the same as attr('foo', null). Code that relied on the old behavior must be updated. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.