🎥 Make videos programmatically with React
fix types
Jonny Burger092ddeb46dca
diff --git a/packages/docs/docs/lambda/changelog.md b/packages/docs/docs/lambda/changelog.mdindex 8204fa5c86..f646830caa 100644--- a/packages/docs/docs/lambda/changelog.md+++ b/packages/docs/docs/lambda/changelog.md@@ -16,6 +16,7 @@ Keep track of changes to the APIs of Remotion Lambda here.- New algorithm for determining default concurrency: https://v3.remotion.dev/docs/lambda/concurrency- Better error message if concurrency is too high- Remove `colors` module+- Fixes an error where payload limit would be reached because `defaultProps` had a big size## January 6th, 2022diff --git a/packages/lambda/remotionlambda.zip b/packages/lambda/remotionlambda.zipindex 420090ab0c..8a7b3e1c55 100644Binary files a/packages/lambda/remotionlambda.zip and b/packages/lambda/remotionlambda.zip differdiff --git a/packages/renderer/src/render.ts b/packages/renderer/src/render.tsindex 5c695c9c5b..7f09492a64 100644--- a/packages/renderer/src/render.ts+++ b/packages/renderer/src/render.ts@@ -10,8 +10,8 @@ import {FrameRange,ImageFormat,Internals,+ SmallTCompMetadata,TAsset,- VideoConfig,} from 'remotion';import {downloadAndMapAssetsToFileUrl,@@ -41,10 +41,10 @@ type ConfigOrComposition =/*** @deprecated This field has been renamed to `composition`*/- config: VideoConfig;+ config: SmallTCompMetadata;}| {- composition: VideoConfig;+ composition: SmallTCompMetadata;};type RenderFramesOptions = {@@ -100,7 +100,7 @@ export const innerRenderFrames = async ({onError: (err: Error) => void;pagesArray: Page[];serveUrl: string;- composition: VideoConfig;+ composition: SmallTCompMetadata;}): Promise<RenderFramesOutput> => {if (!puppeteerInstance) {throw new Error('weird');diff --git a/packages/renderer/src/test/validate-config.test.ts b/packages/renderer/src/test/validate-config.test.tsindex 1bbd7e966f..da7926e683 100644--- a/packages/renderer/src/test/validate-config.test.ts+++ b/packages/renderer/src/test/validate-config.test.ts@@ -11,7 +11,6 @@ describe('Should validate invalid data passed to renderFrames', () => {height: 1000,width: 1000,id: 'hithere',- defaultProps: {},},})).rejects.toThrow(@@ -28,7 +27,6 @@ describe('Should validate invalid data passed to renderFrames', () => {height: 1000,width: 1000,id: 'hithere',- defaultProps: {},},})).rejects.toThrow(@@ -45,7 +43,6 @@ describe('Should validate invalid data passed to renderFrames', () => {height: 1000.5,width: 1000,id: 'hithere',- defaultProps: {},},})).rejects.toThrow(@@ -62,7 +59,6 @@ describe('Should validate invalid data passed to renderFrames', () => {width: 1000.5,height: 1000,id: 'hithere',- defaultProps: {},},})).rejects.toThrow(