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

# @jimp/plugin-shadow breaking changes

@jimp/plugin-shadow 2.0.0 (November 24, 2026) is its newest release with breaking changes, 39 of them. The first: @jimp/plugin-shadow 2.0.0 requires Node.js 22 or later. Every breaking API change we have recorded in @jimp/plugin-shadow on npm: 39 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-shadow 2.0.0 breaking changes

@jimp/plugin-shadow 2.0.0, released November 24, 2026: 39 breaking changes.

- **Removed**  

The package no longer supports Node.js versions older than 22. Users on older Node.js versions must upgrade Node.js before using this release. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Removed**  

Jimp now requires Node.js 22 or later, so code running on Node.js 18 or 20 must upgrade. [github.com](https://github.com/jimp-dev/jimp/commit/79600e9104cc157c9d0ed35a139f0e3c7ae27982)
- **Removed** `colorSpace`  

The option had no effect and the wasm encoders now throw for unknown options, so code passing it must drop it. [github.com](https://github.com/jimp-dev/jimp/commit/deb4c2b7ab0aee2d773324df1430d1c9a2fc8134)
- **Removed** `write`  

Formats without encode options now take no options, so passing options for these formats breaks. [github.com](https://github.com/jimp-dev/jimp/commit/0cb5a2ce680cf8a7ae62cf8306ba98510168dc25)
- **Behavior changed** `alignmentY`  

alignmentY without maxHeight now aligns within the image below y instead of being ignored. [github.com](https://github.com/jimp-dev/jimp/commit/11538769cea8b8a74185c727435d85bd7b5967c0)
- **Behavior changed** `autocrop`  

ignoreSides and leaveBorder now work with cropOnlyFrames and transparent pixels match differently, so results change. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `blur`  

The radius is rounded and clamped to 1-256, so output for other radii changes. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `circle`  

A radius of 0 now means a zero-sized circle, so output for radius 0 changes. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `color`  

color with the greyscale action now gives the same result as greyscale(), so output differs from before. [github.com](https://github.com/jimp-dev/jimp/commit/4f6db79f3e4827d2175cd10de49b1f9a6b865e97)
- **Behavior changed** `compareHashes`  

compareHashes now decodes hash() output so distances change compared with before. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `composite`  

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

contrast now scales around 127.5 and rounds symmetrically, so results differ from before. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `convolute`  

convolute changes alpha output, so code relying on previous alpha results may differ; use preserveAlpha to leave alpha alone. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `cover`  

Any invalid align value now throws, so calls with unusual align values fail. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `crop`  

crop clamps the rectangle to the image and throws if nothing is left, so out-of-bounds crops change. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Behavior changed** `cssColorToHex`  

Invalid color strings throw instead of becoming opaque black, so code relying on the old fallback fails. [github.com](https://github.com/jimp-dev/jimp/commit/6270626dfc31235ecd73ff22933c47344b1215aa)
- **Behavior changed** `displace`  

Alpha moves with the pixel and the map is stretched to the image, so output changes. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `Edge.WRAP`  

Edge.WRAP now wraps coordinates more than one image away, so results for far-off coordinates change. [github.com](https://github.com/jimp-dev/jimp/commit/fad50e2935d09f9994dc0eb68da0aaac30f29b8c)
- **Behavior changed** `getPixelColor`  

Passing NaN coordinates now throws instead of reading pixel (0, 0). [github.com](https://github.com/jimp-dev/jimp/commit/fad50e2935d09f9994dc0eb68da0aaac30f29b8c)
- **Behavior changed** `getPixelIndex`  

Passing NaN coordinates now throws instead of reading pixel (0, 0). [github.com](https://github.com/jimp-dev/jimp/commit/fad50e2935d09f9994dc0eb68da0aaac30f29b8c)
- **Behavior changed** `greyscale`  

greyscale() now rounds the luminance instead of truncating it, 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(s), data or blob URLs are read as files, so code relying on fetching other strings breaks. [github.com](https://github.com/jimp-dev/jimp/commit/0cb5a2ce680cf8a7ae62cf8306ba98510168dc25)
- **Behavior changed** `loadFont`  

loadFont now throws for error responses and failed fetches instead of parsing the error page as a font. [github.com](https://github.com/jimp-dev/jimp/commit/11538769cea8b8a74185c727435d85bd7b5967c0)
- **Behavior changed** `measureText`  

measureText now returns the width of the widest line instead of skipping newlines, so values change. [github.com](https://github.com/jimp-dev/jimp/commit/11538769cea8b8a74185c727435d85bd7b5967c0)
- **Behavior changed** `measureTextHeight`  

Blank lines now count toward the measured height, so measured values change. [github.com](https://github.com/jimp-dev/jimp/commit/8f1f4ca4ca6df27f097bf5794728dd1ec9983583)
- **Behavior changed** `normalize`  

A channel with one value is now left as is instead of being turned black, so output differs. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `otsuThreshold`  

otsuThreshold now rounds luminance like greyscale(), so its output differs from before. [github.com](https://github.com/jimp-dev/jimp/commit/4f6db79f3e4827d2175cd10de49b1f9a6b865e97)
- **Behavior changed** `posterize`  

posterize now rounds to the nearest of n levels instead of rounding down, so output differs. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `print`  

Every line break now starts a new line, so blank lines are printed and the text takes more lines than before. [github.com](https://github.com/jimp-dev/jimp/commit/8f1f4ca4ca6df27f097bf5794728dd1ec9983583)
- **Behavior changed** `quantize`  

Colors below 1 throw, and below 2 with rgbquant, so such calls must change. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `resize`  

The default resizer premultiplies alpha, so colors next to transparent pixels change. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `rotate`  

Passing a ResizeStrategy as mode now interpolates the rotated pixels instead of taking the nearest pixel, so output changes. [github.com](https://github.com/jimp-dev/jimp/commit/deb4c2b7ab0aee2d773324df1430d1c9a2fc8134)
- **Behavior changed** `scan`  

scan no longer visits pixels outside the image, so callbacks run fewer times. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Behavior changed** `scanIterator`  

Default width and height now cover the rest of the image, so iteration range changes. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Behavior changed** `setPixelColor`  

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

The shadow plugin's results changed as part of a set of breaking fixes to blur, cover/contain, resize, autocrop, displace, circle, shadow and compareHashes. Code that depends on the previous shadow output may need to be checked. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed** `threshold`  

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

Options that no format accepts are now rejected when writing to a string path. [github.com](https://github.com/jimp-dev/jimp/commit/0cb5a2ce680cf8a7ae62cf8306ba98510168dc25)
- **Signature changed** `methods`  

Was const methods: {shadow\<I extends JimpClass>(image: I, options?: ShadowOptions): any;}; now const methods: {shadow\<I extends JimpClass>(image: I, options?: ShadowOptions): I;}. [npmjs.com](https://www.npmjs.com/package/@jimp/plugin-shadow/v/2.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-mask](https://since.dev/packages/npm/@jimp/plugin-mask.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)

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