Skip to content

🎥 Make videos programmatically with React

Merge branch 'v4' into 2107-mention-that-tcomposition-type-is-now-anycomposition

Jonny Burgerafe3c610e607
diff --cc packages/docs/docs/4-0-migration.md
index aace6d0b20,70ea25ba92..ef0dec9daf
--- a/packages/docs/docs/4-0-migration.md
+++ b/packages/docs/docs/4-0-migration.md
@@@ -194,22 -194,10 +194,30 @@@ The `WebpackOverrideFn` type useful fo
If you encoded the path by yourself until now, don't do so anymore to avoid double encoding.
+## The `TComposition` type now includes a Zod schema
+
+The `TComposition` type now has two generic arguments:
+
+```ts
+export type TComposition<Schema extends z.ZodTypeAny, Props> = {};
+```
+
+If you need a type for a generic composition, you can use the new `AnyComposition` type:
+
+```ts
+import { AnyComposition } from "remotion";
+
+const composition: AnyComposition = {
+ width: 1920,
+ height: 1080,
+ // ...
+};
+```
++
+ ## `getCanExtractFramesFast()` function has been removed
+
+ The [`getCanExtractFramesFast()`](/docs/renderer/get-can-extract-frames-fast) function has been removed, since frames can always be extracted fast now using `<OffthreadVideo>`.
+
+ **How to upgrade:**
+
+ You can now remove your re-encoding logic!