v4.0.444

remotion-dev/remotionv4.0.444Apr 4, 2026by JonnyBurger

AI Summary

This release focuses on stability improvements and performance optimizations for the studio timeline and media handling, including a new LRU cache for frames and fixes for media duration calculations.

Key Highlights

  • 10MB LRU cache for timeline video frames
  • Fix media duration calculation with playbackRate
  • Better handling when forgetting to wrap assets in `staticFile()`
  • Accept `z.discriminatedUnion()` as top-level composition schema

Full Release Notes

## What's Changed
* `remotion`: Fix media duration calculation with playbackRate by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6961
* `@remotion/bundler`: Bump loader-utils to 2.0.4 by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6980
* `@remotion/cloudrun`: Add type safety to stream variables by @bhaktofmahakal in https://github.com/remotion-dev/remotion/pull/6964
* `@remotion/player`: Fix typo - rename persistance to persistence by @bhaktofmahakal in https://github.com/remotion-dev/remotion/pull/6975
* `@remotion/serverless-client`: Fix cost estimate increasing after fatal error by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6959
* `@remotion/studio`: Fix JSON editor error state being immediately cleared by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6956
* `@remotion/studio`: Better handling when you forgot to wrap an asset in `staticFile()` by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6958
* `@remotion/studio`: 10MB LRU cache for timeline video frames by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6960
* `@remotion/studio`: Errors inside composition don't go fullscreen anymore by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6962
* `@remotion/studio`: Allow copying stack trace in error overlay by @bugscreater in https://github.com/remotion-dev/remotion/pull/6966
* `@remotion/studio`: Accept `z.discriminatedUnion()` as top-level composition schema by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6977
* `@remotion/web-renderer`: Validate container and codec for transparent videos by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6955

## Templates
* Electron: Bump electron from 40.8.0 to 40.8.4 by @app/dependabot in https://github.com/remotion-dev/remotion/pull/6969
* Electron: Bump electron from 40.8.4 to 40.8.5 by @app/dependabot in https://github.com/remotion-dev/remotion/pull/6978

## Docs
* Add Hai Nguyen to experts page by @haingt-dev in https://github.com/remotion-dev/remotion/pull/6963

## Internal
* Teach AI how it can look at the output by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6971
* Upgrade Turborepo to 2.9.3 by @JonnyBurger in https://github.com/remotion-dev/remotion/pull/6981

**Full Changelog**: https://github.com/remotion-dev/remotion/compare/v4.0.443...v4.0.444