@remotion/lambda 4.0.304 → 4.0.306

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,5 +1,6 @@
1
1
  import type { BrowserSafeApis } from '@remotion/renderer/client';
2
2
  import type { AwsRegion, DeleteAfter, RuntimePreference } from '../client';
3
+ import { StorageClass } from '@aws-sdk/client-s3';
3
4
  import type { Privacy } from '@remotion/serverless';
4
5
  type LambdaCommandLineOptions = {
5
6
  help: boolean;
@@ -37,6 +38,7 @@ type LambdaCommandLineOptions = {
37
38
  ['compatible-only']: boolean;
38
39
  ['force-path-style']: boolean;
39
40
  ['runtime-preference']: RuntimePreference;
41
+ ['storage-class']: StorageClass | undefined;
40
42
  };
41
43
  export declare const parsedLambdaCli: LambdaCommandLineOptions & import("minimist").ParsedArgs;
42
44
  export declare const forceFlagProvided: boolean;
@@ -26,7 +26,7 @@ const progress_1 = require("./progress");
26
26
  exports.RENDER_COMMAND = 'render';
27
27
  const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, } = client_1.BrowserSafeApis.options;
28
28
  const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }) => {
29
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
29
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
30
30
  const serveUrl = args[0];
31
31
  if (!serveUrl) {
32
32
  log_1.Log.error({ indent: false, logLevel }, 'No serve URL passed.');
@@ -246,6 +246,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
246
246
  forcePathStyle: (_l = args_1.parsedLambdaCli['force-path-style']) !== null && _l !== void 0 ? _l : false,
247
247
  metadata: metadata !== null && metadata !== void 0 ? metadata : null,
248
248
  apiKey: (_m = args_1.parsedLambdaCli[client_1.BrowserSafeApis.options.apiKeyOption.cliFlag]) !== null && _m !== void 0 ? _m : null,
249
+ storageClass: (_o = args_1.parsedLambdaCli['storage-class']) !== null && _o !== void 0 ? _o : null,
249
250
  });
250
251
  const progressBar = cli_1.CliInternals.createOverwriteableCliOutput({
251
252
  quiet: cli_1.CliInternals.quietFlagProvided(),
@@ -25,7 +25,7 @@ const { offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scale
25
25
  const { parsedCli, determineFinalStillImageFormat, chalk, getCliOptions, formatBytes, getCompositionWithDimensionOverride, } = cli_1.CliInternals;
26
26
  exports.STILL_COMMAND = 'still';
27
27
  const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }) => {
28
- var _a, _b, _c, _d, _e;
28
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
29
29
  const serveUrl = args[0];
30
30
  if (!serveUrl) {
31
31
  log_1.Log.error({ indent: false, logLevel }, 'No serve URL passed.');
@@ -142,7 +142,7 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
142
142
  const jpegQuality = jpegQualityOption.getValue({
143
143
  commandLine: parsedCli,
144
144
  }).value;
145
- const res = await (0, lambda_client_1.renderStillOnLambda)({
145
+ const res = await lambda_client_1.LambdaClientInternals.internalRenderStillOnLambda({
146
146
  functionName,
147
147
  serveUrl,
148
148
  inputProps,
@@ -155,7 +155,7 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
155
155
  frame: stillFrame,
156
156
  jpegQuality,
157
157
  logLevel,
158
- outName,
158
+ outName: outName !== null && outName !== void 0 ? outName : null,
159
159
  chromiumOptions,
160
160
  timeoutInMilliseconds,
161
161
  scale,
@@ -173,7 +173,15 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
173
173
  fallback: `Lambda Insights: ${lambdaInsightsUrl}`,
174
174
  })} (if enabled)`);
175
175
  },
176
- deleteAfter,
176
+ deleteAfter: deleteAfter !== null && deleteAfter !== void 0 ? deleteAfter : null,
177
+ storageClass: (_f = args_1.parsedLambdaCli['storage-class']) !== null && _f !== void 0 ? _f : null,
178
+ apiKey: (_g = args_1.parsedLambdaCli[client_1.BrowserSafeApis.options.apiKeyOption.cliFlag]) !== null && _g !== void 0 ? _g : null,
179
+ downloadBehavior: { type: 'play-in-browser' },
180
+ forceBucketName: (_h = args_1.parsedLambdaCli['force-bucket-name']) !== null && _h !== void 0 ? _h : null,
181
+ forcePathStyle: (_j = args_1.parsedLambdaCli['force-path-style']) !== null && _j !== void 0 ? _j : false,
182
+ indent: false,
183
+ offthreadVideoCacheSizeInBytes,
184
+ offthreadVideoThreads: null,
177
185
  });
178
186
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Render ID: ${cli_1.CliInternals.makeHyperlink({ text: res.renderId, fallback: res.renderId, url: lambda_client_1.LambdaClientInternals.getS3RenderUrl({ bucketName: res.bucketName, renderId: res.renderId, region: (0, get_aws_region_1.getAwsRegion)() }) })}`));
179
187
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Bucket: ${cli_1.CliInternals.makeHyperlink({ text: res.bucketName, fallback: res.bucketName, url: `https://${(0, get_aws_region_1.getAwsRegion)()}.console.aws.amazon.com/s3/buckets/${res.bucketName}/?region=${(0, get_aws_region_1.getAwsRegion)()}` })}`));
@@ -8604,7 +8604,7 @@ var require_package = __commonJS((exports, module) => {
8604
8604
  url: "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
8605
8605
  },
8606
8606
  name: "@remotion/lambda",
8607
- version: "4.0.304",
8607
+ version: "4.0.306",
8608
8608
  description: "Render Remotion videos on AWS Lambda",
8609
8609
  main: "dist/index.js",
8610
8610
  sideEffects: false,
@@ -11809,7 +11809,8 @@ var renderCommand = async ({
11809
11809
  indent: false,
11810
11810
  forcePathStyle: parsedLambdaCli["force-path-style"] ?? false,
11811
11811
  metadata: metadata ?? null,
11812
- apiKey: parsedLambdaCli[BrowserSafeApis3.options.apiKeyOption.cliFlag] ?? null
11812
+ apiKey: parsedLambdaCli[BrowserSafeApis3.options.apiKeyOption.cliFlag] ?? null,
11813
+ storageClass: parsedLambdaCli["storage-class"] ?? null
11813
11814
  });
11814
11815
  const progressBar = CliInternals14.createOverwriteableCliOutput({
11815
11816
  quiet: CliInternals14.quietFlagProvided(),
@@ -12402,10 +12403,7 @@ var sitesCommand = (args, remotionRoot, logLevel, providerSpecifics) => {
12402
12403
  // src/cli/commands/still.ts
12403
12404
  import { CliInternals as CliInternals21 } from "@remotion/cli";
12404
12405
  import { ConfigInternals as ConfigInternals3 } from "@remotion/cli/config";
12405
- import {
12406
- LambdaClientInternals as LambdaClientInternals20,
12407
- renderStillOnLambda
12408
- } from "@remotion/lambda-client";
12406
+ import { LambdaClientInternals as LambdaClientInternals20 } from "@remotion/lambda-client";
12409
12407
  import {
12410
12408
  BINARY_NAME as BINARY_NAME12,
12411
12409
  DEFAULT_MAX_RETRIES as DEFAULT_MAX_RETRIES2,
@@ -12570,7 +12568,7 @@ var stillCommand = async ({
12570
12568
  const jpegQuality = jpegQualityOption2.getValue({
12571
12569
  commandLine: parsedCli
12572
12570
  }).value;
12573
- const res = await renderStillOnLambda({
12571
+ const res = await LambdaClientInternals20.internalRenderStillOnLambda({
12574
12572
  functionName,
12575
12573
  serveUrl,
12576
12574
  inputProps,
@@ -12583,7 +12581,7 @@ var stillCommand = async ({
12583
12581
  frame: stillFrame,
12584
12582
  jpegQuality,
12585
12583
  logLevel,
12586
- outName,
12584
+ outName: outName ?? null,
12587
12585
  chromiumOptions,
12588
12586
  timeoutInMilliseconds,
12589
12587
  scale,
@@ -12601,7 +12599,15 @@ var stillCommand = async ({
12601
12599
  fallback: `Lambda Insights: ${lambdaInsightsUrl}`
12602
12600
  })} (if enabled)`);
12603
12601
  },
12604
- deleteAfter
12602
+ deleteAfter: deleteAfter ?? null,
12603
+ storageClass: parsedLambdaCli["storage-class"] ?? null,
12604
+ apiKey: parsedLambdaCli[BrowserSafeApis5.options.apiKeyOption.cliFlag] ?? null,
12605
+ downloadBehavior: { type: "play-in-browser" },
12606
+ forceBucketName: parsedLambdaCli["force-bucket-name"] ?? null,
12607
+ forcePathStyle: parsedLambdaCli["force-path-style"] ?? false,
12608
+ indent: false,
12609
+ offthreadVideoCacheSizeInBytes,
12610
+ offthreadVideoThreads: null
12605
12611
  });
12606
12612
  Log.info({ indent: false, logLevel }, CliInternals21.chalk.gray(`Render ID: ${CliInternals21.makeHyperlink({ text: res.renderId, fallback: res.renderId, url: LambdaClientInternals20.getS3RenderUrl({ bucketName: res.bucketName, renderId: res.renderId, region: getAwsRegion() }) })}`));
12607
12613
  Log.info({ indent: false, logLevel }, CliInternals21.chalk.gray(`Bucket: ${CliInternals21.makeHyperlink({ text: res.bucketName, fallback: res.bucketName, url: `https://${getAwsRegion()}.console.aws.amazon.com/s3/buckets/${res.bucketName}/?region=${getAwsRegion()}` })}`));
@@ -12854,7 +12860,7 @@ var renderMediaOnLambda = NoReactInternals6.ENABLE_V5_BREAKING_CHANGES ? () => {
12854
12860
  var getRenderProgress2 = NoReactInternals6.ENABLE_V5_BREAKING_CHANGES ? () => {
12855
12861
  throw new Error("getRenderProgress() has moved to `@remotion/lambda-client`. Please import it from there.");
12856
12862
  } : deprecatedGetRenderProgress;
12857
- var renderStillOnLambda2 = NoReactInternals6.ENABLE_V5_BREAKING_CHANGES ? () => {
12863
+ var renderStillOnLambda = NoReactInternals6.ENABLE_V5_BREAKING_CHANGES ? () => {
12858
12864
  throw new Error("renderStillOnLambda() has moved to `@remotion/lambda-client`. Please import it from there.");
12859
12865
  } : deprecatedRenderStillOnLambda;
12860
12866
  var presignUrl = NoReactInternals6.ENABLE_V5_BREAKING_CHANGES ? () => {
@@ -12867,7 +12873,7 @@ export {
12867
12873
  validateWebhookSignature,
12868
12874
  simulatePermissions,
12869
12875
  renderVideoOnLambda,
12870
- renderStillOnLambda2 as renderStillOnLambda,
12876
+ renderStillOnLambda,
12871
12877
  renderMediaOnLambda,
12872
12878
  presignUrl,
12873
12879
  getUserPolicy,
package/dist/index.d.ts CHANGED
@@ -29,7 +29,10 @@ declare const getRenderProgress: (input: GetRenderProgressInput) => Promise<Rend
29
29
  /**
30
30
  * @deprecated Import this from `@remotion/lambda-client` instead
31
31
  */
32
- declare const renderStillOnLambda: (input: RenderStillOnLambdaInput) => Promise<RenderStillOnLambdaOutput>;
32
+ declare const renderStillOnLambda: (input: RenderStillOnLambdaInput & {
33
+ quality?: never;
34
+ dumpBrowserLogs?: boolean;
35
+ }) => Promise<RenderStillOnLambdaOutput>;
33
36
  /**
34
37
  * @deprecated Import this from `@remotion/lambda-client` instead
35
38
  */
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
4
4
  },
5
5
  "name": "@remotion/lambda",
6
- "version": "4.0.304",
6
+ "version": "4.0.306",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -21,13 +21,13 @@
21
21
  "@aws-sdk/lib-storage": "3.787.0",
22
22
  "@smithy/abort-controller": "4.0.1",
23
23
  "zod": "3.22.3",
24
- "@remotion/bundler": "4.0.304",
25
- "@remotion/cli": "4.0.304",
26
- "@remotion/renderer": "4.0.304",
27
- "@remotion/lambda-client": "4.0.304",
28
- "@remotion/serverless": "4.0.304",
29
- "@remotion/streaming": "4.0.304",
30
- "remotion": "4.0.304"
24
+ "@remotion/bundler": "4.0.306",
25
+ "@remotion/cli": "4.0.306",
26
+ "@remotion/lambda-client": "4.0.306",
27
+ "@remotion/renderer": "4.0.306",
28
+ "@remotion/serverless": "4.0.306",
29
+ "@remotion/streaming": "4.0.306",
30
+ "remotion": "4.0.306"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/express": "^5.0.0",
@@ -40,12 +40,12 @@
40
40
  "next": "15.2.4",
41
41
  "pureimage": "0.4.13",
42
42
  "zip-lib": "^0.7.2",
43
- "@remotion/bundler": "4.0.304",
44
- "@remotion/eslint-config-internal": "4.0.304",
45
- "@remotion/compositor-linux-arm64-gnu": "4.0.304"
43
+ "@remotion/bundler": "4.0.306",
44
+ "@remotion/compositor-linux-arm64-gnu": "4.0.306",
45
+ "@remotion/eslint-config-internal": "4.0.306"
46
46
  },
47
47
  "peerDependencies": {
48
- "@remotion/bundler": "4.0.304"
48
+ "@remotion/bundler": "4.0.306"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"
Binary file