Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements or reviews Remotion 5 breaking changes behind the central compile-time flag shared by the v4 and v5 release lines.
32% 91%+59 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 7 of 22 without it.
3 of 3 safety checks passed
Not used yet
Use the central compile-time flag in packages/core/src/v5-flag.ts:
export const ENABLE_V5_BREAKING_CHANGES = false as const;
false as const on the v4/main release line.boolean. Its literal type selects the public TypeScript API as well as runtime behavior.packages/core, import the flag from v5-flag.ts. From another package, use NoReactInternals.ENABLE_V5_BREAKING_CHANGES from remotion/no-react so all packages use the same value.When the v5 release line is cut, changing this one constant to true as const must activate the v5 runtime behavior and public TypeScript API together.
Branch defaults and behavior on the central flag while preserving the existing v4 path:
const effectiveValue =
value ??
(NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? v5Default : v4Default);
An explicit user value should continue to take precedence unless the v5 API intentionally removes that value. Keep runtime validation aligned with the selected public type so JavaScript callers and callers bypassing TypeScript get the v5 behavior too.
For a breaking signature or options change, select the entire incompatible part with a conditional type based on the literal flag:
type VersionedOptions =
typeof NoReactInternals.ENABLE_V5_BREAKING_CHANGES extends true
? V5Options
: V4Options;
Next to this one in the catalogue, plus more from the same author.