@remotion/lambda 3.3.65 → 3.3.70

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.
@@ -70,7 +70,6 @@ const createFunction = async ({ createCloudWatchLogGroup, region, zipFile, funct
70
70
  }));
71
71
  }
72
72
  catch (err) {
73
- console.log(err);
74
73
  console.warn('⚠️ Could not lock the runtime version. We recommend to update your policies to prevent your functions from breaking soon: https://remotion.dev/docs/lambda/feb-2023-incident');
75
74
  }
76
75
  return { FunctionName: FunctionName };
@@ -0,0 +1,14 @@
1
+ export declare type SpeculateFunctionNameInput = {
2
+ memorySizeInMb: string | number;
3
+ diskSizeInMb: string | number;
4
+ timeoutInSeconds: string | number;
5
+ };
6
+ /**
7
+ * @description Speculate the name of a lambda function that will be created when you call `deployFunction`, based on the function configuration.
8
+ * @see [Documentation](https://www.remotion.dev/docs/lambda/speculatefunctionname)
9
+ * @param options.memorySizeInMb How much memory is allocated to the Lambda function.
10
+ * @param options.diskSizeInMb The amount of storage the function is allocated.
11
+ * @param options.timeoutInSeconds Time in seconds until the function times out.
12
+ * @returns {string} The speculated lambda function name
13
+ */
14
+ export declare const speculateFunctionName: ({ memorySizeInMb, diskSizeInMb, timeoutInSeconds, }: SpeculateFunctionNameInput) => string;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.speculateFunctionName = void 0;
4
+ const defaults_1 = require("../defaults");
5
+ const lambda_version_string_1 = require("../shared/lambda-version-string");
6
+ /**
7
+ * @description Speculate the name of a lambda function that will be created when you call `deployFunction`, based on the function configuration.
8
+ * @see [Documentation](https://www.remotion.dev/docs/lambda/speculatefunctionname)
9
+ * @param options.memorySizeInMb How much memory is allocated to the Lambda function.
10
+ * @param options.diskSizeInMb The amount of storage the function is allocated.
11
+ * @param options.timeoutInSeconds Time in seconds until the function times out.
12
+ * @returns {string} The speculated lambda function name
13
+ */
14
+ const speculateFunctionName = ({ memorySizeInMb, diskSizeInMb, timeoutInSeconds, }) => {
15
+ return [
16
+ `${defaults_1.RENDER_FN_PREFIX}${lambda_version_string_1.LAMBDA_VERSION_STRING}`,
17
+ `mem${memorySizeInMb}mb`,
18
+ `disk${diskSizeInMb}mb`,
19
+ `${timeoutInSeconds}sec`,
20
+ ].join('-');
21
+ };
22
+ exports.speculateFunctionName = speculateFunctionName;
package/dist/client.d.ts CHANGED
@@ -6,9 +6,11 @@ import type { PresignUrlInput } from './api/presign-url';
6
6
  import { presignUrl } from './api/presign-url';
7
7
  import { renderMediaOnLambda, renderVideoOnLambda } from './api/render-media-on-lambda';
8
8
  import { renderStillOnLambda } from './api/render-still-on-lambda';
9
+ import type { SpeculateFunctionNameInput } from './api/speculate-function-name';
10
+ import { speculateFunctionName } from './api/speculate-function-name';
9
11
  import { validateWebhookSignature } from './api/validate-webhook-signature';
10
12
  import type { AwsRegion } from './pricing/aws-regions';
11
13
  import type { RenderProgress } from './shared/constants';
12
14
  import type { WebhookPayload } from './shared/invoke-webhook';
13
- export { renderVideoOnLambda, renderMediaOnLambda, renderStillOnLambda, getRenderProgress, getFunctions, validateWebhookSignature, getCompositionsOnLambda, presignUrl, getSites, };
14
- export type { AwsRegion, RenderProgress, WebhookPayload, PresignUrlInput };
15
+ export { renderVideoOnLambda, renderMediaOnLambda, renderStillOnLambda, getRenderProgress, getFunctions, validateWebhookSignature, getCompositionsOnLambda, presignUrl, getSites, speculateFunctionName, };
16
+ export type { AwsRegion, RenderProgress, SpeculateFunctionNameInput, WebhookPayload, PresignUrlInput, };
package/dist/client.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSites = exports.presignUrl = exports.getCompositionsOnLambda = exports.validateWebhookSignature = exports.getFunctions = exports.getRenderProgress = exports.renderStillOnLambda = exports.renderMediaOnLambda = exports.renderVideoOnLambda = void 0;
3
+ exports.speculateFunctionName = exports.getSites = exports.presignUrl = exports.getCompositionsOnLambda = exports.validateWebhookSignature = exports.getFunctions = exports.getRenderProgress = exports.renderStillOnLambda = exports.renderMediaOnLambda = exports.renderVideoOnLambda = void 0;
4
4
  const get_compositions_on_lambda_1 = require("./api/get-compositions-on-lambda");
5
5
  Object.defineProperty(exports, "getCompositionsOnLambda", { enumerable: true, get: function () { return get_compositions_on_lambda_1.getCompositionsOnLambda; } });
6
6
  const get_functions_1 = require("./api/get-functions");
@@ -16,5 +16,7 @@ Object.defineProperty(exports, "renderMediaOnLambda", { enumerable: true, get: f
16
16
  Object.defineProperty(exports, "renderVideoOnLambda", { enumerable: true, get: function () { return render_media_on_lambda_1.renderVideoOnLambda; } });
17
17
  const render_still_on_lambda_1 = require("./api/render-still-on-lambda");
18
18
  Object.defineProperty(exports, "renderStillOnLambda", { enumerable: true, get: function () { return render_still_on_lambda_1.renderStillOnLambda; } });
19
+ const speculate_function_name_1 = require("./api/speculate-function-name");
20
+ Object.defineProperty(exports, "speculateFunctionName", { enumerable: true, get: function () { return speculate_function_name_1.speculateFunctionName; } });
19
21
  const validate_webhook_signature_1 = require("./api/validate-webhook-signature");
20
22
  Object.defineProperty(exports, "validateWebhookSignature", { enumerable: true, get: function () { return validate_webhook_signature_1.validateWebhookSignature; } });
@@ -3,8 +3,5 @@ export declare const planFrameRanges: ({ framesPerLambda, frameRange, everyNthFr
3
3
  frameRange: [number, number];
4
4
  everyNthFrame: number;
5
5
  }) => {
6
- chunks: [
7
- number,
8
- number
9
- ][];
6
+ chunks: [number, number][];
10
7
  };
@@ -1 +1 @@
1
- export declare const getCurrentRegionInFunction: () => "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-north-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "sa-east-1" | "eu-south-1" | "af-south-1" | "ap-east-1" | "me-south-1";
1
+ export declare const getCurrentRegionInFunction: () => "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-south-1" | "eu-north-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-south-1" | "ap-east-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "me-south-1" | "sa-east-1";
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  import http from 'http';
2
4
  import https from 'https';
3
5
  import type { EnhancedErrorInfo } from '../functions/helpers/write-lambda-error';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "3.3.65",
3
+ "version": "3.3.70",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -33,18 +33,18 @@
33
33
  "@aws-sdk/credential-providers": "3.272.0",
34
34
  "@aws-sdk/lib-storage": "3.272.0",
35
35
  "@aws-sdk/s3-request-presigner": "3.272.0",
36
- "@remotion/bundler": "3.3.65",
37
- "@remotion/cli": "3.3.65",
38
- "@remotion/renderer": "3.3.65",
36
+ "@remotion/bundler": "3.3.70",
37
+ "@remotion/cli": "3.3.70",
38
+ "@remotion/renderer": "3.3.70",
39
39
  "aws-policies": "^1.0.1",
40
40
  "mime-types": "2.1.34",
41
- "remotion": "3.3.65"
41
+ "remotion": "3.3.70"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@jonny/eslint-config": "3.0.266",
45
- "@remotion/bundler": "3.3.58",
46
- "@remotion/compositor-linux-arm64-musl": "3.3.65",
47
- "@remotion/compositor-linux-x64-musl": "3.3.65",
45
+ "@remotion/bundler": "3.3.69",
46
+ "@remotion/compositor-linux-arm64-musl": "3.3.70",
47
+ "@remotion/compositor-linux-x64-musl": "3.3.70",
48
48
  "@types/mime-types": "2.1.1",
49
49
  "@types/minimist": "1.2.2",
50
50
  "@types/node": "^14.14.14",
@@ -58,12 +58,13 @@
58
58
  "zip-lib": "^0.7.2"
59
59
  },
60
60
  "peerDependencies": {
61
- "@remotion/bundler": "3.3.58"
61
+ "@remotion/bundler": "3.3.69"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
66
  "exports": {
67
+ "./package.json": "./package.json",
67
68
  ".": "./dist/index.js",
68
69
  "./defaults": "./dist/defaults.js",
69
70
  "./regions": "./dist/regions.js",
@@ -87,5 +88,5 @@
87
88
  ]
88
89
  }
89
90
  },
90
- "gitHead": "f1fcd9c71dc6f811c8f29df08ca820eb71b23108"
91
+ "gitHead": "5be0baab44cf6de263f5825eadd5eecd0395942c"
91
92
  }
Binary file
Binary file