@remotion/lambda 4.0.428 → 4.0.429

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) => {
@@ -8604,12 +8604,12 @@ 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.428",
8607
+ version: "4.0.429",
8608
8608
  description: "Render Remotion videos on AWS Lambda",
8609
8609
  main: "dist/index.js",
8610
8610
  sideEffects: false,
8611
8611
  scripts: {
8612
- formatting: "prettier src --check",
8612
+ formatting: "oxfmt src --check",
8613
8613
  lint: "eslint src",
8614
8614
  testlambda: "exit 0",
8615
8615
  test: "bun test src/test/unit",
@@ -8790,6 +8790,7 @@ import { VERSION as VERSION2 } from "remotion/version";
8790
8790
  import { bundle } from "@remotion/bundler";
8791
8791
 
8792
8792
  // src/api/create-function.ts
8793
+ import { readFileSync } from "node:fs";
8793
8794
  import {
8794
8795
  CreateLogGroupCommand,
8795
8796
  PutRetentionPolicyCommand
@@ -8806,7 +8807,6 @@ import {
8806
8807
  } from "@remotion/lambda-client";
8807
8808
  import { LOG_GROUP_PREFIX as LOG_GROUP_PREFIX3 } from "@remotion/lambda-client/constants";
8808
8809
  import { RenderInternals } from "@remotion/renderer";
8809
- import { readFileSync } from "node:fs";
8810
8810
  import { VERSION } from "remotion/version";
8811
8811
 
8812
8812
  // src/shared/get-layers.ts
@@ -9701,10 +9701,10 @@ var createFunction = async ({
9701
9701
 
9702
9702
  // src/api/upload-dir.ts
9703
9703
  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
9704
  import { createReadStream, promises as fs } from "node:fs";
9707
9705
  import path2 from "node:path";
9706
+ import { Upload } from "@aws-sdk/lib-storage";
9707
+ import { LambdaClientInternals as LambdaClientInternals4 } from "@remotion/lambda-client";
9708
9708
 
9709
9709
  // src/shared/make-s3-key.ts
9710
9710
  import path from "node:path";
@@ -10053,6 +10053,7 @@ var deployFunction = ({
10053
10053
  };
10054
10054
 
10055
10055
  // src/api/deploy-site.ts
10056
+ import fs4 from "node:fs";
10056
10057
  import { LambdaClientInternals as LambdaClientInternals6 } from "@remotion/lambda-client";
10057
10058
  import {
10058
10059
  getSitesKey as getSitesKey2,
@@ -10060,7 +10061,6 @@ import {
10060
10061
  } from "@remotion/lambda-client/constants";
10061
10062
  import { wrapWithErrorHandling as wrapWithErrorHandling2 } from "@remotion/renderer/error-handling";
10062
10063
  import { validateBucketName, validatePrivacy } from "@remotion/serverless";
10063
- import fs4 from "node:fs";
10064
10064
 
10065
10065
  // src/shared/get-s3-operations.ts
10066
10066
  var getS3DiffOperations = async ({
@@ -10291,6 +10291,7 @@ var deploySite = (args) => {
10291
10291
  };
10292
10292
 
10293
10293
  // src/api/download-media.ts
10294
+ import path5 from "node:path";
10294
10295
  import { LambdaClientInternals as LambdaClientInternals8 } from "@remotion/lambda-client";
10295
10296
  import { REMOTION_BUCKET_PREFIX as REMOTION_BUCKET_PREFIX4 } from "@remotion/lambda-client/constants";
10296
10297
  import { RenderInternals as RenderInternals3 } from "@remotion/renderer";
@@ -10298,7 +10299,6 @@ import {
10298
10299
  getExpectedOutName,
10299
10300
  getOverallProgressFromStorage
10300
10301
  } from "@remotion/serverless";
10301
- import path5 from "node:path";
10302
10302
 
10303
10303
  // src/functions/helpers/read-with-progress.ts
10304
10304
  import { GetObjectCommand } from "@aws-sdk/client-s3";
@@ -11228,6 +11228,7 @@ import { CliInternals as CliInternals11 } from "@remotion/cli";
11228
11228
  import { BINARY_NAME as BINARY_NAME8 } from "@remotion/lambda-client/constants";
11229
11229
 
11230
11230
  // src/cli/commands/quotas/increase.ts
11231
+ import { exit } from "node:process";
11231
11232
  import {
11232
11233
  GetAWSDefaultServiceQuotaCommand,
11233
11234
  GetServiceQuotaCommand,
@@ -11241,7 +11242,6 @@ import {
11241
11242
  BINARY_NAME as BINARY_NAME6,
11242
11243
  LAMBDA_CONCURRENCY_LIMIT_QUOTA
11243
11244
  } from "@remotion/lambda-client/constants";
11244
- import { exit } from "node:process";
11245
11245
  var INCREASE_SUBCOMMAND = "increase";
11246
11246
  var makeQuotaUrl = ({
11247
11247
  region,
@@ -11394,12 +11394,9 @@ var regionsCommand = (logLevel) => {
11394
11394
  };
11395
11395
 
11396
11396
  // src/cli/commands/render/render.ts
11397
+ import path7 from "path";
11397
11398
  import { CliInternals as CliInternals14 } from "@remotion/cli";
11398
11399
  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
11400
  import {
11404
11401
  getRenderProgress,
11405
11402
  LambdaClientInternals as LambdaClientInternals19
@@ -11409,7 +11406,10 @@ import {
11409
11406
  DEFAULT_MAX_RETRIES,
11410
11407
  DEFAULT_OUTPUT_PRIVACY
11411
11408
  } from "@remotion/lambda-client/constants";
11409
+ import { RenderInternals as RenderInternals5 } from "@remotion/renderer";
11410
+ import { BrowserSafeApis as BrowserSafeApis3 } from "@remotion/renderer/client";
11412
11411
  import { validatePrivacy as validatePrivacy2 } from "@remotion/serverless";
11412
+ import { NoReactInternals as NoReactInternals2 } from "remotion/no-react";
11413
11413
 
11414
11414
  // src/shared/sleep.ts
11415
11415
  var sleep = (duration) => {
@@ -11438,10 +11438,10 @@ function validateMaxRetries(maxRetries) {
11438
11438
  }
11439
11439
 
11440
11440
  // src/cli/helpers/get-webhook-custom-data.ts
11441
- import { BrowserSafeApis as BrowserSafeApis2 } from "@remotion/renderer/client";
11442
11441
  import fs5 from "node:fs";
11443
11442
  import os from "node:os";
11444
11443
  import path6 from "node:path";
11444
+ import { BrowserSafeApis as BrowserSafeApis2 } from "@remotion/renderer/client";
11445
11445
  var getWebhookCustomData = (logLevel) => {
11446
11446
  const flagName = BrowserSafeApis2.options.webhookCustomDataOption.cliFlag;
11447
11447
  const webhookFlag = parsedLambdaCli[flagName];
@@ -12109,8 +12109,8 @@ import { BINARY_NAME as BINARY_NAME11 } from "@remotion/lambda-client/constants"
12109
12109
  // src/cli/commands/sites/create.ts
12110
12110
  import { CliInternals as CliInternals16 } from "@remotion/cli";
12111
12111
  import { ConfigInternals as ConfigInternals2 } from "@remotion/cli/config";
12112
- import { BrowserSafeApis as BrowserSafeApis4 } from "@remotion/renderer/client";
12113
12112
  import { BINARY_NAME as BINARY_NAME10 } from "@remotion/lambda-client/constants";
12113
+ import { BrowserSafeApis as BrowserSafeApis4 } from "@remotion/renderer/client";
12114
12114
  import { internalGetOrCreateBucket as internalGetOrCreateBucket2 } from "@remotion/serverless";
12115
12115
  import { NoReactInternals as NoReactInternals4 } from "remotion/no-react";
12116
12116
 
@@ -12556,6 +12556,7 @@ var sitesCommand = (args, remotionRoot, logLevel, providerSpecifics) => {
12556
12556
  };
12557
12557
 
12558
12558
  // src/cli/commands/still.ts
12559
+ import path8 from "path";
12559
12560
  import { CliInternals as CliInternals21 } from "@remotion/cli";
12560
12561
  import { ConfigInternals as ConfigInternals3 } from "@remotion/cli/config";
12561
12562
  import { LambdaClientInternals as LambdaClientInternals20 } from "@remotion/lambda-client";
@@ -12567,7 +12568,6 @@ import {
12567
12568
  import { RenderInternals as RenderInternals6 } from "@remotion/renderer";
12568
12569
  import { BrowserSafeApis as BrowserSafeApis5 } from "@remotion/renderer/client";
12569
12570
  import { validatePrivacy as validatePrivacy3 } from "@remotion/serverless";
12570
- import path8 from "path";
12571
12571
  import { NoReactInternals as NoReactInternals5 } from "remotion/no-react";
12572
12572
  var {
12573
12573
  offthreadVideoCacheSizeInBytesOption: offthreadVideoCacheSizeInBytesOption2,
package/package.json CHANGED
@@ -3,12 +3,12 @@
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.429",
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
12
  "lint": "eslint src",
13
13
  "testlambda": "exit 0",
14
14
  "test": "bun test src/test/unit",
@@ -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.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",
31
+ "@remotion/bundler": "4.0.429",
32
+ "@remotion/cli": "4.0.429",
33
+ "@remotion/lambda-client": "4.0.429",
34
+ "@remotion/renderer": "4.0.429",
35
+ "@remotion/serverless": "4.0.429",
36
+ "@remotion/streaming": "4.0.429",
37
37
  "@smithy/abort-controller": "4.0.1",
38
- "remotion": "4.0.428",
38
+ "remotion": "4.0.429",
39
39
  "zod": "4.3.6"
40
40
  },
41
41
  "devDependencies": {
42
- "@remotion/bundler": "4.0.428",
42
+ "@remotion/bundler": "4.0.429",
43
43
  "@types/express": "^5.0.0",
44
44
  "express": "4.21.0",
45
- "@remotion/compositor-linux-arm64-gnu": "4.0.428",
46
- "@remotion/eslint-config-internal": "4.0.428",
45
+ "@remotion/compositor-linux-arm64-gnu": "4.0.429",
46
+ "@remotion/eslint-config-internal": "4.0.429",
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.428"
58
+ "@remotion/bundler": "4.0.429"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public"
Binary file