---
title: "@jimp/plugin-mask 2.0.0 Breaking Changes on npm | Since.dev"
description: "What each @jimp/plugin-mask release removed, renamed or changed: 21 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@jimp/plugin-mask
last_updated: 2026-12-04
---

# @jimp/plugin-mask breaking changes

@jimp/plugin-mask 2.0.0 (November 24, 2026) is its newest release with breaking changes, 21 of them. The first: @jimp/plugin-mask 2.0.0 requires Node.js 22 or later. Every breaking API change we have recorded in @jimp/plugin-mask on npm: 21 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.3.0`, released December 4, 2026. [Source repository](https://github.com/jimp-dev/jimp)

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

## @jimp/plugin-mask 2.0.0 breaking changes

@jimp/plugin-mask 2.0.0, released November 24, 2026: 21 breaking changes.

- **Removed**  

Jimp now requires Node.js 22 or later; upgrade the Node.js runtime before using this version. [github.com](https://github.com/jimp-dev/jimp/commit/79600e9104cc157c9d0ed35a139f0e3c7ae27982)
- **Behavior changed**  

Colour masks now use GIMP's luminance, respect the mask's alpha and round results, so output pixels can differ from earlier versions. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed** `color`  

color with the greyscale action now uses luminance, not HSL lightness, so output changes. [github.com](https://github.com/jimp-dev/jimp/commit/4f6db79f3e4827d2175cd10de49b1f9a6b865e97)
- **Behavior changed** `compareHashes`  

Distances returned by compareHashes change for existing hashes. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `composite`  

Negative opacitySource or opacityDest values now become 0 instead of 1. [github.com](https://github.com/jimp-dev/jimp/commit/0cb5a2ce680cf8a7ae62cf8306ba98510168dc25)
- **Behavior changed** `contrast`  

Contrast output changes; contrast(-1) now gives 128. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `cover`  

Invalid align values now throw, and an axis with no flag is centered. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `crop`  

Out-of-bounds crop rectangles are clamped, and crop throws when nothing remains. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Behavior changed** `cssColorToHex`  

Bad color strings throw an Invalid color error instead of becoming opaque black; fix any invalid color inputs. [github.com](https://github.com/jimp-dev/jimp/commit/6270626dfc31235ecd73ff22933c47344b1215aa)
- **Behavior changed** `greyscale`  

greyscale now rounds instead of truncating, so some grey levels differ from before. [github.com](https://github.com/jimp-dev/jimp/commit/4f6db79f3e4827d2175cd10de49b1f9a6b865e97)
- **Behavior changed** `Jimp.read`  

Strings that are not http, https, data or blob URLs are read as files; use a URL form for remote images. [github.com](https://github.com/jimp-dev/jimp/commit/0cb5a2ce680cf8a7ae62cf8306ba98510168dc25)
- **Behavior changed** `posterize`  

Output changes, and the level count is rounded and clamped to 2-256. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `print`  

Every line break now starts a line, so blank lines print and count toward height; line counts change. [github.com](https://github.com/jimp-dev/jimp/commit/8f1f4ca4ca6df27f097bf5794728dd1ec9983583)
- **Behavior changed** `quantize`  

Quantize now throws a clear error for too few colors; pass at least 1, or 2 for rgbquant. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `resize`  

Colors next to transparent pixels are no longer darkened, so resize output changes. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `rotate`  

Rotated output now uses the chosen ResizeStrategy interpolation instead of nearest pixel, so results differ. [github.com](https://github.com/jimp-dev/jimp/commit/deb4c2b7ab0aee2d773324df1430d1c9a2fc8134)
- **Behavior changed** `scanIterator`  

Regions are clamped to the image; scanIterator width and height now default to the rest of the image. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Behavior changed** `setPixelColor`  

Writes outside the image no longer paint the edge pixel; they do nothing. NaN coordinates now throw. [github.com](https://github.com/jimp-dev/jimp/commit/fad50e2935d09f9994dc0eb68da0aaac30f29b8c)
- **Behavior changed** `threshold`  

threshold greyscales by default, so its output differs from earlier versions. [github.com](https://github.com/jimp-dev/jimp/commit/4f6db79f3e4827d2175cd10de49b1f9a6b865e97)
- **Behavior changed** `write`  

GIF, TIFF and BMP write and getBuffer options are now none, and write with a string path rejects unsupported options. [github.com](https://github.com/jimp-dev/jimp/commit/0cb5a2ce680cf8a7ae62cf8306ba98510168dc25)
- **Configuration changed**  

The package now requires Node.js 22 or later, so upgrade Node.js before updating to this version. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)

## Related packages

- [@jimp/plugin-blit](https://since.dev/packages/npm/@jimp/plugin-blit.md)
- [@jimp/plugin-circle](https://since.dev/packages/npm/@jimp/plugin-circle.md)
- [@jimp/plugin-threshold](https://since.dev/packages/npm/@jimp/plugin-threshold.md)
- [@jimp/plugin-print](https://since.dev/packages/npm/@jimp/plugin-print.md)
- [@jimp/plugin-blur](https://since.dev/packages/npm/@jimp/plugin-blur.md)
- [@jimp/types](https://since.dev/packages/npm/@jimp/types.md)

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