@remotion/lambda 4.0.83 → 4.0.85
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 +1 -1
- package/dist/api/deploy-site.js +1 -1
- package/dist/api/render-media-on-lambda.d.ts +0 -1
- package/dist/api/render-media-on-lambda.js +2 -2
- package/dist/api/render-still-on-lambda.js +1 -1
- package/dist/cli/commands/quotas/list.js +1 -1
- package/dist/client.d.ts +4 -2
- package/dist/client.js +3 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +4 -1
- package/dist/functions/helpers/expected-out-name.js +2 -2
- package/dist/shared/invoke-webhook.d.ts +0 -2
- package/dist/shared/validate-outname.js +3 -3
- package/package.json +10 -10
- package/remotionlambda-arm64.zip +0 -0
|
@@ -73,4 +73,4 @@ const deployFunctionRaw = async (params) => {
|
|
|
73
73
|
* @param params.diskSizeInMb The amount of storage the function should be allocated. The higher, the longer videos you can render. Default 512.
|
|
74
74
|
* @returns {Promise<DeployFunctionOutput>} An object that contains the `functionName` property
|
|
75
75
|
*/
|
|
76
|
-
exports.deployFunction = pure_1.
|
|
76
|
+
exports.deployFunction = pure_1.NoReactAPIs.wrapWithErrorHandling(deployFunctionRaw);
|
package/dist/api/deploy-site.js
CHANGED
|
@@ -106,4 +106,4 @@ const deploySiteRaw = async ({ bucketName, entryPoint, siteName, options, region
|
|
|
106
106
|
* @param {string} params.siteName The name of the folder in which the project gets deployed to.
|
|
107
107
|
* @param {object} params.options Further options, see documentation page for this function.
|
|
108
108
|
*/
|
|
109
|
-
exports.deploySite = pure_1.
|
|
109
|
+
exports.deploySite = pure_1.NoReactAPIs.wrapWithErrorHandling(deploySiteRaw);
|
|
@@ -34,7 +34,6 @@ export type RenderMediaOnLambdaInput = {
|
|
|
34
34
|
chromiumOptions?: Omit<ChromiumOptions, 'enableMultiProcessOnLinux'>;
|
|
35
35
|
scale?: number;
|
|
36
36
|
everyNthFrame?: number;
|
|
37
|
-
numberOfGifLoops?: number | null;
|
|
38
37
|
concurrencyPerLambda?: number;
|
|
39
38
|
downloadBehavior?: DownloadBehavior | null;
|
|
40
39
|
muted?: boolean;
|
|
@@ -69,7 +69,7 @@ exports.internalRenderMediaOnLambdaRaw = internalRenderMediaOnLambdaRaw;
|
|
|
69
69
|
*/
|
|
70
70
|
const renderMediaOnLambda = (options) => {
|
|
71
71
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10;
|
|
72
|
-
const wrapped = pure_1.
|
|
72
|
+
const wrapped = pure_1.NoReactAPIs.wrapWithErrorHandling(exports.internalRenderMediaOnLambdaRaw);
|
|
73
73
|
if (options.quality) {
|
|
74
74
|
throw new Error('quality has been renamed to jpegQuality. Please rename the option.');
|
|
75
75
|
}
|
|
@@ -97,7 +97,7 @@ const renderMediaOnLambda = (options) => {
|
|
|
97
97
|
logLevel: (_s = options.logLevel) !== null && _s !== void 0 ? _s : 'info',
|
|
98
98
|
maxRetries: (_t = options.maxRetries) !== null && _t !== void 0 ? _t : 1,
|
|
99
99
|
muted: (_u = options.muted) !== null && _u !== void 0 ? _u : false,
|
|
100
|
-
numberOfGifLoops: (_v = options.numberOfGifLoops) !== null && _v !== void 0 ? _v :
|
|
100
|
+
numberOfGifLoops: (_v = options.numberOfGifLoops) !== null && _v !== void 0 ? _v : null,
|
|
101
101
|
offthreadVideoCacheSizeInBytes: (_w = options.offthreadVideoCacheSizeInBytes) !== null && _w !== void 0 ? _w : null,
|
|
102
102
|
outName: (_x = options.outName) !== null && _x !== void 0 ? _x : null,
|
|
103
103
|
overwrite: (_y = options.overwrite) !== null && _y !== void 0 ? _y : false,
|
|
@@ -74,4 +74,4 @@ const renderStillOnLambdaRaw = async (input) => {
|
|
|
74
74
|
* @param params.privacy Whether the item in the S3 bucket should be public. Possible values: `"private"` and `"public"`
|
|
75
75
|
* @returns {Promise<RenderStillOnLambdaOutput>} See documentation for exact response structure.
|
|
76
76
|
*/
|
|
77
|
-
exports.renderStillOnLambda = pure_1.
|
|
77
|
+
exports.renderStillOnLambda = pure_1.NoReactAPIs.wrapWithErrorHandling(renderStillOnLambdaRaw);
|
|
@@ -59,6 +59,6 @@ const quotasListCommand = async (logLevel) => {
|
|
|
59
59
|
else {
|
|
60
60
|
log_1.Log.info(`Burst concurrency: ${burstDefault}, but only ${effectiveBurstConcurrency} effective because of concurrency limit`);
|
|
61
61
|
}
|
|
62
|
-
log_1.Log.info(cli_1.CliInternals.chalk.gray('The maximum amount of
|
|
62
|
+
log_1.Log.info(cli_1.CliInternals.chalk.gray('The maximum amount of concurrency increase in 10 seconds'));
|
|
63
63
|
};
|
|
64
64
|
exports.quotasListCommand = quotasListCommand;
|
package/dist/client.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { DeleteRenderInput } from './api/delete-render';
|
|
2
|
+
import { deleteRender } from './api/delete-render';
|
|
1
3
|
import { getCompositionsOnLambda } from './api/get-compositions-on-lambda';
|
|
2
4
|
import { getFunctions } from './api/get-functions';
|
|
3
5
|
import type { GetRenderProgressInput } from './api/get-render-progress';
|
|
@@ -18,5 +20,5 @@ import type { RenderProgress } from './shared/constants';
|
|
|
18
20
|
import type { WebhookPayload } from './shared/invoke-webhook';
|
|
19
21
|
export { getAwsClient, GetAwsClientInput, GetAwsClientOutput, } from './api/get-aws-client';
|
|
20
22
|
export { CustomCredentials } from './shared/aws-clients';
|
|
21
|
-
export { renderVideoOnLambda, renderMediaOnLambda, renderStillOnLambda, getRenderProgress, getFunctions, validateWebhookSignature, getCompositionsOnLambda, presignUrl, getSites, speculateFunctionName, DeleteAfter, };
|
|
22
|
-
export type { AwsRegion, RenderProgress, SpeculateFunctionNameInput, WebhookPayload, PresignUrlInput, RenderStillOnLambdaInput, RenderStillOnLambdaOutput, RenderMediaOnLambdaInput, RenderMediaOnLambdaOutput, GetRenderProgressInput, };
|
|
23
|
+
export { renderVideoOnLambda, renderMediaOnLambda, renderStillOnLambda, getRenderProgress, getFunctions, validateWebhookSignature, getCompositionsOnLambda, presignUrl, getSites, speculateFunctionName, DeleteAfter, deleteRender, };
|
|
24
|
+
export type { AwsRegion, RenderProgress, SpeculateFunctionNameInput, WebhookPayload, PresignUrlInput, RenderStillOnLambdaInput, RenderStillOnLambdaOutput, RenderMediaOnLambdaInput, RenderMediaOnLambdaOutput, GetRenderProgressInput, DeleteRenderInput, };
|
package/dist/client.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.speculateFunctionName = exports.getSites = exports.presignUrl = exports.getCompositionsOnLambda = exports.validateWebhookSignature = exports.getFunctions = exports.getRenderProgress = exports.renderStillOnLambda = exports.renderMediaOnLambda = exports.renderVideoOnLambda = exports.getAwsClient = void 0;
|
|
3
|
+
exports.deleteRender = exports.speculateFunctionName = exports.getSites = exports.presignUrl = exports.getCompositionsOnLambda = exports.validateWebhookSignature = exports.getFunctions = exports.getRenderProgress = exports.renderStillOnLambda = exports.renderMediaOnLambda = exports.renderVideoOnLambda = exports.getAwsClient = void 0;
|
|
4
|
+
const delete_render_1 = require("./api/delete-render");
|
|
5
|
+
Object.defineProperty(exports, "deleteRender", { enumerable: true, get: function () { return delete_render_1.deleteRender; } });
|
|
4
6
|
const get_compositions_on_lambda_1 = require("./api/get-compositions-on-lambda");
|
|
5
7
|
Object.defineProperty(exports, "getCompositionsOnLambda", { enumerable: true, get: function () { return get_compositions_on_lambda_1.getCompositionsOnLambda; } });
|
|
6
8
|
const get_functions_1 = require("./api/get-functions");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getExpectedOutName = exports.getCredentialsFromOutName = void 0;
|
|
4
|
-
const
|
|
4
|
+
const pure_1 = require("@remotion/renderer/pure");
|
|
5
5
|
const defaults_1 = require("../../defaults");
|
|
6
6
|
const validate_outname_1 = require("../../shared/validate-outname");
|
|
7
7
|
const get_custom_out_name_1 = require("./get-custom-out-name");
|
|
@@ -38,7 +38,7 @@ const getExpectedOutName = (renderMetadata, bucketName, customCredentials) => {
|
|
|
38
38
|
if (renderMetadata.type === 'video') {
|
|
39
39
|
return {
|
|
40
40
|
renderBucketName: bucketName,
|
|
41
|
-
key: (0, defaults_1.outName)(renderMetadata.renderId,
|
|
41
|
+
key: (0, defaults_1.outName)(renderMetadata.renderId, pure_1.NoReactAPIs.getFileExtensionFromCodec(renderMetadata.codec, renderMetadata.audioCodec)),
|
|
42
42
|
customCredentials: null,
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateOutname = void 0;
|
|
4
|
-
const
|
|
4
|
+
const pure_1 = require("@remotion/renderer/pure");
|
|
5
5
|
const validate_bucketname_1 = require("./validate-bucketname");
|
|
6
6
|
const validateS3Key = (s3Key) => {
|
|
7
7
|
if (typeof s3Key !== 'string') {
|
|
@@ -24,10 +24,10 @@ const validateOutname = (outName, codec, audioCodec) => {
|
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
if (codec) {
|
|
27
|
-
|
|
27
|
+
pure_1.NoReactAPIs.validateOutputFilename({
|
|
28
28
|
codec,
|
|
29
29
|
audioCodec,
|
|
30
|
-
extension:
|
|
30
|
+
extension: pure_1.NoReactAPIs.getExtensionOfFilename(outName),
|
|
31
31
|
preferLossless: false,
|
|
32
32
|
});
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.85",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"aws-policies": "^1.0.1",
|
|
27
27
|
"mime-types": "2.1.34",
|
|
28
28
|
"zod": "3.22.3",
|
|
29
|
-
"@remotion/
|
|
30
|
-
"@remotion/
|
|
31
|
-
"remotion": "4.0.
|
|
32
|
-
"
|
|
29
|
+
"@remotion/bundler": "4.0.85",
|
|
30
|
+
"@remotion/cli": "4.0.85",
|
|
31
|
+
"@remotion/renderer": "4.0.85",
|
|
32
|
+
"remotion": "4.0.85"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@jonny/eslint-config": "3.0.276",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"@types/node": "18.14.6",
|
|
39
39
|
"@types/prompt": "^1.1.0",
|
|
40
40
|
"eslint": "8.42.0",
|
|
41
|
-
"prettier": "3.
|
|
42
|
-
"prettier-plugin-organize-imports": "
|
|
41
|
+
"prettier": "3.1.1",
|
|
42
|
+
"prettier-plugin-organize-imports": "3.2.4",
|
|
43
43
|
"ts-node": "^10.8.0",
|
|
44
44
|
"vitest": "0.31.1",
|
|
45
45
|
"zip-lib": "^0.7.2",
|
|
46
|
-
"@remotion/
|
|
47
|
-
"@remotion/
|
|
46
|
+
"@remotion/bundler": "4.0.85",
|
|
47
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.85"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@remotion/bundler": "4.0.
|
|
50
|
+
"@remotion/bundler": "4.0.85"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|