@remotion/lambda 4.0.297 → 4.0.298
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/dist/api/deploy-function.js +2 -6
- package/dist/esm/index.mjs +16 -10
- package/dist/shared/function-zip-path.js +7 -42
- package/package.json +12 -12
- package/remotionlambda-arm64.zip +0 -0
|
@@ -6,6 +6,7 @@ const constants_1 = require("@remotion/lambda-client/constants");
|
|
|
6
6
|
const error_handling_1 = require("@remotion/renderer/error-handling");
|
|
7
7
|
const version_1 = require("remotion/version");
|
|
8
8
|
const full_client_implementation_1 = require("../functions/full-client-implementation");
|
|
9
|
+
const function_zip_path_1 = require("../shared/function-zip-path");
|
|
9
10
|
const get_layers_1 = require("../shared/get-layers");
|
|
10
11
|
const validate_custom_role_arn_1 = require("../shared/validate-custom-role-arn");
|
|
11
12
|
const validate_retention_period_1 = require("../shared/validate-retention-period");
|
|
@@ -38,12 +39,7 @@ const internalDeployFunction = async (params) => {
|
|
|
38
39
|
const created = await params.fullClientSpecifics.createFunction({
|
|
39
40
|
createCloudWatchLogGroup: params.createCloudWatchLogGroup,
|
|
40
41
|
region: params.region,
|
|
41
|
-
|
|
42
|
-
// this will output to
|
|
43
|
-
// - dist/esm/index.mjs
|
|
44
|
-
// - dist/api/deploy-function.js
|
|
45
|
-
// It only works because both are two levels deep
|
|
46
|
-
zipFile: '../../remotionlambda-arm64.zip',
|
|
42
|
+
zipFile: function_zip_path_1.FUNCTION_ZIP_ARM64,
|
|
47
43
|
functionName,
|
|
48
44
|
accountId,
|
|
49
45
|
memorySizeInMb: params.memorySizeInMb,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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.
|
|
8607
|
+
version: "4.0.298",
|
|
8608
8608
|
description: "Render Remotion videos on AWS Lambda",
|
|
8609
8609
|
main: "dist/index.js",
|
|
8610
8610
|
sideEffects: false,
|
|
@@ -9892,6 +9892,12 @@ var awsFullClientSpecifics = {
|
|
|
9892
9892
|
createFunction
|
|
9893
9893
|
};
|
|
9894
9894
|
|
|
9895
|
+
// src/shared/function-zip-path.ts
|
|
9896
|
+
import path4 from "node:path";
|
|
9897
|
+
var b = "../";
|
|
9898
|
+
var a = "remotionlambda-arm64.zip";
|
|
9899
|
+
var FUNCTION_ZIP_ARM64 = path4.resolve(__require.resolve(`../` + b), "..", "..", a);
|
|
9900
|
+
|
|
9895
9901
|
// src/shared/validate-custom-role-arn.ts
|
|
9896
9902
|
var validateCustomRoleArn = (customRoleArn) => {
|
|
9897
9903
|
if (typeof customRoleArn !== "undefined" && typeof customRoleArn !== "string") {
|
|
@@ -9971,7 +9977,7 @@ var internalDeployFunction = async (params) => {
|
|
|
9971
9977
|
const created = await params.fullClientSpecifics.createFunction({
|
|
9972
9978
|
createCloudWatchLogGroup: params.createCloudWatchLogGroup,
|
|
9973
9979
|
region: params.region,
|
|
9974
|
-
zipFile:
|
|
9980
|
+
zipFile: FUNCTION_ZIP_ARM64,
|
|
9975
9981
|
functionName,
|
|
9976
9982
|
accountId,
|
|
9977
9983
|
memorySizeInMb: params.memorySizeInMb,
|
|
@@ -10266,7 +10272,7 @@ import {
|
|
|
10266
10272
|
getExpectedOutName,
|
|
10267
10273
|
getOverallProgressFromStorage
|
|
10268
10274
|
} from "@remotion/serverless";
|
|
10269
|
-
import
|
|
10275
|
+
import path5 from "node:path";
|
|
10270
10276
|
|
|
10271
10277
|
// src/functions/helpers/read-with-progress.ts
|
|
10272
10278
|
import { GetObjectCommand } from "@aws-sdk/client-s3";
|
|
@@ -10327,7 +10333,7 @@ var internalDownloadMedia = async (input) => {
|
|
|
10327
10333
|
if (!overallProgress.renderMetadata) {
|
|
10328
10334
|
throw new Error("Render did not finish yet");
|
|
10329
10335
|
}
|
|
10330
|
-
const outputPath =
|
|
10336
|
+
const outputPath = path5.resolve(process.cwd(), input.outPath);
|
|
10331
10337
|
RenderInternals3.ensureOutputDirectory(outputPath);
|
|
10332
10338
|
const { key, renderBucketName, customCredentials } = getExpectedOutName({
|
|
10333
10339
|
renderMetadata: overallProgress.renderMetadata,
|
|
@@ -11321,7 +11327,7 @@ import { CliInternals as CliInternals14 } from "@remotion/cli";
|
|
|
11321
11327
|
import { ConfigInternals } from "@remotion/cli/config";
|
|
11322
11328
|
import { RenderInternals as RenderInternals5 } from "@remotion/renderer";
|
|
11323
11329
|
import { BrowserSafeApis as BrowserSafeApis3 } from "@remotion/renderer/client";
|
|
11324
|
-
import
|
|
11330
|
+
import path7 from "path";
|
|
11325
11331
|
import { NoReactInternals as NoReactInternals2 } from "remotion/no-react";
|
|
11326
11332
|
import {
|
|
11327
11333
|
getRenderProgress,
|
|
@@ -11367,14 +11373,14 @@ function validateMaxRetries(maxRetries) {
|
|
|
11367
11373
|
import { BrowserSafeApis as BrowserSafeApis2 } from "@remotion/renderer/client";
|
|
11368
11374
|
import fs5 from "node:fs";
|
|
11369
11375
|
import os from "node:os";
|
|
11370
|
-
import
|
|
11376
|
+
import path6 from "node:path";
|
|
11371
11377
|
var getWebhookCustomData = (logLevel) => {
|
|
11372
11378
|
const flagName = BrowserSafeApis2.options.webhookCustomDataOption.cliFlag;
|
|
11373
11379
|
const webhookFlag = parsedLambdaCli[flagName];
|
|
11374
11380
|
if (!webhookFlag) {
|
|
11375
11381
|
return null;
|
|
11376
11382
|
}
|
|
11377
|
-
const jsonFile =
|
|
11383
|
+
const jsonFile = path6.resolve(process.cwd(), webhookFlag);
|
|
11378
11384
|
try {
|
|
11379
11385
|
if (fs5.existsSync(jsonFile)) {
|
|
11380
11386
|
const rawJsonData = fs5.readFileSync(jsonFile, "utf-8");
|
|
@@ -11916,7 +11922,7 @@ var renderCommand = async ({
|
|
|
11916
11922
|
url: newStatus.outputFile
|
|
11917
11923
|
})), CliInternals14.chalk.gray(CliInternals14.formatBytes(newStatus.outputSizeInBytes)));
|
|
11918
11924
|
if (downloadOrNothing) {
|
|
11919
|
-
const relativeOutputPath =
|
|
11925
|
+
const relativeOutputPath = path7.relative(process.cwd(), downloadOrNothing.outputPath);
|
|
11920
11926
|
Log.info({ indent: false, logLevel }, CliInternals14.chalk.blue("↓".padEnd(CliInternals14.LABEL_WIDTH)), CliInternals14.chalk.blue(CliInternals14.makeHyperlink({
|
|
11921
11927
|
url: `file://${downloadOrNothing.outputPath}`,
|
|
11922
11928
|
text: relativeOutputPath,
|
|
@@ -12408,7 +12414,7 @@ import {
|
|
|
12408
12414
|
import { RenderInternals as RenderInternals6 } from "@remotion/renderer";
|
|
12409
12415
|
import { BrowserSafeApis as BrowserSafeApis5 } from "@remotion/renderer/client";
|
|
12410
12416
|
import { validatePrivacy as validatePrivacy3 } from "@remotion/serverless";
|
|
12411
|
-
import
|
|
12417
|
+
import path8 from "path";
|
|
12412
12418
|
import { NoReactInternals as NoReactInternals5 } from "remotion/no-react";
|
|
12413
12419
|
var {
|
|
12414
12420
|
offthreadVideoCacheSizeInBytesOption: offthreadVideoCacheSizeInBytesOption2,
|
|
@@ -12621,7 +12627,7 @@ var stillCommand = async ({
|
|
|
12621
12627
|
providerSpecifics,
|
|
12622
12628
|
forcePathStyle: parsedLambdaCli["force-path-style"]
|
|
12623
12629
|
});
|
|
12624
|
-
const relativePath =
|
|
12630
|
+
const relativePath = path8.relative(process.cwd(), outputPath);
|
|
12625
12631
|
Log.info({ indent: false, logLevel }, chalk.blue("↓".padEnd(CliInternals21.LABEL_WIDTH)), chalk.blue(CliInternals21.makeHyperlink({
|
|
12626
12632
|
url: "file://" + outputPath,
|
|
12627
12633
|
text: relativePath,
|
|
@@ -1,46 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
35
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
6
|
exports.FUNCTION_ZIP_ARM64 = void 0;
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const currentdir = isESM
|
|
41
|
-
? // @ts-expect-error
|
|
42
|
-
(0, path_1.dirname)((0, url_1.fileURLToPath)(import.meta.url))
|
|
43
|
-
: eval('__dirname');
|
|
7
|
+
// Don't concatenate as we don't want Bun bundler to hardcode this
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
+
const b = '../';
|
|
44
10
|
const a = 'remotionlambda-arm64.zip';
|
|
45
|
-
exports.FUNCTION_ZIP_ARM64 =
|
|
46
|
-
console.log(exports.FUNCTION_ZIP_ARM64);
|
|
11
|
+
exports.FUNCTION_ZIP_ARM64 = node_path_1.default.resolve(require.resolve(`../` + b), '..', '..', a);
|
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.
|
|
6
|
+
"version": "4.0.298",
|
|
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.
|
|
25
|
-
"@remotion/
|
|
26
|
-
"@remotion/
|
|
27
|
-
"@remotion/
|
|
28
|
-
"
|
|
29
|
-
"remotion": "4.0.
|
|
30
|
-
"@remotion/
|
|
24
|
+
"@remotion/bundler": "4.0.298",
|
|
25
|
+
"@remotion/cli": "4.0.298",
|
|
26
|
+
"@remotion/lambda-client": "4.0.298",
|
|
27
|
+
"@remotion/renderer": "4.0.298",
|
|
28
|
+
"remotion": "4.0.298",
|
|
29
|
+
"@remotion/streaming": "4.0.298",
|
|
30
|
+
"@remotion/serverless": "4.0.298"
|
|
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.
|
|
44
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
43
|
+
"@remotion/bundler": "4.0.298",
|
|
44
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.298",
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.298"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@remotion/bundler": "4.0.
|
|
48
|
+
"@remotion/bundler": "4.0.298"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|