Repository navigation
fix: hold jimp at 1.6.0, whose successor has no browser build - #201
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why #183 can never go green
jimp 1.6.1 ships
dist/browser/index.jsas a 98-byte stub:Webpack resolves jimp's
"browser"export condition, so the module comes back empty andimport {Jimp} from "jimp"is silentlyundefined. The first property access then throws, which is exactly what the UI tests on #183 reported: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
<1.6.1 || >1.6.1), so jimp keeps being tracked and 1.6.2 is offered the moment it exists.file-typefrom v16 to v21, which reports a corrupted IHDR chunk asCould not find MIME for Bufferrather thanunrecognised 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