Skip to content

Comments

@remotion/renderer: Rename mimeType to contentType#6614

Merged
JonnyBurger merged 1 commit intomainfrom
rename-mimetype-to-contenttype-v2
Feb 20, 2026
Merged

@remotion/renderer: Rename mimeType to contentType#6614
JonnyBurger merged 1 commit intomainfrom
rename-mimetype-to-contenttype-v2

Conversation

@JonnyBurger
Copy link
Member

Summary

  • Renames mimeType to contentType in the return values of renderMedia() and renderStill()
  • Updates tests and docs accordingly

Test plan

  • Existing contentType assertions pass in render-media and render-still tests

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Contributor

vercel bot commented Feb 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment Feb 20, 2026 10:44am
remotion Ready Ready Preview, Comment Feb 20, 2026 10:44am

Request Review

Copy link
Contributor

@pullfrog pullfrog bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Pullfrog  | View workflow runpullfrog.com𝕏

Copy link
Contributor

@pullfrog pullfrog bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Pullfrog  | View workflow runpullfrog.com𝕏

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 mimeType to contentType in return types and implementations for both renderMedia() and renderStill()
  • Updated all test assertions to use the new contentType property 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

JonnyBurger added a commit that referenced this pull request Feb 20, 2026
Align with the renderer's rename from mimeType to contentType (PR #6614).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JonnyBurger JonnyBurger merged commit 1d346a7 into main Feb 20, 2026
20 checks passed
@JonnyBurger JonnyBurger deleted the rename-mimetype-to-contenttype-v2 branch February 20, 2026 10:51
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