Skip to content

fix: hold jimp at 1.6.0, whose successor has no browser build - #201

Merged
00o-sh merged 1 commit into
masterfrom
claude/jimp-1.6.1-broken
Oct 6, 2026
Merged

00o-sh merged 1 commit into
masterfrom
claude/jimp-1.6.1-broken

Conversation

@00o-sh

@00o-sh 00o-sh commented Oct 6, 2026

Copy link
Copy Markdown

Why #183 can never go green

jimp 1.6.1 ships dist/browser/index.js as a 98-byte stub:

export {};
// A stub. The real build is done by rollup.

Webpack resolves jimp's "browser" export condition, so the module comes back empty and import {Jimp} from "jimp" is silently undefined. The first property access then throws, which is exactly what the UI tests on #183 reported:

Error loading image. (TypeError: Cannot read properties of undefined (reading 'read'))

The Node tests passed the whole time, because Node takes the "import" condition and gets the real build. That split is why #183 looked like a test-expectation problem rather than a broken release.

Upstream: jimp-dev/jimp#1402, open since April 2026. There is nothing to fix on our side.

What this does

  • Tells Renovate to skip 1.6.1 only (<1.6.1 || >1.6.1), so jimp keeps being tracked and 1.6.2 is offered the moment it exists.
  • De-pins the malformed-PNG test from jimp's own error wording. 1.6.1's other change was bumping file-type from v16 to v21, which reports a corrupted IHDR chunk as Could not find MIME for Buffer rather than unrecognised content at end of stream. What View Bit Plane is responsible for is reporting the failure instead of throwing, so the test now asserts that and leaves the bracketed text to jimp. Without this, 1.6.2 turns CI red again for a reason that has nothing to do with CyberChef.

#183 should be closed.

2327 operation tests pass; lint clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_013n7RnvKbWnWxpitCseJ5Nk

jimp 1.6.1 ships dist/browser/index.js as a 98-byte stub:

    export {};
    // A stub. The real build is done by rollup.

Webpack resolves jimp's "browser" export condition, so the whole module
comes back empty and `import {Jimp} from "jimp"` is silently undefined.
Every image operation then dies on the first property access, which is
what the UI tests reported:

    Error loading image. (TypeError: Cannot read properties of
    undefined (reading 'read'))

The Node tests passed throughout, because Node takes the "import"
condition and gets the real build - which is why this only showed up in
the browser half of CI.

This is jimp-dev/jimp#1402, open upstream since April, and there is
nothing to fix on this side. Renovate is told to skip 1.6.1 specifically
rather than to stop tracking jimp, so 1.6.2 will be offered as soon as
it is published.

Also de-pins the malformed-PNG test from jimp's own error wording while
it is in view: 1.6.1's other change was file-type v16 to v21, which
reports a corrupt IHDR as "Could not find MIME for Buffer" instead of
"unrecognised content at end of stream". The operation's job is to
report the failure rather than throw, so the test matches that and
leaves the bracketed text alone - otherwise 1.6.2 lands and breaks CI
again for a reason that has nothing to do with CyberChef.

2327 operation tests pass.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013n7RnvKbWnWxpitCseJ5Nk
@00o-sh
00o-sh merged commit 0a03c68 into master Oct 6, 2026
3 checks passed
@00o-sh
00o-sh deleted the claude/jimp-1.6.1-broken branch October 6, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant