@remotion/renderer: Rename mimeType to contentType#6614
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Clean rename from mimeType to contentType in the return values of renderMedia() and renderStill(). Since this field was introduced in v4.0.426 (not yet released — current version is 4.0.425), there is no backward compatibility concern. All references in source, tests, and docs are updated consistently. No issues found.
There was a problem hiding this comment.
Clean rename. Since the mimeType field was introduced at v4.0.426 (unreleased — current version is 4.0.425), there are no backward compatibility concerns. All references in the renderer package, tests, and docs are updated consistently. The remaining mimeType usages in the codebase (media-parser, template-recorder, convert, devtools-types, asset downloading) are unrelated to the renderMedia/renderStill return types and don't need changes. LGTM.
There was a problem hiding this comment.
Pull request overview
This pull request renames the mimeType property to contentType in the return values of renderMedia() and renderStill() functions in the @remotion/renderer package. This is a breaking API change that aligns the property name with standard HTTP terminology, as these values represent content types like 'image/png' and 'video/mp4'.
Changes:
- Renamed
mimeTypetocontentTypein return types and implementations for bothrenderMedia()andrenderStill() - Updated all test assertions to use the new
contentTypeproperty name - Updated API documentation to reflect the new property name
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/renderer/src/render-still.ts | Updated type definition and return object to use contentType instead of mimeType |
| packages/renderer/src/render-media.ts | Updated type definition and return object to use contentType instead of mimeType |
| packages/renderer/src/test/render-still.test.ts | Updated test to destructure and assert contentType instead of mimeType |
| packages/it-tests/src/ssr/render-media.test.ts | Updated test to destructure and assert contentType instead of mimeType |
| packages/docs/docs/renderer/render-still.mdx | Updated documentation to describe contentType property |
| packages/docs/docs/renderer/render-media.mdx | Updated documentation to describe contentType property |
Align with the renderer's rename from mimeType to contentType (PR #6614). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Summary
mimeTypetocontentTypein the return values ofrenderMedia()andrenderStill()Test plan
contentTypeassertions pass in render-media and render-still tests🤖 Generated with Claude Code