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

# cropperjs breaking changes

cropperjs 2.3.0 (October 7, 2026) is its newest release with breaking changes, 5 of them. The first: Signature changed CropperSelection.$initSelection. Every breaking API change we have recorded in cropperjs on npm: 38 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.3.1`, released October 16, 2026. [Source repository](https://github.com/fengyuanchen/cropperjs)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.0](#v-2-0-0) to [2.3.0](#v-2-3-0): 14 breaking changes in 2 versions.

## cropperjs 2.3.0 breaking changes

cropperjs 2.3.0, released October 7, 2026: 5 breaking changes.

- **Signature changed** `CropperSelection.$initSelection`  

Was protected $initSelection(center?: boolean, resize?: boolean): void; now protected $initSelection(center?: boolean, resize?: boolean): Promise\<void>. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.3.0)
- **Signature changed** `CropperViewer.$canvas`  

Was protected $canvas: CropperCanvas_2_2; now protected $canvas: CropperCanvas_5. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.3.0)
- **Signature changed** `CropperViewer.$image`  

Was protected $image: CropperImage_2; now protected $image: CropperImage_3. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.3.0)
- **Signature changed** `CropperViewer.$render`  

Was protected $render(selection?: Selection_2, matrix?: number\[\]): void; now protected $render(selection?: Selection_2_2, matrix?: number\[\]): void. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.3.0)
- **Signature changed** `CropperViewer.$sourceImage`  

Was protected $sourceImage: CropperImage_2; now protected $sourceImage: CropperImage_3. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.3.0)

## cropperjs 2.2.0 breaking changes

cropperjs 2.2.0, released August 23, 2026: 9 breaking changes.

- **Signature changed** `CropperCanvas.attributeChangedCallback`  

Was protected attributeChangedCallback(name: string, oldValue: string, newValue: string): void; now protected attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.2.0)
- **Signature changed** `CropperCrosshair.attributeChangedCallback`  

Was protected attributeChangedCallback(name: string, oldValue: string, newValue: string): void; now protected attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.2.0)
- **Signature changed** `CropperElement.attributeChangedCallback`  

Was protected attributeChangedCallback(name: string, oldValue: string, newValue: string): void; now protected attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.2.0)
- **Signature changed** `CropperGrid.attributeChangedCallback`  

Was protected attributeChangedCallback(name: string, oldValue: string, newValue: string): void; now protected attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.2.0)
- **Signature changed** `CropperHandle.attributeChangedCallback`  

Was protected attributeChangedCallback(name: string, oldValue: string, newValue: string): void; now protected attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.2.0)
- **Signature changed** `CropperImage.attributeChangedCallback`  

Was protected attributeChangedCallback(name: string, oldValue: string, newValue: string): void; now protected attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.2.0)
- **Signature changed** `CropperSelection.attributeChangedCallback`  

Was protected attributeChangedCallback(name: string, oldValue: string, newValue: string): void; now protected attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.2.0)
- **Signature changed** `CropperShade.attributeChangedCallback`  

Was protected attributeChangedCallback(name: string, oldValue: string, newValue: string): void; now protected attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.2.0)
- **Signature changed** `CropperViewer.attributeChangedCallback`  

Was protected attributeChangedCallback(name: string, oldValue: string, newValue: string): void; now protected attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void. [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.2.0)

## cropperjs 2.0.0 breaking changes

cropperjs 2.0.0, released March 1, 2025: 14 breaking changes.

- **Removed** `'cropperjs'`  

'cropperjs' was removed in cropperjs 2.0.0 [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.0.0)
- **Removed** `autoCrop`  

autoCrop option removed in cropperjs 2.0.0 [fengyuanchen.github.io](https://fengyuanchen.github.io/cropperjs/v2/migration.html)
- **Removed** `crop`  

crop method removed in cropperjs 2.0.0 [fengyuanchen.github.io](https://fengyuanchen.github.io/cropperjs/v2/migration.html)
- **Removed** `Cropper`  

Cropper was removed in cropperjs 2.0.0 [npmjs.com](https://www.npmjs.com/package/cropperjs/v/2.0.0)
- **Removed** `cropstart`  

cropstart event removed in cropperjs 2.0.0 [fengyuanchen.github.io](https://fengyuanchen.github.io/cropperjs/v2/migration.html)
- **Removed** `dragMode`  

dragMode option removed in cropperjs 2.0.0 [fengyuanchen.github.io](https://fengyuanchen.github.io/cropperjs/v2/migration.html)
- **Removed** `getCroppedCanvas`  

getCroppedCanvas method removed in cropperjs 2.0.0 [fengyuanchen.github.io](https://fengyuanchen.github.io/cropperjs/v2/migration.html)
- **Removed** `guides`  

guides option removed in cropperjs 2.0.0 [fengyuanchen.github.io](https://fengyuanchen.github.io/cropperjs/v2/migration.html)
- **Removed** `modal`  

modal option removed in cropperjs 2.0.0 [fengyuanchen.github.io](https://fengyuanchen.github.io/cropperjs/v2/migration.html)
- **Removed** `preview`  

preview option removed in cropperjs 2.0.0 [fengyuanchen.github.io](https://fengyuanchen.github.io/cropperjs/v2/migration.html)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## cropperjs 2.0.0-rc.1 breaking changes

cropperjs 2.0.0-rc.1, released March 1, 2025: 1 breaking change.

- **Default changed** `zoomable`  

Zoomable is now disabled by default. [github.com](https://github.com/fengyuanchen/cropperjs/blob/v2.0.0/CHANGELOG.md)

## cropperjs 2.0.0-rc.0 breaking changes

cropperjs 2.0.0-rc.0, released March 1, 2025: 1 breaking change.

- **Renamed** `cropper-selection.linked`  

Rename the linked property of CropperSelection to dynamic. [github.com](https://github.com/fengyuanchen/cropperjs/releases/tag/v2.0.0-rc.0)

## cropperjs 2.0.0-rc breaking changes

cropperjs 2.0.0-rc, released March 1, 2025: 4 breaking changes.

- **Default changed** `cropper-image.rotatable`  

The default of rotatable on CropperImage changed from true to false. [github.com](https://github.com/fengyuanchen/cropperjs/releases/tag/v2.0.0-rc)
- **Default changed** `cropper-image.scalable`  

The default of scalable on CropperImage changed from true to false. [github.com](https://github.com/fengyuanchen/cropperjs/releases/tag/v2.0.0-rc)
- **Default changed** `cropper-image.skewable`  

The default of skewable on CropperImage changed from true to false. [github.com](https://github.com/fengyuanchen/cropperjs/releases/tag/v2.0.0-rc)
- **Default changed** `cropper-image.translatable`  

The default of translatable on CropperImage changed from true to false. [github.com](https://github.com/fengyuanchen/cropperjs/releases/tag/v2.0.0-rc)

## Older versions

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

### cropperjs 2.0.0-beta breaking changes

cropperjs 2.0.0-beta, released March 1, 2025: 1 breaking change.

- **Behavior changed**  

Cropper.js is rewritten with custom elements and is completely different from v2.0.0-alpha; follow the migration guide. [github.com](https://github.com/fengyuanchen/cropperjs/releases/tag/v2.0.0-beta)

### cropperjs 2.0.0-alpha breaking changes

cropperjs 2.0.0-alpha, released March 1, 2025: 3 breaking changes.

- **Renamed** `event.detail.oldRatio`  

The zoom event detail property oldRatio is renamed to oldScale. [github.com](https://github.com/fengyuanchen/cropperjs/releases/tag/v2.0.0-alpha)
- **Renamed** `event.detail.ratio`  

The zoom event detail property ratio is renamed to scale. [github.com](https://github.com/fengyuanchen/cropperjs/releases/tag/v2.0.0-alpha)

And 1 more in this version.

## 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.
