@remotion/lambda 4.0.428 → 4.0.430

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.
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # @remotion/lambda
2
-
2
+
3
3
  Render Remotion videos on AWS Lambda
4
-
4
+
5
5
  [![NPM Downloads](https://img.shields.io/npm/dm/@remotion/lambda.svg?style=flat&color=black&label=Downloads)](https://npmcharts.com/compare/@remotion/lambda?minimal=true)
6
-
6
+
7
7
  ## Installation
8
-
8
+
9
9
  ```bash
10
10
  npm install @remotion/lambda --save-exact
11
11
  ```
12
-
12
+
13
13
  When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
14
14
  Remove the `^` character from the version number to use the exact version.
15
-
15
+
16
16
  ## Usage
17
-
17
+
18
18
  See the [documentation](https://www.remotion.dev/docs/lambda) for more information.
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createFunction = void 0;
4
+ const node_fs_1 = require("node:fs");
4
5
  const client_cloudwatch_logs_1 = require("@aws-sdk/client-cloudwatch-logs");
5
6
  const client_lambda_1 = require("@aws-sdk/client-lambda");
6
7
  const lambda_client_1 = require("@remotion/lambda-client");
7
8
  const constants_1 = require("@remotion/lambda-client/constants");
8
9
  const renderer_1 = require("@remotion/renderer");
9
- const node_fs_1 = require("node:fs");
10
10
  const version_1 = require("remotion/version");
11
11
  const get_layers_1 = require("../shared/get-layers");
12
12
  const lambda_insights_extensions_1 = require("../shared/lambda-insights-extensions");
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.deploySite = exports.internalDeploySite = void 0;
7
+ const node_fs_1 = __importDefault(require("node:fs"));
7
8
  const lambda_client_1 = require("@remotion/lambda-client");
8
9
  const constants_1 = require("@remotion/lambda-client/constants");
9
10
  const error_handling_1 = require("@remotion/renderer/error-handling");
10
11
  const serverless_1 = require("@remotion/serverless");
11
- const node_fs_1 = __importDefault(require("node:fs"));
12
12
  const full_client_implementation_1 = require("../functions/full-client-implementation");
13
13
  const get_s3_operations_1 = require("../shared/get-s3-operations");
14
14
  const validate_site_name_1 = require("../shared/validate-site-name");
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.downloadMedia = exports.internalDownloadMedia = void 0;
7
+ const node_path_1 = __importDefault(require("node:path"));
7
8
  const lambda_client_1 = require("@remotion/lambda-client");
8
9
  const constants_1 = require("@remotion/lambda-client/constants");
9
10
  const renderer_1 = require("@remotion/renderer");
10
11
  const serverless_1 = require("@remotion/serverless");
11
- const node_path_1 = __importDefault(require("node:path"));
12
12
  const read_with_progress_1 = require("../functions/helpers/read-with-progress");
13
13
  const internalDownloadMedia = async (input) => {
14
14
  var _a, _b, _c, _d, _e;
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.uploadDir = void 0;
7
+ const node_fs_1 = require("node:fs");
8
+ const node_path_1 = __importDefault(require("node:path"));
7
9
  const lib_storage_1 = require("@aws-sdk/lib-storage");
8
10
  const lambda_client_1 = require("@remotion/lambda-client");
9
11
  const mime_types_1 = __importDefault(require("mime-types"));
10
- const node_fs_1 = require("node:fs");
11
- const node_path_1 = __importDefault(require("node:path"));
12
12
  const make_s3_key_1 = require("../shared/make-s3-key");
13
13
  async function getFiles(directory, originalDirectory, toUpload) {
14
14
  const dirents = await node_fs_1.promises.readdir(directory, { withFileTypes: true });
@@ -1,7 +1,7 @@
1
- import type { BrowserSafeApis } from '@remotion/renderer/client';
2
- import type { AwsRegion, DeleteAfter, RuntimePreference } from '../client';
3
1
  import { StorageClass } from '@aws-sdk/client-s3';
2
+ import type { BrowserSafeApis } from '@remotion/renderer/client';
4
3
  import type { Privacy } from '@remotion/serverless';
4
+ import type { AwsRegion, DeleteAfter, RuntimePreference } from '../client';
5
5
  type LambdaCommandLineOptions = {
6
6
  help: boolean;
7
7
  region: AwsRegion;
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.INCREASE_SUBCOMMAND = void 0;
4
4
  exports.quotasIncreaseCommand = quotasIncreaseCommand;
5
+ const node_process_1 = require("node:process");
5
6
  const client_service_quotas_1 = require("@aws-sdk/client-service-quotas");
6
7
  const lambda_client_1 = require("@remotion/lambda-client");
7
8
  const constants_1 = require("@remotion/lambda-client/constants");
8
- const node_process_1 = require("node:process");
9
9
  const _1 = require(".");
10
10
  const args_1 = require("../../args");
11
11
  const get_aws_region_1 = require("../../get-aws-region");
@@ -4,16 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.renderCommand = exports.RENDER_COMMAND = void 0;
7
+ const path_1 = __importDefault(require("path"));
7
8
  const cli_1 = require("@remotion/cli");
8
9
  const config_1 = require("@remotion/cli/config");
10
+ const lambda_client_1 = require("@remotion/lambda-client");
11
+ const constants_1 = require("@remotion/lambda-client/constants");
9
12
  const renderer_1 = require("@remotion/renderer");
10
13
  const client_1 = require("@remotion/renderer/client");
11
- const path_1 = __importDefault(require("path"));
14
+ const serverless_1 = require("@remotion/serverless");
12
15
  const no_react_1 = require("remotion/no-react");
13
16
  const download_media_1 = require("../../../api/download-media");
14
- const lambda_client_1 = require("@remotion/lambda-client");
15
- const constants_1 = require("@remotion/lambda-client/constants");
16
- const serverless_1 = require("@remotion/serverless");
17
17
  const sleep_1 = require("../../../shared/sleep");
18
18
  const validate_retries_1 = require("../../../shared/validate-retries");
19
19
  const args_1 = require("../../args");
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sitesCreateSubcommand = exports.SITES_CREATE_SUBCOMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
5
  const config_1 = require("@remotion/cli/config");
6
- const client_1 = require("@remotion/renderer/client");
7
6
  const constants_1 = require("@remotion/lambda-client/constants");
7
+ const client_1 = require("@remotion/renderer/client");
8
8
  const serverless_1 = require("@remotion/serverless");
9
9
  const no_react_1 = require("remotion/no-react");
10
10
  const full_client_implementation_1 = require("../../../functions/full-client-implementation");
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.stillCommand = exports.STILL_COMMAND = void 0;
7
+ const path_1 = __importDefault(require("path"));
7
8
  const cli_1 = require("@remotion/cli");
8
9
  const config_1 = require("@remotion/cli/config");
9
10
  const lambda_client_1 = require("@remotion/lambda-client");
@@ -11,7 +12,6 @@ const constants_1 = require("@remotion/lambda-client/constants");
11
12
  const renderer_1 = require("@remotion/renderer");
12
13
  const client_1 = require("@remotion/renderer/client");
13
14
  const serverless_1 = require("@remotion/serverless");
14
- const path_1 = __importDefault(require("path"));
15
15
  const no_react_1 = require("remotion/no-react");
16
16
  const download_media_1 = require("../../api/download-media");
17
17
  const validate_retries_1 = require("../../shared/validate-retries");
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getWebhookCustomData = void 0;
7
- const client_1 = require("@remotion/renderer/client");
8
7
  const node_fs_1 = __importDefault(require("node:fs"));
9
8
  const node_os_1 = __importDefault(require("node:os"));
10
9
  const node_path_1 = __importDefault(require("node:path"));
10
+ const client_1 = require("@remotion/renderer/client");
11
11
  const args_1 = require("../args");
12
12
  const log_1 = require("../log");
13
13
  const getWebhookCustomData = (logLevel) => {
@@ -8493,16 +8493,6 @@ var require_db = __commonJS((exports, module) => {
8493
8493
  };
8494
8494
  });
8495
8495
 
8496
- // ../../node_modules/.bun/mime-db@1.51.0/node_modules/mime-db/index.js
8497
- var require_mime_db = __commonJS((exports, module) => {
8498
- /*!
8499
- * mime-db
8500
- * Copyright(c) 2014 Jonathan Ong
8501
- * MIT Licensed
8502
- */
8503
- module.exports = require_db();
8504
- });
8505
-
8506
8496
  // ../../node_modules/.bun/mime-types@2.1.34/node_modules/mime-types/index.js
8507
8497
  var require_mime_types = __commonJS((exports) => {
8508
8498
  /*!
@@ -8511,7 +8501,7 @@ var require_mime_types = __commonJS((exports) => {
8511
8501
  * Copyright(c) 2015 Douglas Christopher Wilson
8512
8502
  * MIT Licensed
8513
8503
  */
8514
- var db = require_mime_db();
8504
+ var db = require_db();
8515
8505
  var extname = __require("path").extname;
8516
8506
  var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
8517
8507
  var TEXT_TYPE_REGEXP = /^text\//i;
@@ -8604,12 +8594,13 @@ var require_package = __commonJS((exports, module) => {
8604
8594
  url: "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
8605
8595
  },
8606
8596
  name: "@remotion/lambda",
8607
- version: "4.0.428",
8597
+ version: "4.0.430",
8608
8598
  description: "Render Remotion videos on AWS Lambda",
8609
8599
  main: "dist/index.js",
8610
8600
  sideEffects: false,
8611
8601
  scripts: {
8612
- formatting: "prettier src --check",
8602
+ formatting: "oxfmt src --check",
8603
+ format: "oxfmt src",
8613
8604
  lint: "eslint src",
8614
8605
  testlambda: "exit 0",
8615
8606
  test: "bun test src/test/unit",
@@ -8790,6 +8781,7 @@ import { VERSION as VERSION2 } from "remotion/version";
8790
8781
  import { bundle } from "@remotion/bundler";
8791
8782
 
8792
8783
  // src/api/create-function.ts
8784
+ import { readFileSync } from "node:fs";
8793
8785
  import {
8794
8786
  CreateLogGroupCommand,
8795
8787
  PutRetentionPolicyCommand
@@ -8806,7 +8798,6 @@ import {
8806
8798
  } from "@remotion/lambda-client";
8807
8799
  import { LOG_GROUP_PREFIX as LOG_GROUP_PREFIX3 } from "@remotion/lambda-client/constants";
8808
8800
  import { RenderInternals } from "@remotion/renderer";
8809
- import { readFileSync } from "node:fs";
8810
8801
  import { VERSION } from "remotion/version";
8811
8802
 
8812
8803
  // src/shared/get-layers.ts
@@ -9701,10 +9692,10 @@ var createFunction = async ({
9701
9692
 
9702
9693
  // src/api/upload-dir.ts
9703
9694
  var import_mime_types = __toESM(require_mime_types(), 1);
9704
- import { Upload } from "@aws-sdk/lib-storage";
9705
- import { LambdaClientInternals as LambdaClientInternals4 } from "@remotion/lambda-client";
9706
9695
  import { createReadStream, promises as fs } from "node:fs";
9707
9696
  import path2 from "node:path";
9697
+ import { Upload } from "@aws-sdk/lib-storage";
9698
+ import { LambdaClientInternals as LambdaClientInternals4 } from "@remotion/lambda-client";
9708
9699
 
9709
9700
  // src/shared/make-s3-key.ts
9710
9701
  import path from "node:path";
@@ -10053,6 +10044,7 @@ var deployFunction = ({
10053
10044
  };
10054
10045
 
10055
10046
  // src/api/deploy-site.ts
10047
+ import fs4 from "node:fs";
10056
10048
  import { LambdaClientInternals as LambdaClientInternals6 } from "@remotion/lambda-client";
10057
10049
  import {
10058
10050
  getSitesKey as getSitesKey2,
@@ -10060,7 +10052,6 @@ import {
10060
10052
  } from "@remotion/lambda-client/constants";
10061
10053
  import { wrapWithErrorHandling as wrapWithErrorHandling2 } from "@remotion/renderer/error-handling";
10062
10054
  import { validateBucketName, validatePrivacy } from "@remotion/serverless";
10063
- import fs4 from "node:fs";
10064
10055
 
10065
10056
  // src/shared/get-s3-operations.ts
10066
10057
  var getS3DiffOperations = async ({
@@ -10291,6 +10282,7 @@ var deploySite = (args) => {
10291
10282
  };
10292
10283
 
10293
10284
  // src/api/download-media.ts
10285
+ import path5 from "node:path";
10294
10286
  import { LambdaClientInternals as LambdaClientInternals8 } from "@remotion/lambda-client";
10295
10287
  import { REMOTION_BUCKET_PREFIX as REMOTION_BUCKET_PREFIX4 } from "@remotion/lambda-client/constants";
10296
10288
  import { RenderInternals as RenderInternals3 } from "@remotion/renderer";
@@ -10298,7 +10290,6 @@ import {
10298
10290
  getExpectedOutName,
10299
10291
  getOverallProgressFromStorage
10300
10292
  } from "@remotion/serverless";
10301
- import path5 from "node:path";
10302
10293
 
10303
10294
  // src/functions/helpers/read-with-progress.ts
10304
10295
  import { GetObjectCommand } from "@aws-sdk/client-s3";
@@ -11228,6 +11219,7 @@ import { CliInternals as CliInternals11 } from "@remotion/cli";
11228
11219
  import { BINARY_NAME as BINARY_NAME8 } from "@remotion/lambda-client/constants";
11229
11220
 
11230
11221
  // src/cli/commands/quotas/increase.ts
11222
+ import { exit } from "node:process";
11231
11223
  import {
11232
11224
  GetAWSDefaultServiceQuotaCommand,
11233
11225
  GetServiceQuotaCommand,
@@ -11241,7 +11233,6 @@ import {
11241
11233
  BINARY_NAME as BINARY_NAME6,
11242
11234
  LAMBDA_CONCURRENCY_LIMIT_QUOTA
11243
11235
  } from "@remotion/lambda-client/constants";
11244
- import { exit } from "node:process";
11245
11236
  var INCREASE_SUBCOMMAND = "increase";
11246
11237
  var makeQuotaUrl = ({
11247
11238
  region,
@@ -11394,12 +11385,9 @@ var regionsCommand = (logLevel) => {
11394
11385
  };
11395
11386
 
11396
11387
  // src/cli/commands/render/render.ts
11388
+ import path7 from "path";
11397
11389
  import { CliInternals as CliInternals14 } from "@remotion/cli";
11398
11390
  import { ConfigInternals } from "@remotion/cli/config";
11399
- import { RenderInternals as RenderInternals5 } from "@remotion/renderer";
11400
- import { BrowserSafeApis as BrowserSafeApis3 } from "@remotion/renderer/client";
11401
- import path7 from "path";
11402
- import { NoReactInternals as NoReactInternals2 } from "remotion/no-react";
11403
11391
  import {
11404
11392
  getRenderProgress,
11405
11393
  LambdaClientInternals as LambdaClientInternals19
@@ -11409,7 +11397,10 @@ import {
11409
11397
  DEFAULT_MAX_RETRIES,
11410
11398
  DEFAULT_OUTPUT_PRIVACY
11411
11399
  } from "@remotion/lambda-client/constants";
11400
+ import { RenderInternals as RenderInternals5 } from "@remotion/renderer";
11401
+ import { BrowserSafeApis as BrowserSafeApis3 } from "@remotion/renderer/client";
11412
11402
  import { validatePrivacy as validatePrivacy2 } from "@remotion/serverless";
11403
+ import { NoReactInternals as NoReactInternals2 } from "remotion/no-react";
11413
11404
 
11414
11405
  // src/shared/sleep.ts
11415
11406
  var sleep = (duration) => {
@@ -11438,10 +11429,10 @@ function validateMaxRetries(maxRetries) {
11438
11429
  }
11439
11430
 
11440
11431
  // src/cli/helpers/get-webhook-custom-data.ts
11441
- import { BrowserSafeApis as BrowserSafeApis2 } from "@remotion/renderer/client";
11442
11432
  import fs5 from "node:fs";
11443
11433
  import os from "node:os";
11444
11434
  import path6 from "node:path";
11435
+ import { BrowserSafeApis as BrowserSafeApis2 } from "@remotion/renderer/client";
11445
11436
  var getWebhookCustomData = (logLevel) => {
11446
11437
  const flagName = BrowserSafeApis2.options.webhookCustomDataOption.cliFlag;
11447
11438
  const webhookFlag = parsedLambdaCli[flagName];
@@ -12109,8 +12100,8 @@ import { BINARY_NAME as BINARY_NAME11 } from "@remotion/lambda-client/constants"
12109
12100
  // src/cli/commands/sites/create.ts
12110
12101
  import { CliInternals as CliInternals16 } from "@remotion/cli";
12111
12102
  import { ConfigInternals as ConfigInternals2 } from "@remotion/cli/config";
12112
- import { BrowserSafeApis as BrowserSafeApis4 } from "@remotion/renderer/client";
12113
12103
  import { BINARY_NAME as BINARY_NAME10 } from "@remotion/lambda-client/constants";
12104
+ import { BrowserSafeApis as BrowserSafeApis4 } from "@remotion/renderer/client";
12114
12105
  import { internalGetOrCreateBucket as internalGetOrCreateBucket2 } from "@remotion/serverless";
12115
12106
  import { NoReactInternals as NoReactInternals4 } from "remotion/no-react";
12116
12107
 
@@ -12556,6 +12547,7 @@ var sitesCommand = (args, remotionRoot, logLevel, providerSpecifics) => {
12556
12547
  };
12557
12548
 
12558
12549
  // src/cli/commands/still.ts
12550
+ import path8 from "path";
12559
12551
  import { CliInternals as CliInternals21 } from "@remotion/cli";
12560
12552
  import { ConfigInternals as ConfigInternals3 } from "@remotion/cli/config";
12561
12553
  import { LambdaClientInternals as LambdaClientInternals20 } from "@remotion/lambda-client";
@@ -12567,7 +12559,6 @@ import {
12567
12559
  import { RenderInternals as RenderInternals6 } from "@remotion/renderer";
12568
12560
  import { BrowserSafeApis as BrowserSafeApis5 } from "@remotion/renderer/client";
12569
12561
  import { validatePrivacy as validatePrivacy3 } from "@remotion/serverless";
12570
- import path8 from "path";
12571
12562
  import { NoReactInternals as NoReactInternals5 } from "remotion/no-react";
12572
12563
  var {
12573
12564
  offthreadVideoCacheSizeInBytesOption: offthreadVideoCacheSizeInBytesOption2,
package/package.json CHANGED
@@ -3,12 +3,13 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
4
4
  },
5
5
  "name": "@remotion/lambda",
6
- "version": "4.0.428",
6
+ "version": "4.0.430",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
10
10
  "scripts": {
11
- "formatting": "prettier src --check",
11
+ "formatting": "oxfmt src --check",
12
+ "format": "oxfmt src",
12
13
  "lint": "eslint src",
13
14
  "testlambda": "exit 0",
14
15
  "test": "bun test src/test/unit",
@@ -28,22 +29,22 @@
28
29
  "@aws-sdk/client-cloudwatch-logs": "3.986.0",
29
30
  "@aws-sdk/client-service-quotas": "3.986.0",
30
31
  "@aws-sdk/lib-storage": "3.986.0",
31
- "@remotion/bundler": "4.0.428",
32
- "@remotion/cli": "4.0.428",
33
- "@remotion/lambda-client": "4.0.428",
34
- "@remotion/renderer": "4.0.428",
35
- "@remotion/serverless": "4.0.428",
36
- "@remotion/streaming": "4.0.428",
32
+ "@remotion/bundler": "4.0.429",
33
+ "@remotion/cli": "4.0.429",
34
+ "@remotion/lambda-client": "4.0.429",
35
+ "@remotion/renderer": "4.0.429",
36
+ "@remotion/serverless": "4.0.429",
37
+ "@remotion/streaming": "4.0.429",
37
38
  "@smithy/abort-controller": "4.0.1",
38
- "remotion": "4.0.428",
39
+ "remotion": "4.0.429",
39
40
  "zod": "4.3.6"
40
41
  },
41
42
  "devDependencies": {
42
- "@remotion/bundler": "4.0.428",
43
+ "@remotion/bundler": "4.0.429",
43
44
  "@types/express": "^5.0.0",
44
45
  "express": "4.21.0",
45
- "@remotion/compositor-linux-arm64-gnu": "4.0.428",
46
- "@remotion/eslint-config-internal": "4.0.428",
46
+ "@remotion/compositor-linux-arm64-gnu": "4.0.429",
47
+ "@remotion/eslint-config-internal": "4.0.429",
47
48
  "mime-types": "2.1.34",
48
49
  "@types/mime-types": "2.1.1",
49
50
  "@types/minimist": "1.2.2",
@@ -55,7 +56,7 @@
55
56
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
56
57
  },
57
58
  "peerDependencies": {
58
- "@remotion/bundler": "4.0.428"
59
+ "@remotion/bundler": "4.0.429"
59
60
  },
60
61
  "publishConfig": {
61
62
  "access": "public"
Binary file