LibreChat/packages/api
Danny Avila 3200f0133a
🚫 fix: Decline to Name a Heif Container With Unreported Compression (#15612)
`resolveImageMimeType` returned `image/heic` for any heif container whose
compression was not `av1`, which included the case where sharp reported no
compression at all. `Metadata.compression` is optional, so unreported is a real
outcome, and answering it with HEIC is a guess — an AVIF read back without its
compression would be recorded as HEIC.

That is the failure #15606 exists to prevent, reproduced inside the fix for it,
and it contradicted the documented contract of returning `undefined` rather than
naming bytes that cannot be identified.

Unreported or unrecognized compression now yields `undefined`, which leaves
`saveBase64Image` on the declared type: still only a claim, but the caller's
claim rather than one invented here.
2026-09-04 13:50:02 -04:00
..
src 🚫 fix: Decline to Name a Heif Container With Unreported Compression (#15612) 2026-09-04 13:50:02 -04:00
types
.gitignore
babel.config.cjs
jest.config.mjs 🔇 refactor: Quiet Framework Logging in Unit Tests (#15363) 2026-08-30 15:26:30 -04:00
jest.setup.cjs
package.json 🎨 feat: Theme-Adaptive SVG Support for Custom MCP and Group Icons (#13817) 2026-09-04 10:49:43 -04:00
tsconfig-paths-bootstrap.mjs
tsconfig.build.json
tsconfig.json 🥸 chore: Resolve Agents SDK Path Aliases That Masked Backend Types (#15160) 2026-08-24 08:38:30 -04:00
tsconfig.spec.json
tsdown.config.mjs