@remotion/lambda 4.0.425 → 4.0.426

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.
@@ -24,6 +24,7 @@ type OptionalParameters = {
24
24
  keyboardShortcutsEnabled?: boolean;
25
25
  askAIEnabled?: boolean;
26
26
  experimentalClientSideRenderingEnabled?: boolean;
27
+ rspack?: boolean;
27
28
  };
28
29
  privacy: 'public' | 'no-acl';
29
30
  gitSource: GitSource | null;
@@ -14,7 +14,7 @@ const get_s3_operations_1 = require("../shared/get-s3-operations");
14
14
  const validate_site_name_1 = require("../shared/validate-site-name");
15
15
  const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options, region, privacy, gitSource, throwIfSiteExists, providerSpecifics, forcePathStyle, fullClientSpecifics, requestHandler, }) => {
16
16
  var _a, _b;
17
- var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
17
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18
18
  lambda_client_1.LambdaClientInternals.validateAwsRegion(region);
19
19
  (0, serverless_1.validateBucketName)({
20
20
  bucketName,
@@ -68,6 +68,7 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
68
68
  experimentalClientSideRenderingEnabled: (_k = options === null || options === void 0 ? void 0 : options.experimentalClientSideRenderingEnabled) !== null && _k !== void 0 ? _k : false,
69
69
  keyboardShortcutsEnabled: (_l = options === null || options === void 0 ? void 0 : options.keyboardShortcutsEnabled) !== null && _l !== void 0 ? _l : true,
70
70
  renderDefaults: null,
71
+ rspack: (_m = options === null || options === void 0 ? void 0 : options.rspack) !== null && _m !== void 0 ? _m : false,
71
72
  }),
72
73
  ]);
73
74
  if (throwIfSiteExists && files.length > 0) {
@@ -96,7 +97,7 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
96
97
  bucket: bucketName,
97
98
  region,
98
99
  localDir: bundled,
99
- onProgress: (_m = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _m !== void 0 ? _m : (() => undefined),
100
+ onProgress: (_o = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _o !== void 0 ? _o : (() => undefined),
100
101
  keyPrefix: subFolder,
101
102
  privacy: privacy !== null && privacy !== void 0 ? privacy : 'public',
102
103
  toUpload,
@@ -15,8 +15,6 @@ type LambdaCommandLineOptions = {
15
15
  f: boolean;
16
16
  ['default-only']: boolean;
17
17
  ['site-name']: string | undefined;
18
- ['disable-chunk-optimization']: boolean;
19
- ['save-browser-logs']: boolean;
20
18
  ['disable-cloudwatch']: boolean;
21
19
  [BrowserSafeApis.options.enableLambdaInsights.cliFlag]: boolean;
22
20
  ['max-retries']?: number;
package/dist/cli/args.js CHANGED
@@ -2,8 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.forceFlagProvided = exports.parsedLambdaCli = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
+ const LambdaBooleanFlags = [
6
+ ...cli_1.CliInternals.BooleanFlags,
7
+ 'force',
8
+ 'disable-cloudwatch',
9
+ 'enable-lambda-insights',
10
+ 'yes',
11
+ 'y',
12
+ 'default-only',
13
+ 'compatible-only',
14
+ 'force-path-style',
15
+ ];
5
16
  exports.parsedLambdaCli = cli_1.CliInternals.minimist(process.argv.slice(2), {
6
- boolean: cli_1.CliInternals.BooleanFlags,
17
+ boolean: LambdaBooleanFlags,
7
18
  string: ['_'],
8
19
  });
9
20
  exports.forceFlagProvided = exports.parsedLambdaCli.f ||
@@ -24,7 +24,7 @@ const quit_1 = require("../../helpers/quit");
24
24
  const log_1 = require("../../log");
25
25
  const progress_1 = require("./progress");
26
26
  exports.RENDER_COMMAND = 'render';
27
- const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, mediaCacheSizeInBytesOption, darkModeOption, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, } = client_1.BrowserSafeApis.options;
27
+ const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, mediaCacheSizeInBytesOption, darkModeOption, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, audioCodecOption, videoCodecOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, } = client_1.BrowserSafeApis.options;
28
28
  const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }) => {
29
29
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
30
30
  const serveUrl = args[0];
@@ -36,11 +36,23 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
36
36
  (0, quit_1.quit)(1);
37
37
  }
38
38
  const region = (0, get_aws_region_1.getAwsRegion)();
39
- const { envVariables, frameRange, inputProps, height, width, fps, durationInFrames, } = cli_1.CliInternals.getCliOptions({
39
+ const { envVariables, frameRange, inputProps } = cli_1.CliInternals.getCliOptions({
40
40
  isStill: false,
41
41
  logLevel,
42
42
  indent: false,
43
43
  });
44
+ const height = overrideHeightOption.getValue({
45
+ commandLine: cli_1.CliInternals.parsedCli,
46
+ }).value;
47
+ const width = overrideWidthOption.getValue({
48
+ commandLine: cli_1.CliInternals.parsedCli,
49
+ }).value;
50
+ const fps = overrideFpsOption.getValue({
51
+ commandLine: cli_1.CliInternals.parsedCli,
52
+ }).value;
53
+ const durationInFrames = overrideDurationOption.getValue({
54
+ commandLine: cli_1.CliInternals.parsedCli,
55
+ }).value;
44
56
  const pixelFormat = pixelFormatOption.getValue({
45
57
  commandLine: cli_1.CliInternals.parsedCli,
46
58
  }).value;
@@ -134,6 +146,9 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
134
146
  const darkMode = darkModeOption.getValue({
135
147
  commandLine: cli_1.CliInternals.parsedCli,
136
148
  }).value;
149
+ const audioCodec = audioCodecOption.getValue({
150
+ commandLine: cli_1.CliInternals.parsedCli,
151
+ }).value;
137
152
  const chromiumOptions = {
138
153
  disableWebSecurity,
139
154
  enableMultiProcessOnLinux,
@@ -200,7 +215,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
200
215
  }
201
216
  const outName = args_1.parsedLambdaCli['out-name'];
202
217
  const downloadName = (_a = args[2]) !== null && _a !== void 0 ? _a : null;
203
- const { value: codec, source: reason } = client_1.BrowserSafeApis.options.videoCodecOption.getValue({
218
+ const { value: codec, source: reason } = videoCodecOption.getValue({
204
219
  commandLine: cli_1.CliInternals.parsedCli,
205
220
  }, {
206
221
  downloadName,
@@ -267,7 +282,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
267
282
  : null,
268
283
  rendererFunctionName: (_k = args_1.parsedLambdaCli['renderer-function-name']) !== null && _k !== void 0 ? _k : null,
269
284
  forceBucketName: (_l = args_1.parsedLambdaCli['force-bucket-name']) !== null && _l !== void 0 ? _l : null,
270
- audioCodec: cli_1.CliInternals.parsedCli[client_1.BrowserSafeApis.options.audioCodecOption.cliFlag],
285
+ audioCodec,
271
286
  deleteAfter: deleteAfter !== null && deleteAfter !== void 0 ? deleteAfter : null,
272
287
  colorSpace,
273
288
  downloadBehavior: { type: 'play-in-browser' },
@@ -153,7 +153,9 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementatio
153
153
  };
154
154
  updateProgress(false);
155
155
  },
156
- enableCaching: config_1.ConfigInternals.getWebpackCaching(),
156
+ enableCaching: client_1.BrowserSafeApis.options.bundleCacheOption.getValue({
157
+ commandLine: cli_1.CliInternals.parsedCli,
158
+ }).value,
157
159
  webpackOverride: (_c = config_1.ConfigInternals.getWebpackOverrideFn()) !== null && _c !== void 0 ? _c : ((f) => f),
158
160
  bypassBucketNameValidation: Boolean(args_1.parsedLambdaCli['force-bucket-name']),
159
161
  askAIEnabled,
@@ -21,7 +21,7 @@ const find_function_name_1 = require("../helpers/find-function-name");
21
21
  const quit_1 = require("../helpers/quit");
22
22
  const log_1 = require("../log");
23
23
  const progress_1 = require("./render/progress");
24
- const { offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, deleteAfterOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, mediaCacheSizeInBytesOption, darkModeOption, browserExecutableOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, } = client_1.BrowserSafeApis.options;
24
+ const { offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, deleteAfterOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, mediaCacheSizeInBytesOption, darkModeOption, browserExecutableOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, } = client_1.BrowserSafeApis.options;
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, }) => {
@@ -34,11 +34,19 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
34
34
  log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.STILL_COMMAND} <serve-url> <composition-id> [output-location]`);
35
35
  (0, quit_1.quit)(1);
36
36
  }
37
- const { envVariables, inputProps, stillFrame, height, width, fps, durationInFrames, } = getCliOptions({
37
+ const { envVariables, inputProps, stillFrame } = getCliOptions({
38
38
  isStill: true,
39
39
  logLevel,
40
40
  indent: false,
41
41
  });
42
+ const height = overrideHeightOption.getValue({
43
+ commandLine: parsedCli,
44
+ }).value;
45
+ const width = overrideWidthOption.getValue({ commandLine: parsedCli }).value;
46
+ const fps = overrideFpsOption.getValue({ commandLine: parsedCli }).value;
47
+ const durationInFrames = overrideDurationOption.getValue({
48
+ commandLine: parsedCli,
49
+ }).value;
42
50
  const browserExecutable = browserExecutableOption.getValue({
43
51
  commandLine: parsedCli,
44
52
  }).value;
@@ -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.425",
8607
+ version: "4.0.426",
8608
8608
  description: "Render Remotion videos on AWS Lambda",
8609
8609
  main: "dist/index.js",
8610
8610
  sideEffects: false,
@@ -10205,7 +10205,8 @@ var mandatoryDeploySite = async ({
10205
10205
  audioLatencyHint: null,
10206
10206
  experimentalClientSideRenderingEnabled: options?.experimentalClientSideRenderingEnabled ?? false,
10207
10207
  keyboardShortcutsEnabled: options?.keyboardShortcutsEnabled ?? true,
10208
- renderDefaults: null
10208
+ renderDefaults: null,
10209
+ rspack: options?.rspack ?? false
10209
10210
  })
10210
10211
  ]);
10211
10212
  if (throwIfSiteExists && files.length > 0) {
@@ -10559,8 +10560,19 @@ import {
10559
10560
 
10560
10561
  // src/cli/args.ts
10561
10562
  import { CliInternals } from "@remotion/cli";
10563
+ var LambdaBooleanFlags = [
10564
+ ...CliInternals.BooleanFlags,
10565
+ "force",
10566
+ "disable-cloudwatch",
10567
+ "enable-lambda-insights",
10568
+ "yes",
10569
+ "y",
10570
+ "default-only",
10571
+ "compatible-only",
10572
+ "force-path-style"
10573
+ ];
10562
10574
  var parsedLambdaCli = CliInternals.minimist(process.argv.slice(2), {
10563
- boolean: CliInternals.BooleanFlags,
10575
+ boolean: LambdaBooleanFlags,
10564
10576
  string: ["_"]
10565
10577
  });
10566
10578
  var forceFlagProvided = parsedLambdaCli.f || parsedLambdaCli.force || parsedLambdaCli.yes || parsedLambdaCli.y;
@@ -11635,7 +11647,13 @@ var {
11635
11647
  proResProfileOption,
11636
11648
  userAgentOption: userAgentOption2,
11637
11649
  disableWebSecurityOption: disableWebSecurityOption2,
11638
- ignoreCertificateErrorsOption: ignoreCertificateErrorsOption2
11650
+ ignoreCertificateErrorsOption: ignoreCertificateErrorsOption2,
11651
+ audioCodecOption,
11652
+ videoCodecOption,
11653
+ overrideHeightOption,
11654
+ overrideWidthOption,
11655
+ overrideFpsOption,
11656
+ overrideDurationOption
11639
11657
  } = BrowserSafeApis3.options;
11640
11658
  var renderCommand = async ({
11641
11659
  args,
@@ -11652,19 +11670,23 @@ var renderCommand = async ({
11652
11670
  quit(1);
11653
11671
  }
11654
11672
  const region = getAwsRegion();
11655
- const {
11656
- envVariables,
11657
- frameRange,
11658
- inputProps,
11659
- height,
11660
- width,
11661
- fps,
11662
- durationInFrames
11663
- } = CliInternals14.getCliOptions({
11673
+ const { envVariables, frameRange, inputProps } = CliInternals14.getCliOptions({
11664
11674
  isStill: false,
11665
11675
  logLevel,
11666
11676
  indent: false
11667
11677
  });
11678
+ const height = overrideHeightOption.getValue({
11679
+ commandLine: CliInternals14.parsedCli
11680
+ }).value;
11681
+ const width = overrideWidthOption.getValue({
11682
+ commandLine: CliInternals14.parsedCli
11683
+ }).value;
11684
+ const fps = overrideFpsOption.getValue({
11685
+ commandLine: CliInternals14.parsedCli
11686
+ }).value;
11687
+ const durationInFrames = overrideDurationOption.getValue({
11688
+ commandLine: CliInternals14.parsedCli
11689
+ }).value;
11668
11690
  const pixelFormat = pixelFormatOption.getValue({
11669
11691
  commandLine: CliInternals14.parsedCli
11670
11692
  }).value;
@@ -11758,6 +11780,9 @@ var renderCommand = async ({
11758
11780
  const darkMode = darkModeOption2.getValue({
11759
11781
  commandLine: CliInternals14.parsedCli
11760
11782
  }).value;
11783
+ const audioCodec = audioCodecOption.getValue({
11784
+ commandLine: CliInternals14.parsedCli
11785
+ }).value;
11761
11786
  const chromiumOptions = {
11762
11787
  disableWebSecurity,
11763
11788
  enableMultiProcessOnLinux,
@@ -11827,7 +11852,7 @@ var renderCommand = async ({
11827
11852
  }
11828
11853
  const outName = parsedLambdaCli["out-name"];
11829
11854
  const downloadName = args[2] ?? null;
11830
- const { value: codec, source: reason } = BrowserSafeApis3.options.videoCodecOption.getValue({
11855
+ const { value: codec, source: reason } = videoCodecOption.getValue({
11831
11856
  commandLine: CliInternals14.parsedCli
11832
11857
  }, {
11833
11858
  downloadName,
@@ -11892,7 +11917,7 @@ var renderCommand = async ({
11892
11917
  } : null,
11893
11918
  rendererFunctionName: parsedLambdaCli["renderer-function-name"] ?? null,
11894
11919
  forceBucketName: parsedLambdaCli["force-bucket-name"] ?? null,
11895
- audioCodec: CliInternals14.parsedCli[BrowserSafeApis3.options.audioCodecOption.cliFlag],
11920
+ audioCodec,
11896
11921
  deleteAfter: deleteAfter ?? null,
11897
11922
  colorSpace,
11898
11923
  downloadBehavior: { type: "play-in-browser" },
@@ -12292,7 +12317,9 @@ var sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementation)
12292
12317
  };
12293
12318
  updateProgress(false);
12294
12319
  },
12295
- enableCaching: ConfigInternals2.getWebpackCaching(),
12320
+ enableCaching: BrowserSafeApis4.options.bundleCacheOption.getValue({
12321
+ commandLine: CliInternals16.parsedCli
12322
+ }).value,
12296
12323
  webpackOverride: ConfigInternals2.getWebpackOverrideFn() ?? ((f) => f),
12297
12324
  bypassBucketNameValidation: Boolean(parsedLambdaCli["force-bucket-name"]),
12298
12325
  askAIEnabled,
@@ -12552,7 +12579,11 @@ var {
12552
12579
  browserExecutableOption: browserExecutableOption2,
12553
12580
  userAgentOption: userAgentOption3,
12554
12581
  disableWebSecurityOption: disableWebSecurityOption3,
12555
- ignoreCertificateErrorsOption: ignoreCertificateErrorsOption3
12582
+ ignoreCertificateErrorsOption: ignoreCertificateErrorsOption3,
12583
+ overrideHeightOption: overrideHeightOption2,
12584
+ overrideWidthOption: overrideWidthOption2,
12585
+ overrideFpsOption: overrideFpsOption2,
12586
+ overrideDurationOption: overrideDurationOption2
12556
12587
  } = BrowserSafeApis5.options;
12557
12588
  var {
12558
12589
  parsedCli,
@@ -12577,19 +12608,19 @@ var stillCommand = async ({
12577
12608
  Log.info({ indent: false, logLevel }, `${BINARY_NAME12} ${STILL_COMMAND} <serve-url> <composition-id> [output-location]`);
12578
12609
  quit(1);
12579
12610
  }
12580
- const {
12581
- envVariables,
12582
- inputProps,
12583
- stillFrame,
12584
- height,
12585
- width,
12586
- fps,
12587
- durationInFrames
12588
- } = getCliOptions({
12611
+ const { envVariables, inputProps, stillFrame } = getCliOptions({
12589
12612
  isStill: true,
12590
12613
  logLevel,
12591
12614
  indent: false
12592
12615
  });
12616
+ const height = overrideHeightOption2.getValue({
12617
+ commandLine: parsedCli
12618
+ }).value;
12619
+ const width = overrideWidthOption2.getValue({ commandLine: parsedCli }).value;
12620
+ const fps = overrideFpsOption2.getValue({ commandLine: parsedCli }).value;
12621
+ const durationInFrames = overrideDurationOption2.getValue({
12622
+ commandLine: parsedCli
12623
+ }).value;
12593
12624
  const browserExecutable = browserExecutableOption2.getValue({
12594
12625
  commandLine: parsedCli
12595
12626
  }).value;
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.425",
6
+ "version": "4.0.426",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -28,22 +28,22 @@
28
28
  "@aws-sdk/client-cloudwatch-logs": "3.986.0",
29
29
  "@aws-sdk/client-service-quotas": "3.986.0",
30
30
  "@aws-sdk/lib-storage": "3.986.0",
31
- "@remotion/bundler": "4.0.425",
32
- "@remotion/cli": "4.0.425",
33
- "@remotion/lambda-client": "4.0.425",
34
- "@remotion/renderer": "4.0.425",
35
- "@remotion/serverless": "4.0.425",
36
- "@remotion/streaming": "4.0.425",
31
+ "@remotion/bundler": "4.0.426",
32
+ "@remotion/cli": "4.0.426",
33
+ "@remotion/lambda-client": "4.0.426",
34
+ "@remotion/renderer": "4.0.426",
35
+ "@remotion/serverless": "4.0.426",
36
+ "@remotion/streaming": "4.0.426",
37
37
  "@smithy/abort-controller": "4.0.1",
38
- "remotion": "4.0.425",
39
- "zod": "3.22.3"
38
+ "remotion": "4.0.426",
39
+ "zod": "4.3.6"
40
40
  },
41
41
  "devDependencies": {
42
- "@remotion/bundler": "4.0.425",
42
+ "@remotion/bundler": "4.0.426",
43
43
  "@types/express": "^5.0.0",
44
44
  "express": "4.21.0",
45
- "@remotion/compositor-linux-arm64-gnu": "4.0.425",
46
- "@remotion/eslint-config-internal": "4.0.425",
45
+ "@remotion/compositor-linux-arm64-gnu": "4.0.426",
46
+ "@remotion/eslint-config-internal": "4.0.426",
47
47
  "mime-types": "2.1.34",
48
48
  "@types/mime-types": "2.1.1",
49
49
  "@types/minimist": "1.2.2",
@@ -55,7 +55,7 @@
55
55
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
56
56
  },
57
57
  "peerDependencies": {
58
- "@remotion/bundler": "4.0.425"
58
+ "@remotion/bundler": "4.0.426"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public"
Binary file