@remotion/lambda-client 4.0.351 → 4.0.353

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @remotion/lambda-client@4.0.351 make /Users/jonathanburger/remotion/packages/lambda-client
3
+ > @remotion/lambda-client@4.0.353 make /Users/jonathanburger/remotion/packages/lambda-client
4
4
  > tsc -d && bun --env-file=../.env.bundle bundle.ts
5
5
 
6
- [96.81ms] Generated.
6
+ [49.46ms] Generated.
@@ -1,23 +1,28 @@
1
1
 
2
- 
3
- > @remotion/lambda-client@4.0.311 test /Users/jonathanburger/remotion/packages/lambda-client
4
- > bun test src
5
-
6
- bun test v1.2.14 (6a363a38)
2
+ $ bun test src
3
+ bun test v1.2.21 (7c45ed97)
4
+ 
5
+ src/test/request-handler.test.ts:
6
+ ✓ RequestHandler type should be properly exported and defined [0.20ms]
7
+ ✓ API input types should accept requestHandler option [0.09ms]
8
+ 
9
+ src/test/concurrency-payload.test.ts:
10
+ ✓ Should include concurrency field in payload [3.45ms]
11
+ ✓ Should handle null concurrency [0.63ms]
7
12
  
8
13
  src/test/price-calculation.test.ts:
9
- ✓ Should not throw while calculating prices when time shifts occur [2.80ms]
14
+ ✓ Should not throw while calculating prices when time shifts occur [1.08ms]
10
15
  
11
16
  src/test/pricing.test.ts:
12
- ✓ Should calculate costs accurately [0.19ms]
17
+ ✓ Should calculate costs accurately [0.34ms]
13
18
  
14
19
  src/test/encode-aws-url.test.ts:
15
20
  ✓ Encode AWS URL test [0.17ms]
16
21
  
17
22
  src/test/validate-disk-size-in-mb.test.ts:
18
- ✓ Disk size tests [0.32ms]
23
+ ✓ Disk size tests [2.71ms]
19
24
 
20
-  4 pass
25
+  8 pass
21
26
   0 fail
22
- 9 expect() calls
23
- Ran 4 tests across 4 files. [507.00ms]
27
+ 17 expect() calls
28
+ Ran 8 tests across 6 files. [716.00ms]
@@ -16679,7 +16679,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
16679
16679
  }
16680
16680
  }
16681
16681
  };
16682
- var VERSION = "4.0.351";
16682
+ var VERSION = "4.0.353";
16683
16683
  var isColorSupported = () => {
16684
16684
  const env = process.env || {};
16685
16685
  const isForceDisabled = "NO_COLOR" in env;
@@ -21133,6 +21133,7 @@ var makeLambdaRenderMediaPayload = async ({
21133
21133
  overwrite,
21134
21134
  jpegQuality,
21135
21135
  offthreadVideoCacheSizeInBytes,
21136
+ mediaCacheSizeInBytes,
21136
21137
  deleteAfter,
21137
21138
  colorSpace,
21138
21139
  preferLossless,
@@ -21214,6 +21215,7 @@ var makeLambdaRenderMediaPayload = async ({
21214
21215
  metadata: metadata ?? null,
21215
21216
  apiKey: apiKey ?? null,
21216
21217
  offthreadVideoThreads: offthreadVideoThreads ?? null,
21218
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
21217
21219
  storageClass: storageClass ?? null
21218
21220
  };
21219
21221
  };
@@ -21259,7 +21261,9 @@ var makeLambdaRenderStillPayload = async ({
21259
21261
  forcePathStyle,
21260
21262
  apiKey,
21261
21263
  storageClass,
21262
- requestHandler
21264
+ requestHandler,
21265
+ offthreadVideoThreads,
21266
+ mediaCacheSizeInBytes
21263
21267
  }) => {
21264
21268
  const stringifiedInputProps = serializeOrThrow(inputProps, "input-props");
21265
21269
  const serializedInputProps = await compressInputProps({
@@ -21307,7 +21311,8 @@ var makeLambdaRenderStillPayload = async ({
21307
21311
  streamed: true,
21308
21312
  forcePathStyle,
21309
21313
  apiKey: apiKey ?? null,
21310
- offthreadVideoThreads: null,
21314
+ offthreadVideoThreads: offthreadVideoThreads ?? null,
21315
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
21311
21316
  storageClass: storageClass ?? null
21312
21317
  };
21313
21318
  };
@@ -21414,7 +21419,8 @@ var renderMediaOnLambdaOptionalToRequired = (options) => {
21414
21419
  metadata: options.metadata ?? null,
21415
21420
  apiKey: options.apiKey ?? null,
21416
21421
  storageClass: options.storageClass ?? null,
21417
- requestHandler: options.requestHandler ?? null
21422
+ requestHandler: options.requestHandler ?? null,
21423
+ mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null
21418
21424
  };
21419
21425
  };
21420
21426
  var wrapped = wrapWithErrorHandling(internalRenderMediaOnLambdaRaw);
@@ -21526,7 +21532,8 @@ var renderStillOnLambda = (input) => {
21526
21532
  apiKey: input.apiKey ?? null,
21527
21533
  offthreadVideoThreads: input.offthreadVideoThreads ?? null,
21528
21534
  storageClass: input.storageClass ?? null,
21529
- requestHandler: input.requestHandler ?? null
21535
+ requestHandler: input.requestHandler ?? null,
21536
+ mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null
21530
21537
  });
21531
21538
  };
21532
21539
 
@@ -21753,7 +21760,8 @@ var getCompositionsOnLambda = async ({
21753
21760
  dumpBrowserLogs,
21754
21761
  offthreadVideoCacheSizeInBytes,
21755
21762
  forcePathStyle,
21756
- requestHandler
21763
+ requestHandler,
21764
+ mediaCacheSizeInBytes
21757
21765
  }) => {
21758
21766
  const stringifiedInputProps = serializeOrThrow(inputProps, "input-props");
21759
21767
  const serializedInputProps = await compressInputProps({
@@ -21789,7 +21797,8 @@ var getCompositionsOnLambda = async ({
21789
21797
  version: VERSION,
21790
21798
  bucketName: bucketName ?? null,
21791
21799
  offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes ?? null,
21792
- forcePathStyle: forcePathStyle ?? false
21800
+ forcePathStyle: forcePathStyle ?? false,
21801
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null
21793
21802
  },
21794
21803
  region,
21795
21804
  timeoutInTest: 120000,
@@ -17,4 +17,4 @@ export type GetCompositionsOnLambdaInput = {
17
17
  requestHandler?: RequestHandler | null;
18
18
  } & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.getCompositionsOnLambda>>;
19
19
  export type GetCompositionsOnLambdaOutput = VideoConfig[];
20
- export declare const getCompositionsOnLambda: ({ chromiumOptions, serveUrl, region, inputProps, functionName, envVariables, logLevel, timeoutInMilliseconds, forceBucketName: bucketName, dumpBrowserLogs, offthreadVideoCacheSizeInBytes, forcePathStyle, requestHandler, }: GetCompositionsOnLambdaInput) => Promise<GetCompositionsOnLambdaOutput>;
20
+ export declare const getCompositionsOnLambda: ({ chromiumOptions, serveUrl, region, inputProps, functionName, envVariables, logLevel, timeoutInMilliseconds, forceBucketName: bucketName, dumpBrowserLogs, offthreadVideoCacheSizeInBytes, forcePathStyle, requestHandler, mediaCacheSizeInBytes, }: GetCompositionsOnLambdaInput) => Promise<GetCompositionsOnLambdaOutput>;
@@ -7,7 +7,7 @@ const aws_provider_1 = require("./aws-provider");
7
7
  * @description Gets the compositions inside a Lambda function.
8
8
  * @see [Documentation](https://remotion.dev/docs/lambda/getcompositionsonlambda)
9
9
  */
10
- const getCompositionsOnLambda = async ({ chromiumOptions, serveUrl, region, inputProps, functionName, envVariables, logLevel, timeoutInMilliseconds, forceBucketName: bucketName, dumpBrowserLogs, offthreadVideoCacheSizeInBytes, forcePathStyle, requestHandler, }) => {
10
+ const getCompositionsOnLambda = async ({ chromiumOptions, serveUrl, region, inputProps, functionName, envVariables, logLevel, timeoutInMilliseconds, forceBucketName: bucketName, dumpBrowserLogs, offthreadVideoCacheSizeInBytes, forcePathStyle, requestHandler, mediaCacheSizeInBytes, }) => {
11
11
  var _a;
12
12
  const stringifiedInputProps = (0, serverless_client_1.serializeOrThrow)(inputProps, 'input-props');
13
13
  const serializedInputProps = await (0, serverless_client_1.compressInputProps)({
@@ -44,6 +44,7 @@ const getCompositionsOnLambda = async ({ chromiumOptions, serveUrl, region, inpu
44
44
  bucketName: bucketName !== null && bucketName !== void 0 ? bucketName : null,
45
45
  offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes !== null && offthreadVideoCacheSizeInBytes !== void 0 ? offthreadVideoCacheSizeInBytes : null,
46
46
  forcePathStyle: forcePathStyle !== null && forcePathStyle !== void 0 ? forcePathStyle : false,
47
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes !== null && mediaCacheSizeInBytes !== void 0 ? mediaCacheSizeInBytes : null,
47
48
  },
48
49
  region,
49
50
  timeoutInTest: 120000,
package/dist/index.d.ts CHANGED
@@ -71,7 +71,7 @@ export declare const LambdaClientInternals: {
71
71
  parseBucketName: (name: string) => {
72
72
  region: import("./regions").AwsRegion | null;
73
73
  };
74
- makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, concurrency, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, apiKey, offthreadVideoThreads, storageClass, requestHandler, }: import("./make-lambda-payload").InnerRenderMediaOnLambdaInput) => Promise<import("@remotion/serverless-client").ServerlessStartPayload<import("./aws-provider").AwsProvider>>;
74
+ makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, concurrency, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, mediaCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, apiKey, offthreadVideoThreads, storageClass, requestHandler, }: import("./make-lambda-payload").InnerRenderMediaOnLambdaInput) => Promise<import("@remotion/serverless-client").ServerlessStartPayload<import("./aws-provider").AwsProvider>>;
75
75
  renderMediaOnLambdaOptionalToRequired: (options: import("./render-media-on-lambda").RenderMediaOnLambdaInput) => import("./make-lambda-payload").InnerRenderMediaOnLambdaInput;
76
76
  internalDeleteRender: (input: import("./delete-render").DeleteRenderInput & {
77
77
  providerSpecifics: import("@remotion/serverless-client").ProviderSpecifics<import("./aws-provider").AwsProvider>;
@@ -123,7 +123,7 @@ export declare const LambdaClientInternals: {
123
123
  forcePathStyle: boolean;
124
124
  requestHandler: Provider["requestHandler"] | null;
125
125
  }) => Promise<void[]>;
126
- makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, apiKey, storageClass, requestHandler, }: import("./render-still-on-lambda").RenderStillOnLambdaNonNullInput) => Promise<import("@remotion/serverless-client").ServerlessPayloads<import("./aws-provider").AwsProvider>[import("@remotion/serverless-client").ServerlessRoutines.still]>;
126
+ makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, apiKey, storageClass, requestHandler, offthreadVideoThreads, mediaCacheSizeInBytes, }: import("./render-still-on-lambda").RenderStillOnLambdaNonNullInput) => Promise<import("@remotion/serverless-client").ServerlessPayloads<import("./aws-provider").AwsProvider>[import("@remotion/serverless-client").ServerlessRoutines.still]>;
127
127
  getRenderProgressPayload: ({ bucketName, renderId, s3OutputProvider, logLevel, forcePathStyle, }: import("./get-render-progress").GetRenderProgressInput) => import("@remotion/serverless-client").ServerlessStatusPayload<import("./aws-provider").AwsProvider>;
128
128
  innerSpeculateFunctionName: ({ diskSizeInMb, memorySizeInMb, timeoutInSeconds, }: import("./speculate-function-name").SpeculateFunctionNameInput) => string;
129
129
  };
@@ -54,6 +54,6 @@ export type InnerRenderMediaOnLambdaInput = {
54
54
  storageClass: StorageClass | null;
55
55
  requestHandler: RequestHandler | null;
56
56
  } & ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnLambda>;
57
- export declare const makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, concurrency, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, apiKey, offthreadVideoThreads, storageClass, requestHandler, }: InnerRenderMediaOnLambdaInput) => Promise<ServerlessStartPayload<AwsProvider>>;
57
+ export declare const makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, concurrency, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, mediaCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, apiKey, offthreadVideoThreads, storageClass, requestHandler, }: InnerRenderMediaOnLambdaInput) => Promise<ServerlessStartPayload<AwsProvider>>;
58
58
  export declare const getRenderProgressPayload: ({ bucketName, renderId, s3OutputProvider, logLevel, forcePathStyle, }: GetRenderProgressInput) => ServerlessStatusPayload<AwsProvider>;
59
- export declare const makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, apiKey, storageClass, requestHandler, }: RenderStillOnLambdaNonNullInput) => Promise<ServerlessPayloads<AwsProvider>[ServerlessRoutines.still]>;
59
+ export declare const makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, apiKey, storageClass, requestHandler, offthreadVideoThreads, mediaCacheSizeInBytes, }: RenderStillOnLambdaNonNullInput) => Promise<ServerlessPayloads<AwsProvider>[ServerlessRoutines.still]>;
@@ -6,7 +6,7 @@ const aws_provider_1 = require("./aws-provider");
6
6
  const serverless_client_2 = require("@remotion/serverless-client");
7
7
  const validate_lambda_codec_1 = require("./validate-lambda-codec");
8
8
  const validate_serveurl_1 = require("./validate-serveurl");
9
- const makeLambdaRenderMediaPayload = async ({ rendererFunctionName, frameRange, framesPerLambda, concurrency, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, apiKey, offthreadVideoThreads, storageClass, requestHandler, }) => {
9
+ const makeLambdaRenderMediaPayload = async ({ rendererFunctionName, frameRange, framesPerLambda, concurrency, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, mediaCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, apiKey, offthreadVideoThreads, storageClass, requestHandler, }) => {
10
10
  const actualCodec = (0, validate_lambda_codec_1.validateLambdaCodec)(codec);
11
11
  (0, validate_serveurl_1.validateServeUrl)(serveUrl);
12
12
  (0, serverless_client_1.validateDownloadBehavior)(downloadBehavior);
@@ -78,6 +78,7 @@ const makeLambdaRenderMediaPayload = async ({ rendererFunctionName, frameRange,
78
78
  metadata: metadata !== null && metadata !== void 0 ? metadata : null,
79
79
  apiKey: apiKey !== null && apiKey !== void 0 ? apiKey : null,
80
80
  offthreadVideoThreads: offthreadVideoThreads !== null && offthreadVideoThreads !== void 0 ? offthreadVideoThreads : null,
81
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes !== null && mediaCacheSizeInBytes !== void 0 ? mediaCacheSizeInBytes : null,
81
82
  storageClass: storageClass !== null && storageClass !== void 0 ? storageClass : null,
82
83
  };
83
84
  };
@@ -94,7 +95,7 @@ const getRenderProgressPayload = ({ bucketName, renderId, s3OutputProvider, logL
94
95
  };
95
96
  };
96
97
  exports.getRenderProgressPayload = getRenderProgressPayload;
97
- const makeLambdaRenderStillPayload = async ({ serveUrl, inputProps, imageFormat, envVariables, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, apiKey, storageClass, requestHandler, }) => {
98
+ const makeLambdaRenderStillPayload = async ({ serveUrl, inputProps, imageFormat, envVariables, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, apiKey, storageClass, requestHandler, offthreadVideoThreads, mediaCacheSizeInBytes, }) => {
98
99
  const stringifiedInputProps = (0, serverless_client_1.serializeOrThrow)(inputProps, 'input-props');
99
100
  const serializedInputProps = await (0, serverless_client_1.compressInputProps)({
100
101
  stringifiedInputProps,
@@ -141,7 +142,8 @@ const makeLambdaRenderStillPayload = async ({ serveUrl, inputProps, imageFormat,
141
142
  streamed: true,
142
143
  forcePathStyle,
143
144
  apiKey: apiKey !== null && apiKey !== void 0 ? apiKey : null,
144
- offthreadVideoThreads: null,
145
+ offthreadVideoThreads: offthreadVideoThreads !== null && offthreadVideoThreads !== void 0 ? offthreadVideoThreads : null,
146
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes !== null && mediaCacheSizeInBytes !== void 0 ? mediaCacheSizeInBytes : null,
145
147
  storageClass: storageClass !== null && storageClass !== void 0 ? storageClass : null,
146
148
  };
147
149
  };
@@ -59,7 +59,7 @@ const internalRenderMediaOnLambdaRaw = async (input) => {
59
59
  };
60
60
  exports.internalRenderMediaOnLambdaRaw = internalRenderMediaOnLambdaRaw;
61
61
  const renderMediaOnLambdaOptionalToRequired = (options) => {
62
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18;
62
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19;
63
63
  return {
64
64
  offthreadVideoThreads: (_a = options.offthreadVideoThreads) !== null && _a !== void 0 ? _a : null,
65
65
  audioBitrate: (_b = options.audioBitrate) !== null && _b !== void 0 ? _b : null,
@@ -111,6 +111,7 @@ const renderMediaOnLambdaOptionalToRequired = (options) => {
111
111
  apiKey: (_16 = options.apiKey) !== null && _16 !== void 0 ? _16 : null,
112
112
  storageClass: (_17 = options.storageClass) !== null && _17 !== void 0 ? _17 : null,
113
113
  requestHandler: (_18 = options.requestHandler) !== null && _18 !== void 0 ? _18 : null,
114
+ mediaCacheSizeInBytes: (_19 = options.mediaCacheSizeInBytes) !== null && _19 !== void 0 ? _19 : null,
114
115
  };
115
116
  };
116
117
  exports.renderMediaOnLambdaOptionalToRequired = renderMediaOnLambdaOptionalToRequired;
@@ -84,7 +84,7 @@ exports.internalRenderStillOnLambda = (0, serverless_client_2.wrapWithErrorHandl
84
84
  * @see [Documentation](https://remotion.dev/docs/lambda/renderstillonlambda)
85
85
  */
86
86
  const renderStillOnLambda = (input) => {
87
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
87
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
88
88
  return (0, exports.internalRenderStillOnLambda)({
89
89
  chromiumOptions: (_a = input.chromiumOptions) !== null && _a !== void 0 ? _a : {},
90
90
  composition: input.composition,
@@ -115,6 +115,7 @@ const renderStillOnLambda = (input) => {
115
115
  offthreadVideoThreads: (_v = input.offthreadVideoThreads) !== null && _v !== void 0 ? _v : null,
116
116
  storageClass: (_w = input.storageClass) !== null && _w !== void 0 ? _w : null,
117
117
  requestHandler: (_x = input.requestHandler) !== null && _x !== void 0 ? _x : null,
118
+ mediaCacheSizeInBytes: (_y = input.mediaCacheSizeInBytes) !== null && _y !== void 0 ? _y : null,
118
119
  });
119
120
  };
120
121
  exports.renderStillOnLambda = renderStillOnLambda;
@@ -51,6 +51,7 @@ const make_lambda_payload_1 = require("../make-lambda-payload");
51
51
  metadata: null,
52
52
  apiKey: null,
53
53
  offthreadVideoCacheSizeInBytes: null,
54
+ mediaCacheSizeInBytes: null,
54
55
  offthreadVideoThreads: null,
55
56
  storageClass: null,
56
57
  requestHandler: null,
@@ -107,6 +108,7 @@ const make_lambda_payload_1 = require("../make-lambda-payload");
107
108
  metadata: null,
108
109
  apiKey: null,
109
110
  offthreadVideoCacheSizeInBytes: null,
111
+ mediaCacheSizeInBytes: null,
110
112
  offthreadVideoThreads: null,
111
113
  storageClass: null,
112
114
  requestHandler: null,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda-client"
4
4
  },
5
5
  "name": "@remotion/lambda-client",
6
- "version": "4.0.351",
6
+ "version": "4.0.353",
7
7
  "main": "dist/index.js",
8
8
  "sideEffects": false,
9
9
  "author": "Jonny Burger <jonny@remotion.dev>",
@@ -26,8 +26,8 @@
26
26
  "eslint": "9.19.0",
27
27
  "next": "15.4.7",
28
28
  "@types/mime-types": "2.1.1",
29
- "@remotion/serverless-client": "4.0.351",
30
- "@remotion/eslint-config-internal": "4.0.351"
29
+ "@remotion/serverless-client": "4.0.353",
30
+ "@remotion/eslint-config-internal": "4.0.353"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
@@ -53,6 +53,7 @@ export const getCompositionsOnLambda = async ({
53
53
  offthreadVideoCacheSizeInBytes,
54
54
  forcePathStyle,
55
55
  requestHandler,
56
+ mediaCacheSizeInBytes,
56
57
  }: GetCompositionsOnLambdaInput): Promise<GetCompositionsOnLambdaOutput> => {
57
58
  const stringifiedInputProps = serializeOrThrow(inputProps, 'input-props');
58
59
 
@@ -91,6 +92,7 @@ export const getCompositionsOnLambda = async ({
91
92
  bucketName: bucketName ?? null,
92
93
  offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes ?? null,
93
94
  forcePathStyle: forcePathStyle ?? false,
95
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
94
96
  },
95
97
  region,
96
98
  timeoutInTest: 120000,
@@ -130,6 +130,7 @@ export const makeLambdaRenderMediaPayload = async ({
130
130
  overwrite,
131
131
  jpegQuality,
132
132
  offthreadVideoCacheSizeInBytes,
133
+ mediaCacheSizeInBytes,
133
134
  deleteAfter,
134
135
  colorSpace,
135
136
  preferLossless,
@@ -218,6 +219,7 @@ export const makeLambdaRenderMediaPayload = async ({
218
219
  metadata: metadata ?? null,
219
220
  apiKey: apiKey ?? null,
220
221
  offthreadVideoThreads: offthreadVideoThreads ?? null,
222
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
221
223
  storageClass: storageClass ?? null,
222
224
  };
223
225
  };
@@ -266,6 +268,8 @@ export const makeLambdaRenderStillPayload = async ({
266
268
  apiKey,
267
269
  storageClass,
268
270
  requestHandler,
271
+ offthreadVideoThreads,
272
+ mediaCacheSizeInBytes,
269
273
  }: RenderStillOnLambdaNonNullInput): Promise<
270
274
  ServerlessPayloads<AwsProvider>[ServerlessRoutines.still]
271
275
  > => {
@@ -317,7 +321,8 @@ export const makeLambdaRenderStillPayload = async ({
317
321
  streamed: true,
318
322
  forcePathStyle,
319
323
  apiKey: apiKey ?? null,
320
- offthreadVideoThreads: null,
324
+ offthreadVideoThreads: offthreadVideoThreads ?? null,
325
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
321
326
  storageClass: storageClass ?? null,
322
327
  };
323
328
  };
@@ -199,6 +199,7 @@ export const renderMediaOnLambdaOptionalToRequired = (
199
199
  apiKey: options.apiKey ?? null,
200
200
  storageClass: options.storageClass ?? null,
201
201
  requestHandler: options.requestHandler ?? null,
202
+ mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null,
202
203
  };
203
204
  };
204
205
 
@@ -204,5 +204,6 @@ export const renderStillOnLambda = (
204
204
  offthreadVideoThreads: input.offthreadVideoThreads ?? null,
205
205
  storageClass: input.storageClass ?? null,
206
206
  requestHandler: input.requestHandler ?? null,
207
+ mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null,
207
208
  });
208
209
  };
@@ -50,6 +50,7 @@ test('Should include concurrency field in payload', async () => {
50
50
  metadata: null,
51
51
  apiKey: null,
52
52
  offthreadVideoCacheSizeInBytes: null,
53
+ mediaCacheSizeInBytes: null,
53
54
  offthreadVideoThreads: null,
54
55
  storageClass: null,
55
56
  requestHandler: null,
@@ -108,6 +109,7 @@ test('Should handle null concurrency', async () => {
108
109
  metadata: null,
109
110
  apiKey: null,
110
111
  offthreadVideoCacheSizeInBytes: null,
112
+ mediaCacheSizeInBytes: null,
111
113
  offthreadVideoThreads: null,
112
114
  storageClass: null,
113
115
  requestHandler: null,
package/tsconfig.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "outDir": "dist"
6
6
  },
7
7
  "include": ["src"],
8
- "references": [{"path": "../serverless-client"}]
8
+ "references": [{"path": "../serverless-client"}, {"path": "../renderer"}]
9
9
  }