---
title: "cheerio 1.2.0 Breaking Changes on npm | Since.dev"
description: "What each cheerio release removed, renamed or changed: 28 breaking changes in 10 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/cheerio
last_updated: 2026-12-04
---

# 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

Latest version `1.2.0`, released January 23, 2026. [Source repository](https://github.com/cheeriojs/cheerio)

Its 1.0.0 release requires Node.js 18.17 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.22.0](#v-0-22-0) to [1.2.0](#v-1-2-0): 26 breaking changes in 8 versions.
- From [0.20.0](#v-0-20-0) to [1.2.0](#v-1-2-0): 27 breaking changes in 9 versions.

## cheerio 1.2.0 breaking changes

cheerio 1.2.0, released January 23, 2026: 2 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](https://github.com/cheeriojs/cheerio/releases/tag/v1.2.0)
- **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](https://github.com/cheeriojs/cheerio/releases/tag/v1.2.0)

## cheerio 1.1.0 breaking changes

cheerio 1.1.0, released June 8, 2025: 4 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](https://www.npmjs.com/package/cheerio/v/1.1.0)
- **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](https://www.npmjs.com/package/cheerio/v/1.1.0)
- **Signature changed** `HTMLParser2Options`  

Was interface HTMLParser2Options extends DomHandlerOptions, HTMLParser2ParserOptions; now interface HTMLParser2Options extends DomHandlerOptions, DomSerializerOptions, HTMLParser2ParserOptions. [npmjs.com](https://www.npmjs.com/package/cheerio/v/1.1.0)
- **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](https://www.npmjs.com/package/cheerio/v/1.1.0)

## cheerio 1.0.0 breaking changes

cheerio 1.0.0, released August 9, 2024: 6 breaking changes.

- **Removed**  

The deprecated default Cheerio instance and its static methods were removed. Load a document with cheerio.load first. [github.com](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0)
- **Removed** `"cheerio"`  

"cheerio" was removed in cheerio 1.0.0 [npmjs.com](https://www.npmjs.com/package/cheerio/v/1.0.0)
- **Removed** `Document`  

Document was removed in cheerio 1.0.0 [npmjs.com](https://www.npmjs.com/package/cheerio/v/1.0.0)
- **Renamed** `cheerio.lib.slim`  

Import paths were simplified, so code importing cheerio/lib/slim must import cheerio/slim instead. [github.com](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0)
- **Behavior changed**  

Cheerio 1.0 requires Node.js 18.17 or higher, so older Node.js versions are no longer supported. [github.com](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0)
- **Configuration changed**  

htmlparser2 options now must be passed under the xml key of the load options instead of at the top level. [github.com](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0)

## cheerio 1.0.0-rc.11 breaking changes

cheerio 1.0.0-rc.11, released August 9, 2024: 3 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](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0-rc.11)
- **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](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0-rc.11)
- **Behavior changed** `text`  

The text method once more includes script and style contents. To keep the old behavior, use prop with innerText. [github.com](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0-rc.11)

## cheerio 1.0.0-rc.9 breaking changes

cheerio 1.0.0-rc.9, released August 9, 2024: 2 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](https://www.npmjs.com/package/cheerio/v/1.0.0)
- **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](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0-rc.9)

## cheerio 1.0.0-rc.6 breaking changes

cheerio 1.0.0-rc.6, released August 9, 2024: 4 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](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0-rc.6)
- **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](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0-rc.6)
- **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](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0-rc.6)
- **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](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0-rc.6)

## Older versions

4 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### cheerio 1.0.0-rc.4 breaking changes

cheerio 1.0.0-rc.4, released August 9, 2024: 2 breaking changes.

- **Behavior changed**  

Nodes no longer expose a root property; the root node is reached through the parent property instead. [github.com](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0-rc.4)
- **Default changed**  

Serialized output keeps non-ASCII characters unencoded by default. Make sure the output is sent with the correct content encoding. [github.com](https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0-rc.4)

### cheerio 1.0.0-rc.2 breaking changes

cheerio 1.0.0-rc.2, released August 9, 2024: 3 breaking changes.

- **Renamed** `useHtmlParser2`  

The useHtmlParser2 option was renamed in this release. Update code that passes the old option name. [github.com](https://github.com/cheeriojs/cheerio/releases/tag/1.0.0-rc.2)
- **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](https://github.com/cheeriojs/cheerio/releases/tag/1.0.0-rc.2)

And 1 more in this version.

### cheerio 0.22.0 breaking changes

cheerio 0.22.0, released August 23, 2016: 1 breaking change.

- **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](https://github.com/cheeriojs/cheerio/releases/tag/0.22.0)

### cheerio 0.20.0 breaking changes

cheerio 0.20.0, released February 1, 2016: 1 breaking change.

- **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](https://github.com/cheeriojs/cheerio/releases/tag/0.20.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
