🎥 Make videos programmatically with React
lambda is pure
Jonny Burgera7bf3ee701f8
diff --git a/packages/cli/src/benchmark.ts b/packages/cli/src/benchmark.tsindex f25ba9e5ce..18a7932727 100644--- a/packages/cli/src/benchmark.ts+++ b/packages/cli/src/benchmark.ts@@ -1,6 +1,6 @@import type {InternalRenderMediaOptions, LogLevel} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {chalk} from './chalk';import {registerCleanupJob} from './cleanup-before-quit';import {ConfigInternals} from './config';@@ -232,11 +232,12 @@ export const benchmarkCommand = async (const puppeteerInstance = await browserInstance;- const serializedInputPropsWithCustomSchema = Internals.serializeJSONWithDate({- data: inputProps ?? {},- indent: undefined,- staticBase: null,- }).serializedString;+ const serializedInputPropsWithCustomSchema =+ NoReactInternals.serializeJSONWithDate({+ data: inputProps ?? {},+ indent: undefined,+ staticBase: null,+ }).serializedString;const comps = await RenderInternals.internalGetCompositions({serveUrlOrWebpackUrl: bundleLocation,@@ -361,7 +362,7 @@ export const benchmarkCommand = async (preferLossless: false,server: undefined,serializedResolvedPropsWithCustomSchema:- Internals.serializeJSONWithDate({+ NoReactInternals.serializeJSONWithDate({data: composition.props,indent: undefined,staticBase: null,diff --git a/packages/cli/src/compositions.ts b/packages/cli/src/compositions.tsindex a6639fc955..6bb82be27c 100644--- a/packages/cli/src/compositions.ts+++ b/packages/cli/src/compositions.ts@@ -1,6 +1,6 @@import type {LogLevel} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {registerCleanupJob} from './cleanup-before-quit';import {getRendererPortFromConfigFileAndCliFlag} from './config/preview-server';import {findEntryPoint} from './entry-point';@@ -73,11 +73,12 @@ export const listCompositionsCommand = async (browserExecutable,chromiumOptions,envVariables,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- data: inputProps,- staticBase: null,- indent: undefined,- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ data: inputProps,+ staticBase: null,+ indent: undefined,+ }).serializedString,timeoutInMilliseconds: puppeteerTimeout,port: getRendererPortFromConfigFileAndCliFlag(),indent: false,diff --git a/packages/cli/src/editor/components/RenderModal/DataEditor.tsx b/packages/cli/src/editor/components/RenderModal/DataEditor.tsxindex 0a52a2ca8f..47dcefc1d0 100644--- a/packages/cli/src/editor/components/RenderModal/DataEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/DataEditor.tsx@@ -7,6 +7,7 @@ import React, {} from 'react';import type {AnyComposition, SerializedJSONWithCustomFields} from 'remotion';import {getInputProps, Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import type {z} from 'zod';import {subscribeToEvent} from '../../../event-source';import {StudioServerConnectionCtx} from '../../helpers/client-id';@@ -140,7 +141,7 @@ export const DataEditor: React.FC<{}const value = inputProps;- return Internals.serializeJSONWithDate({+ return NoReactInternals.serializeJSONWithDate({data: value,indent: 2,staticBase: window.remotion_staticBase,diff --git a/packages/cli/src/editor/components/RenderQueue/actions.ts b/packages/cli/src/editor/components/RenderQueue/actions.tsindex 1874492c4d..da6015dcab 100644--- a/packages/cli/src/editor/components/RenderQueue/actions.ts+++ b/packages/cli/src/editor/components/RenderQueue/actions.ts@@ -9,7 +9,7 @@ import type {VideoImageFormat,X264Preset,} from '@remotion/renderer';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import type {ApiRoutes} from '../../../preview-server/api-types';import type {CopyStillToClipboardRequest,@@ -94,11 +94,12 @@ export const addStillRenderJob = ({chromiumOptions,delayRenderTimeout,envVariables,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- data: inputProps,- staticBase: window.remotion_staticBase,- indent: undefined,- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ data: inputProps,+ staticBase: window.remotion_staticBase,+ indent: undefined,+ }).serializedString,offthreadVideoCacheSizeInBytes,multiProcessOnLinux,});@@ -153,11 +154,12 @@ export const addSequenceRenderJob = ({delayRenderTimeout,envVariables,concurrency,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- data: inputProps,- staticBase: window.remotion_staticBase,- indent: undefined,- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ data: inputProps,+ staticBase: window.remotion_staticBase,+ indent: undefined,+ }).serializedString,offthreadVideoCacheSizeInBytes,disallowParallelEncoding,multiProcessOnLinux,@@ -252,11 +254,12 @@ export const addVideoRenderJob = ({disallowParallelEncoding,chromiumOptions,envVariables,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- data: inputProps,- staticBase: window.remotion_staticBase,- indent: undefined,- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ data: inputProps,+ staticBase: window.remotion_staticBase,+ indent: undefined,+ }).serializedString,offthreadVideoCacheSizeInBytes,colorSpace,multiProcessOnLinux,@@ -324,7 +327,7 @@ export const updateDefaultProps = () => {return callApi('/api/update-default-props', {compositionId,- defaultProps: Internals.serializeJSONWithDate({+ defaultProps: NoReactInternals.serializeJSONWithDate({data: defaultProps,indent: undefined,staticBase: window.remotion_staticBase,diff --git a/packages/cli/src/render-flows/render.ts b/packages/cli/src/render-flows/render.tsindex d4a0158b88..e1fc739791 100644--- a/packages/cli/src/render-flows/render.ts+++ b/packages/cli/src/render-flows/render.ts@@ -20,7 +20,7 @@ import {RenderInternals} from '@remotion/renderer';import fs, {existsSync} from 'node:fs';import os from 'node:os';import path from 'node:path';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {chalk} from '../chalk';import {ConfigInternals} from '../config';import type {Loop} from '../config/number-of-gif-loops';@@ -403,11 +403,12 @@ export const renderVideoFlow = async ({onBrowserLog: null,onFrameBuffer: null,logLevel,- serializedResolvedPropsWithCustomSchema: Internals.serializeJSONWithDate({- indent: undefined,- staticBase: null,- data: config.props,- }).serializedString,+ serializedResolvedPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ indent: undefined,+ staticBase: null,+ data: config.props,+ }).serializedString,offthreadVideoCacheSizeInBytes,parallelEncodingEnabled: isUsingParallelEncoding,});@@ -484,11 +485,12 @@ export const renderVideoFlow = async ({disallowParallelEncoding,onBrowserLog: null,onStart: () => undefined,- serializedResolvedPropsWithCustomSchema: Internals.serializeJSONWithDate({- data: config.props,- indent: undefined,- staticBase: null,- }).serializedString,+ serializedResolvedPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ data: config.props,+ indent: undefined,+ staticBase: null,+ }).serializedString,offthreadVideoCacheSizeInBytes,colorSpace,});diff --git a/packages/cli/src/render-flows/still.ts b/packages/cli/src/render-flows/still.tsindex f77900a135..031c2d8887 100644--- a/packages/cli/src/render-flows/still.ts+++ b/packages/cli/src/render-flows/still.ts@@ -12,7 +12,7 @@ import type {import {RenderInternals} from '@remotion/renderer';import {existsSync, mkdirSync} from 'node:fs';import path from 'node:path';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {chalk} from '../chalk';import {registerCleanupJob} from '../cleanup-before-quit';import {ConfigInternals} from '../config';@@ -300,11 +300,12 @@ export const renderStillFlow = async ({indent,onBrowserLog: null,logLevel,- serializedResolvedPropsWithCustomSchema: Internals.serializeJSONWithDate({- indent: undefined,- staticBase: null,- data: config.props,- }).serializedString,+ serializedResolvedPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ indent: undefined,+ staticBase: null,+ data: config.props,+ }).serializedString,offthreadVideoCacheSizeInBytes,});diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsxindex 5b6335fd63..91f6b67623 100644--- a/packages/cli/src/render.tsx+++ b/packages/cli/src/render.tsx@@ -1,6 +1,6 @@// eslint-disable-next-line no-restricted-importsimport type {LogLevel} from '@remotion/renderer';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {registerCleanupJob} from './cleanup-before-quit';import {ConfigInternals} from './config';import {getRendererPortFromConfigFileAndCliFlag} from './config/preview-server';@@ -91,11 +91,12 @@ export const render = async (shouldOutputImageSequence,publicDir,envVariables,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- indent: undefined,- staticBase: null,- data: inputProps,- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ indent: undefined,+ staticBase: null,+ data: inputProps,+ }).serializedString,puppeteerTimeout,port: getRendererPortFromConfigFileAndCliFlag(),height,diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.tsindex 4444736084..e4b3f9a5ac 100644--- a/packages/cli/src/still.ts+++ b/packages/cli/src/still.ts@@ -1,5 +1,5 @@import type {LogLevel} from '@remotion/renderer';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {registerCleanupJob} from './cleanup-before-quit';import {getRendererPortFromConfigFileAndCliFlag} from './config/preview-server';import {convertEntryPointToServeUrl} from './convert-entry-point-to-serve-url';@@ -70,11 +70,12 @@ export const still = async (chromiumOptions,envVariables,height,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- data: inputProps,- indent: undefined,- staticBase: null,- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ data: inputProps,+ indent: undefined,+ staticBase: null,+ }).serializedString,overwrite,port: getRendererPortFromConfigFileAndCliFlag(),publicDir,diff --git a/packages/cloudrun/src/api/render-media-on-cloudrun.ts b/packages/cloudrun/src/api/render-media-on-cloudrun.tsindex a9aa2d7944..bbc6e21b82 100644--- a/packages/cloudrun/src/api/render-media-on-cloudrun.ts+++ b/packages/cloudrun/src/api/render-media-on-cloudrun.ts@@ -14,7 +14,7 @@ import type {import {RenderInternals} from '@remotion/renderer';import type {BrowserSafeApis} from '@remotion/renderer/client';import {PureJSAPIs} from '@remotion/renderer/pure';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import type {CloudRunCrashResponse,CloudRunPayloadType,@@ -165,11 +165,12 @@ const internalRenderMediaOnCloudrunRaw = async ({composition,serveUrl,codec: actualCodec,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- indent: undefined,- staticBase: null,- data: inputProps ?? {},- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ indent: undefined,+ staticBase: null,+ data: inputProps ?? {},+ }).serializedString,jpegQuality: jpegQuality ?? RenderInternals.DEFAULT_JPEG_QUALITY,audioCodec: audioCodec ?? null,audioBitrate: audioBitrate ?? null,diff --git a/packages/cloudrun/src/api/render-still-on-cloudrun.ts b/packages/cloudrun/src/api/render-still-on-cloudrun.tsindex 5acc620123..51751ecf08 100644--- a/packages/cloudrun/src/api/render-still-on-cloudrun.ts+++ b/packages/cloudrun/src/api/render-still-on-cloudrun.ts@@ -7,7 +7,7 @@ import type {import {RenderInternals} from '@remotion/renderer';import type {BrowserSafeApis} from '@remotion/renderer/client';import {PureJSAPIs} from '@remotion/renderer/pure';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import type {CloudRunCrashResponse,CloudRunPayloadType,@@ -107,11 +107,12 @@ const renderStillOnCloudrunRaw = async ({const data: CloudRunPayloadType = {composition,serveUrl,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- indent: undefined,- staticBase: null,- data: inputProps ?? {},- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ indent: undefined,+ staticBase: null,+ data: inputProps ?? {},+ }).serializedString,outputBucket,outName,privacy: privacy ?? 'public',diff --git a/packages/cloudrun/src/cli/commands/render/index.ts b/packages/cloudrun/src/cli/commands/render/index.tsindex 70b0c561df..b4e26d18b8 100644--- a/packages/cloudrun/src/cli/commands/render/index.ts+++ b/packages/cloudrun/src/cli/commands/render/index.ts@@ -2,7 +2,7 @@ import {CliInternals} from '@remotion/cli';import {ConfigInternals} from '@remotion/cli/config';import type {LogLevel} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {downloadFile} from '../../../api/download-file';import {internalRenderMediaOnCloudrun} from '../../../api/render-media-on-cloudrun';import type {CloudrunCodec} from '../../../shared/validate-gcp-codec';@@ -110,11 +110,12 @@ export const renderCommand = async (logLevel,width,server: await server,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- data: inputProps,- indent: undefined,- staticBase: null,- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ data: inputProps,+ indent: undefined,+ staticBase: null,+ }).serializedString,offthreadVideoCacheSizeInBytes,});composition = compositionId;diff --git a/packages/cloudrun/src/cli/commands/still.ts b/packages/cloudrun/src/cli/commands/still.tsindex 50b42b3c97..cd0b63013b 100644--- a/packages/cloudrun/src/cli/commands/still.ts+++ b/packages/cloudrun/src/cli/commands/still.ts@@ -2,7 +2,7 @@ import {CliInternals} from '@remotion/cli';import {ConfigInternals} from '@remotion/cli/config';import type {LogLevel} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {downloadFile} from '../../api/download-file';import {renderStillOnCloudrun} from '../../api/render-still-on-cloudrun';import {validateServeUrl} from '../../shared/validate-serveurl';@@ -78,11 +78,12 @@ export const stillCommand = async (browserExecutable,chromiumOptions,envVariables,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- data: inputProps,- indent: undefined,- staticBase: null,- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ data: inputProps,+ indent: undefined,+ staticBase: null,+ }).serializedString,port: ConfigInternals.getRendererPortFromConfigFileAndCliFlag(),puppeteerInstance: undefined,timeoutInMilliseconds: puppeteerTimeout,diff --git a/packages/cloudrun/src/functions/render-media-single-thread.ts b/packages/cloudrun/src/functions/render-media-single-thread.tsindex 7aa28255d5..e56b9ae495 100644--- a/packages/cloudrun/src/functions/render-media-single-thread.ts+++ b/packages/cloudrun/src/functions/render-media-single-thread.ts@@ -2,7 +2,7 @@ import type * as ff from '@google-cloud/functions-framework';import {Storage} from '@google-cloud/storage';import type {ChromiumOptions, RenderMediaOnProgress} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {randomHash} from '../shared/random-hash';import {getCompositionFromBody} from './helpers/get-composition-from-body';import type {@@ -57,11 +57,12 @@ export const renderMediaSingleThread = async (outputLocation: tempFilePath,serializedInputPropsWithCustomSchema:body.serializedInputPropsWithCustomSchema,- serializedResolvedPropsWithCustomSchema: Internals.serializeJSONWithDate({- data: composition.props,- indent: undefined,- staticBase: null,- }).serializedString,+ serializedResolvedPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ data: composition.props,+ indent: undefined,+ staticBase: null,+ }).serializedString,jpegQuality: body.jpegQuality,audioCodec: body.audioCodec,audioBitrate: body.audioBitrate,diff --git a/packages/core/src/index.ts b/packages/core/src/index.tsindex d19b1b9a00..1e8ca54ac3 100644--- a/packages/core/src/index.ts+++ b/packages/core/src/index.ts@@ -106,14 +106,14 @@ export * from './IFrame.js';export {Img, ImgProps} from './Img.js';export * from './internals.js';export {interpolateColors} from './interpolate-colors.js';+export {Loop} from './loop/index.js';+export {ClipRegion} from './NativeLayers.js';export {EasingFunction,ExtrapolateType,interpolate,InterpolateOptions,-} from './interpolate.js';-export {Loop} from './loop/index.js';-export {ClipRegion} from './NativeLayers.js';+} from './no-react';export {prefetch} from './prefetch.js';export {random, RandomSeed} from './random.js';export {registerRoot} from './register-root.js';diff --git a/packages/core/src/no-react.ts b/packages/core/src/no-react.tsindex d4c0e03e75..c50632fe5b 100644--- a/packages/core/src/no-react.ts+++ b/packages/core/src/no-react.ts@@ -5,6 +5,12 @@ import {validateDefaultAndInputProps} from './validation/validate-default-props'import {validateDimension} from './validation/validate-dimensions';import {validateDurationInFrames} from './validation/validate-duration-in-frames';import {validateFps} from './validation/validate-fps';+export {+ EasingFunction,+ ExtrapolateType,+ interpolate,+ InterpolateOptions,+} from './interpolate';export type {VideoConfig} from './video-config';export const NoReactInternals = {diff --git a/packages/lambda/.eslintrc b/packages/lambda/.eslintrcindex 8103f5472a..8007c63154 100644--- a/packages/lambda/.eslintrc+++ b/packages/lambda/.eslintrc@@ -7,7 +7,7 @@"error",{"patterns": ["@remotion/cli", "@remotion/*/src/*"],- "paths": ["remotion"]+ "paths": ["remotion", "react", "react-dom"]}]},diff --git a/packages/lambda/src/api/get-compositions-on-lambda.ts b/packages/lambda/src/api/get-compositions-on-lambda.tsindex b40fa2c9e6..6a6450dc54 100644--- a/packages/lambda/src/api/get-compositions-on-lambda.ts+++ b/packages/lambda/src/api/get-compositions-on-lambda.ts@@ -1,6 +1,6 @@import type {ChromiumOptions, LogLevel, ToOptions} from '@remotion/renderer';import type {BrowserSafeApis} from '@remotion/renderer/client';-import type {VideoConfig} from 'remotion';+import type {VideoConfig} from 'remotion/no-react';import {VERSION} from 'remotion/version';import type {AwsRegion} from '../client';import {LambdaRoutines} from '../defaults';diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.tsindex 519f906fae..df4138b1da 100644--- a/packages/lambda/src/cli/commands/render/render.ts+++ b/packages/lambda/src/cli/commands/render/render.ts@@ -2,7 +2,7 @@ import {CliInternals} from '@remotion/cli';import {ConfigInternals} from '@remotion/cli/config';import type {LogLevel} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {downloadMedia} from '../../../api/download-media';import {getRenderProgress} from '../../../api/get-render-progress';import {internalRenderMediaOnLambdaRaw} from '../../../api/render-media-on-lambda';@@ -121,11 +121,12 @@ export const renderCommand = async (envVariables,height,indent: false,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- indent: undefined,- staticBase: null,- data: inputProps,- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ indent: undefined,+ staticBase: null,+ data: inputProps,+ }).serializedString,port: ConfigInternals.getRendererPortFromConfigFileAndCliFlag(),puppeteerInstance: undefined,serveUrlOrWebpackUrl: serveUrl,diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.tsindex 5674461605..ae4c19fa98 100644--- a/packages/lambda/src/cli/commands/still.ts+++ b/packages/lambda/src/cli/commands/still.ts@@ -3,7 +3,7 @@ import {ConfigInternals} from '@remotion/cli/config';import type {LogLevel} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';import {BrowserSafeApis} from '@remotion/renderer/client';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import {downloadMedia} from '../../api/download-media';import {renderStillOnLambda} from '../../api/render-still-on-lambda';import {@@ -93,11 +93,12 @@ export const stillCommand = async (browserExecutable,chromiumOptions,envVariables,- serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({- indent: undefined,- staticBase: null,- data: inputProps,- }).serializedString,+ serializedInputPropsWithCustomSchema:+ NoReactInternals.serializeJSONWithDate({+ indent: undefined,+ staticBase: null,+ data: inputProps,+ }).serializedString,port: ConfigInternals.getRendererPortFromConfigFileAndCliFlag(),puppeteerInstance: undefined,timeoutInMilliseconds: puppeteerTimeout,diff --git a/packages/lambda/src/functions/helpers/best-frames-per-lambda-param.ts b/packages/lambda/src/functions/helpers/best-frames-per-lambda-param.tsindex 4f38215d17..a7fef5117f 100644--- a/packages/lambda/src/functions/helpers/best-frames-per-lambda-param.ts+++ b/packages/lambda/src/functions/helpers/best-frames-per-lambda-param.ts@@ -1,4 +1,4 @@-import {interpolate} from 'remotion';+import {interpolate} from 'remotion/no-react';// Always update the code in docs/lambda/concurrency.md toodiff --git a/packages/lambda/src/functions/helpers/get-progress.ts b/packages/lambda/src/functions/helpers/get-progress.tsindex 984c8035c2..246ac4388c 100644--- a/packages/lambda/src/functions/helpers/get-progress.ts+++ b/packages/lambda/src/functions/helpers/get-progress.ts@@ -1,5 +1,5 @@import {RenderInternals} from '@remotion/renderer';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import type {AwsRegion} from '../../pricing/aws-regions';import type {CustomCredentials} from '../../shared/aws-clients';import type {RenderProgress} from '../../shared/constants';@@ -271,7 +271,7 @@ export const getProgress = async ({}): null,...errorExplanations,- ].filter(Internals.truthy);+ ].filter(NoReactInternals.truthy);return {framesRendered,diff --git a/packages/lambda/src/functions/helpers/inspect-errors.ts b/packages/lambda/src/functions/helpers/inspect-errors.tsindex d6cc2c7816..13551b71e6 100644--- a/packages/lambda/src/functions/helpers/inspect-errors.ts+++ b/packages/lambda/src/functions/helpers/inspect-errors.ts@@ -1,5 +1,5 @@import type {_Object} from '@aws-sdk/client-s3';-import {Internals} from 'remotion';+import {NoReactInternals} from 'remotion/src/no-react';import type {AwsRegion} from '../../pricing/aws-regions';import {getErrorKeyPrefix} from '../../shared/constants';import {DOCS_URL} from '../../shared/docs-url';@@ -64,7 +64,7 @@ export const inspectErrors = async ({const errs = contents.filter((c) => c.Key?.startsWith(getErrorKeyPrefix(renderId))).map((c) => c.Key)- .filter(Internals.truthy);+ .filter(NoReactInternals.truthy);if (errs.length === 0) {return [];diff --git a/packages/lambda/src/functions/helpers/validate-composition.ts b/packages/lambda/src/functions/helpers/validate-composition.tsindex 0fab3af79b..6033222115 100644--- a/packages/lambda/src/functions/helpers/validate-composition.ts+++ b/packages/lambda/src/functions/helpers/validate-composition.ts@@ -5,7 +5,7 @@ import type {RemotionServer,} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import type {VideoConfig} from 'remotion';+import type {VideoConfig} from 'remotion/no-react';import type {Await} from '../../shared/await';import {executablePath} from './get-chromium-executable-path';