@remotion/lambda 3.2.3 → 3.2.8

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.
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const client_lambda_1 = require("@aws-sdk/client-lambda");
4
4
  const aws_policies_1 = require("aws-policies");
5
+ const version_1 = require("remotion/version");
5
6
  const __1 = require("..");
6
7
  const quit_1 = require("../cli/helpers/quit");
7
8
  const aws_clients_1 = require("../shared/aws-clients");
8
- const constants_1 = require("../shared/constants");
9
9
  const runtimes = ['nodejs14.x'];
10
10
  const archictures = ['arm64', 'x86_64'];
11
11
  const layerInfo = {
@@ -52,7 +52,7 @@ const makeLayerPublic = async () => {
52
52
  ? 'Compiled from FFMPEG source. Read FFMPEG license: https://ffmpeg.org/legal.html'
53
53
  : 'Contains Noto Sans font. Read Noto Sans License: https://fonts.google.com/noto/specimen/Noto+Sans/about',
54
54
  CompatibleRuntimes: runtimes,
55
- Description: constants_1.CURRENT_VERSION,
55
+ Description: version_1.VERSION,
56
56
  }));
57
57
  await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.AddLayerVersionPermissionCommand({
58
58
  Action: aws_policies_1.lambda.GetLayerVersion,
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deployFunction = void 0;
4
+ const version_1 = require("remotion/version");
4
5
  const get_functions_1 = require("../api/get-functions");
5
6
  const constants_1 = require("../shared/constants");
6
7
  const function_zip_path_1 = require("../shared/function-zip-path");
@@ -36,7 +37,7 @@ const deployFunction = async (options) => {
36
37
  (0, validate_disk_size_in_mb_1.validateDiskSizeInMb)(diskSizeInMb);
37
38
  (0, validate_custom_role_arn_1.validateCustomRoleArn)(options.customRoleArn);
38
39
  const fnNameRender = [
39
- `${constants_1.RENDER_FN_PREFIX}${constants_1.CURRENT_VERSION}`,
40
+ `${constants_1.RENDER_FN_PREFIX}${version_1.VERSION.replace(/\./g, '-')}`,
40
41
  `mem${options.memorySizeInMb}mb`,
41
42
  `disk${diskSizeInMb}mb`,
42
43
  `${options.timeoutInSeconds}sec`,
@@ -46,7 +47,7 @@ const deployFunction = async (options) => {
46
47
  compatibleOnly: true,
47
48
  region: options.region,
48
49
  });
49
- const alreadyDeployed = fns.find((f) => f.version === constants_1.CURRENT_VERSION &&
50
+ const alreadyDeployed = fns.find((f) => f.version === version_1.VERSION &&
50
51
  f.memorySizeInMb === options.memorySizeInMb &&
51
52
  f.timeoutInSeconds === options.timeoutInSeconds &&
52
53
  f.diskSizeInMb === diskSizeInMb);
@@ -1,10 +1,9 @@
1
1
  import type { AwsRegion } from '../pricing/aws-regions';
2
- import type { LambdaVersions } from '../shared/constants';
3
2
  export declare type FunctionInfo = {
4
3
  functionName: string;
5
4
  timeoutInSeconds: number;
6
5
  memorySizeInMb: number;
7
- version: LambdaVersions | null;
6
+ version: string | null;
8
7
  diskSizeInMb: number;
9
8
  };
10
9
  export declare type GetFunctionInfoInput = {
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFunctions = void 0;
4
4
  const client_lambda_1 = require("@aws-sdk/client-lambda");
5
+ const version_1 = require("remotion/version");
5
6
  const aws_clients_1 = require("../shared/aws-clients");
6
7
  const constants_1 = require("../shared/constants");
7
8
  const get_function_version_1 = require("../shared/get-function-version");
@@ -73,7 +74,7 @@ const getFunctions = async (options) => {
73
74
  if (!options.compatibleOnly) {
74
75
  return true;
75
76
  }
76
- return l.version === constants_1.CURRENT_VERSION;
77
+ return l.version === version_1.VERSION;
77
78
  });
78
79
  };
79
80
  exports.getFunctions = getFunctions;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRenderProgress = void 0;
4
+ const version_1 = require("remotion/version");
4
5
  const call_lambda_1 = require("../shared/call-lambda");
5
6
  const constants_1 = require("../shared/constants");
6
7
  /**
@@ -19,6 +20,7 @@ const getRenderProgress = async ({ functionName, bucketName, renderId, region, }
19
20
  payload: {
20
21
  bucketName,
21
22
  renderId,
23
+ version: version_1.VERSION,
22
24
  },
23
25
  region,
24
26
  });
@@ -1,19 +1,18 @@
1
1
  import type { AwsRegion } from '../pricing/aws-regions';
2
- import type { LambdaVersions } from '../shared/constants';
3
2
  import type { FunctionInfo } from './get-function-info';
4
3
  export declare let mockFunctionsStore: (FunctionInfo & {
5
4
  region: AwsRegion;
6
- version: LambdaVersions;
5
+ version: string;
7
6
  })[];
8
7
  export declare const addFunction: (fn: FunctionInfo, region: AwsRegion) => void;
9
8
  export declare const deleteMockFunction: (name: string, region: string) => void;
10
9
  export declare const findFunction: (name: string, region: string) => (FunctionInfo & {
11
10
  region: AwsRegion;
12
- version: LambdaVersions;
11
+ version: string;
13
12
  }) | undefined;
14
- export declare const getAllMockFunctions: (region: string, version: LambdaVersions | null) => (FunctionInfo & {
13
+ export declare const getAllMockFunctions: (region: string, version: string | null) => (FunctionInfo & {
15
14
  region: AwsRegion;
16
- version: LambdaVersions;
15
+ version: string;
17
16
  })[];
18
17
  export declare const cleanFnStore: () => void;
19
18
  export declare const markFunctionAsIncompatible: (functionName: string) => void;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.renderVideoOnLambda = exports.renderMediaOnLambda = void 0;
4
+ const version_1 = require("remotion/version");
4
5
  const call_lambda_1 = require("../shared/call-lambda");
5
6
  const constants_1 = require("../shared/constants");
6
7
  const convert_to_serve_url_1 = require("../shared/convert-to-serve-url");
@@ -62,6 +63,7 @@ const renderMediaOnLambda = async ({ functionName, serveUrl, inputProps, codec,
62
63
  concurrencyPerLambda: concurrencyPerLambda !== null && concurrencyPerLambda !== void 0 ? concurrencyPerLambda : 1,
63
64
  downloadBehavior: downloadBehavior !== null && downloadBehavior !== void 0 ? downloadBehavior : { type: 'play-in-browser' },
64
65
  muted: muted !== null && muted !== void 0 ? muted : false,
66
+ version: version_1.VERSION,
65
67
  },
66
68
  region,
67
69
  });
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.renderStillOnLambda = void 0;
4
+ const version_1 = require("remotion/version");
4
5
  const call_lambda_1 = require("../shared/call-lambda");
5
6
  const constants_1 = require("../shared/constants");
6
7
  const convert_to_serve_url_1 = require("../shared/convert-to-serve-url");
@@ -44,6 +45,7 @@ const renderStillOnLambda = async ({ functionName, serveUrl, inputProps, imageFo
44
45
  chromiumOptions: chromiumOptions !== null && chromiumOptions !== void 0 ? chromiumOptions : {},
45
46
  scale: scale !== null && scale !== void 0 ? scale : 1,
46
47
  downloadBehavior: downloadBehavior !== null && downloadBehavior !== void 0 ? downloadBehavior : { type: 'play-in-browser' },
48
+ version: version_1.VERSION,
47
49
  },
48
50
  region,
49
51
  });
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.functionsDeploySubcommand = exports.FUNCTIONS_DEPLOY_SUBCOMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
5
  const log_1 = require("@remotion/cli/dist/log");
6
+ const version_1 = require("remotion/version");
6
7
  const deploy_function_1 = require("../../../api/deploy-function");
7
8
  const constants_1 = require("../../../shared/constants");
8
9
  const validate_architecture_1 = require("../../../shared/validate-architecture");
@@ -34,7 +35,7 @@ Region = ${region}
34
35
  Memory = ${memorySizeInMb}MB
35
36
  Disk size = ${diskSizeInMb}MB
36
37
  Timeout = ${timeoutInSeconds}sec
37
- Version = ${constants_1.CURRENT_VERSION}
38
+ Version = ${version_1.VERSION}
38
39
  Architecture = ${architecture}
39
40
  CloudWatch Logging Enabled = ${createCloudWatchLogGroup}
40
41
  CloudWatch Retention Period = ${cloudWatchLogRetentionPeriodInDays} days
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findFunctionName = void 0;
4
+ const version_1 = require("remotion/version");
4
5
  const get_functions_1 = require("../../api/get-functions");
5
6
  const constants_1 = require("../../shared/constants");
6
7
  const functions_1 = require("../commands/functions");
@@ -15,9 +16,9 @@ const findFunctionName = async () => {
15
16
  region: (0, get_aws_region_1.getAwsRegion)(),
16
17
  compatibleOnly: false,
17
18
  });
18
- const lambdasWithMatchingVersion = remotionLambdas.filter((l) => l.version === constants_1.CURRENT_VERSION);
19
+ const lambdasWithMatchingVersion = remotionLambdas.filter((l) => l.version === version_1.VERSION);
19
20
  if (lambdasWithMatchingVersion.length === 0) {
20
- log_1.Log.error(`No lambda functions with version ${constants_1.CURRENT_VERSION} found in your account.`);
21
+ log_1.Log.error(`No lambda functions with version ${version_1.VERSION} found in your account.`);
21
22
  if (remotionLambdas.length > 0) {
22
23
  log_1.Log.error('Other functions were found, but are not compatible with this version of the CLI.');
23
24
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.canUseOptimization = void 0;
4
- const defaults_1 = require("../../defaults");
4
+ const version_1 = require("remotion/version");
5
5
  const canUseOptimization = ({ optimization, framesPerLambda, frameRange, }) => {
6
6
  if (!optimization) {
7
7
  return false;
@@ -9,7 +9,7 @@ const canUseOptimization = ({ optimization, framesPerLambda, frameRange, }) => {
9
9
  if (optimization.framesPerLambda !== framesPerLambda) {
10
10
  return false;
11
11
  }
12
- if (optimization.lambdaVersion !== defaults_1.CURRENT_VERSION) {
12
+ if (optimization.lambdaVersion !== version_1.VERSION) {
13
13
  return false;
14
14
  }
15
15
  if (optimization.frameRange[0] !== frameRange[0]) {
@@ -1,4 +1,3 @@
1
- import type { LambdaVersions } from '../../shared/constants';
2
1
  export declare type ObjectChunkTimingData = {
3
2
  chunk: number;
4
3
  frameRange: [number, number];
@@ -18,6 +17,6 @@ export declare type OptimizationProfile = {
18
17
  newTiming: number;
19
18
  createdFromRenderId: string;
20
19
  framesPerLambda: number;
21
- lambdaVersion: LambdaVersions;
20
+ lambdaVersion: string;
22
21
  everyNthFrame: number;
23
22
  };
@@ -1,4 +1,4 @@
1
- import type { LambdaPayload, LambdaVersions } from '../shared/constants';
1
+ import type { LambdaPayload } from '../shared/constants';
2
2
  export declare const infoHandler: (lambdaParams: LambdaPayload) => Promise<{
3
- version: LambdaVersions;
3
+ version: string;
4
4
  }>;
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.infoHandler = void 0;
4
+ const version_1 = require("remotion/version");
4
5
  const constants_1 = require("../shared/constants");
5
6
  const infoHandler = (lambdaParams) => {
6
7
  if (lambdaParams.type !== constants_1.LambdaRoutines.info) {
7
8
  throw new TypeError('Expected info type');
8
9
  }
9
10
  const returnValue = {
10
- version: constants_1.CURRENT_VERSION,
11
+ version: version_1.VERSION,
11
12
  };
12
13
  return Promise.resolve(returnValue);
13
14
  };
@@ -8,6 +8,7 @@ const client_lambda_1 = require("@aws-sdk/client-lambda");
8
8
  const renderer_1 = require("@remotion/renderer");
9
9
  const fs_1 = __importDefault(require("fs"));
10
10
  const remotion_1 = require("remotion");
11
+ const version_1 = require("remotion/version");
11
12
  const aws_clients_1 = require("../shared/aws-clients");
12
13
  const constants_1 = require("../shared/constants");
13
14
  const docs_url_1 = require("../shared/docs-url");
@@ -171,7 +172,7 @@ const innerLaunchHandler = async (params, options) => {
171
172
  type: 'video',
172
173
  imageFormat: params.imageFormat,
173
174
  inputProps: params.inputProps,
174
- lambdaVersion: constants_1.CURRENT_VERSION,
175
+ lambdaVersion: version_1.VERSION,
175
176
  framesPerLambda,
176
177
  memorySizeInMb: Number(process.env.AWS_LAMBDA_FUNCTION_MEMORY_SIZE),
177
178
  region: (0, get_current_region_1.getCurrentRegionInFunction)(),
@@ -288,7 +289,7 @@ const innerLaunchHandler = async (params, options) => {
288
289
  newTiming: (0, get_profile_duration_1.getProfileDuration)(optimizedProfile),
289
290
  createdFromRenderId: params.renderId,
290
291
  framesPerLambda,
291
- lambdaVersion: constants_1.CURRENT_VERSION,
292
+ lambdaVersion: version_1.VERSION,
292
293
  frameRange: realFrameRange,
293
294
  everyNthFrame: params.everyNthFrame,
294
295
  },
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.progressHandler = void 0;
4
+ const version_1 = require("remotion/version");
4
5
  const constants_1 = require("../shared/constants");
5
6
  const get_current_region_1 = require("./helpers/get-current-region");
6
7
  const get_progress_1 = require("./helpers/get-progress");
@@ -8,6 +9,12 @@ const progressHandler = (lambdaParams, options) => {
8
9
  if (lambdaParams.type !== constants_1.LambdaRoutines.status) {
9
10
  throw new TypeError('Expected status type');
10
11
  }
12
+ if (lambdaParams.version !== version_1.VERSION) {
13
+ if (!lambdaParams.version) {
14
+ throw new Error(`Version mismatch: When calling getRenderProgress(), the deployed Lambda function had version ${version_1.VERSION} but the @remotion/lambda package is an older version. Align the versions.`);
15
+ }
16
+ throw new Error(`Version mismatch: When calling getRenderProgress(), get deployed Lambda function had version ${version_1.VERSION} and the @remotion/lambda package has version ${lambdaParams.version}. Align the versions.`);
17
+ }
11
18
  return (0, get_progress_1.getProgress)({
12
19
  bucketName: lambdaParams.bucketName,
13
20
  renderId: lambdaParams.renderId,
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.startHandler = void 0;
4
4
  const client_lambda_1 = require("@aws-sdk/client-lambda");
5
+ const version_1 = require("remotion/version");
5
6
  const get_or_create_bucket_1 = require("../api/get-or-create-bucket");
6
7
  const aws_clients_1 = require("../shared/aws-clients");
7
8
  const constants_1 = require("../shared/constants");
@@ -12,6 +13,12 @@ const startHandler = async (params) => {
12
13
  if (params.type !== constants_1.LambdaRoutines.start) {
13
14
  throw new TypeError('Expected type start');
14
15
  }
16
+ if (params.version !== version_1.VERSION) {
17
+ if (!params.version) {
18
+ throw new Error(`Version mismatch: When calling renderMediaOnLambda(), the deployed Lambda function had version ${version_1.VERSION} but the @remotion/lambda package is an older version. Align the versions.`);
19
+ }
20
+ throw new Error(`Version mismatch: When calling renderMediaOnLambda(), get deployed Lambda function had version ${version_1.VERSION} and the @remotion/lambda package has version ${params.version}. Align the versions.`);
21
+ }
15
22
  const { bucketName } = await (0, get_or_create_bucket_1.getOrCreateBucket)({
16
23
  region: (0, get_current_region_1.getCurrentRegionInFunction)(),
17
24
  });
@@ -8,6 +8,7 @@ const client_lambda_1 = require("@aws-sdk/client-lambda");
8
8
  const renderer_1 = require("@remotion/renderer");
9
9
  const fs_1 = __importDefault(require("fs"));
10
10
  const path_1 = __importDefault(require("path"));
11
+ const version_1 = require("remotion/version");
11
12
  const estimate_price_1 = require("../api/estimate-price");
12
13
  const get_or_create_bucket_1 = require("../api/get-or-create-bucket");
13
14
  const aws_clients_1 = require("../shared/aws-clients");
@@ -31,6 +32,12 @@ const innerStillHandler = async (lambdaParams, renderId, options) => {
31
32
  if (lambdaParams.type !== constants_1.LambdaRoutines.still) {
32
33
  throw new TypeError('Expected still type');
33
34
  }
35
+ if (lambdaParams.version !== version_1.VERSION) {
36
+ if (!lambdaParams.version) {
37
+ throw new Error(`Version mismatch: When calling renderStillOnLambda(), the deployed Lambda function had version ${version_1.VERSION} but the @remotion/lambda package is an older version. Align the versions.`);
38
+ }
39
+ throw new Error(`Version mismatch: When calling renderStillOnLambda(), get deployed Lambda function had version ${version_1.VERSION} and the @remotion/lambda package has version ${lambdaParams.version}. Align the versions.`);
40
+ }
34
41
  (0, validate_download_behavior_1.validateDownloadBehavior)(lambdaParams.downloadBehavior);
35
42
  (0, validate_privacy_1.validatePrivacy)(lambdaParams.privacy);
36
43
  (0, validate_outname_1.validateOutname)(lambdaParams.outName);
@@ -70,7 +77,7 @@ const innerStillHandler = async (lambdaParams, renderId, options) => {
70
77
  usesOptimizationProfile: false,
71
78
  imageFormat: lambdaParams.imageFormat,
72
79
  inputProps: lambdaParams.inputProps,
73
- lambdaVersion: constants_1.CURRENT_VERSION,
80
+ lambdaVersion: version_1.VERSION,
74
81
  framesPerLambda: 1,
75
82
  memorySizeInMb: Number(process.env.AWS_LAMBDA_FUNCTION_MEMORY_SIZE),
76
83
  region: (0, get_current_region_1.getCurrentRegionInFunction)(),
@@ -0,0 +1 @@
1
+ export declare const chunk: <T>(input: T[], size: number) => T[][];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chunk = void 0;
4
+ const chunk = (input, size) => {
5
+ return input.reduce((arr, item, idx) => {
6
+ return idx % size === 0
7
+ ? [...arr, [item]]
8
+ : [...arr.slice(0, -1), [...arr.slice(-1)[0], item]];
9
+ }, []);
10
+ };
11
+ exports.chunk = chunk;
@@ -114,6 +114,7 @@ export declare type LambdaPayloads = {
114
114
  concurrencyPerLambda: number;
115
115
  downloadBehavior: DownloadBehavior;
116
116
  muted: boolean;
117
+ version: string;
117
118
  };
118
119
  launch: {
119
120
  type: LambdaRoutines.launch;
@@ -148,6 +149,7 @@ export declare type LambdaPayloads = {
148
149
  type: LambdaRoutines.status;
149
150
  bucketName: string;
150
151
  renderId: string;
152
+ version: string;
151
153
  };
152
154
  renderer: {
153
155
  concurrencyPerLambda: number;
@@ -198,6 +200,7 @@ export declare type LambdaPayloads = {
198
200
  chromiumOptions: ChromiumOptions;
199
201
  scale: number;
200
202
  downloadBehavior: DownloadBehavior | null;
203
+ version: string;
201
204
  };
202
205
  };
203
206
  export declare type LambdaPayload = LambdaPayloads[LambdaRoutines];
@@ -222,13 +225,11 @@ export declare type RenderMetadata = {
222
225
  inputProps: unknown;
223
226
  framesPerLambda: number;
224
227
  memorySizeInMb: number;
225
- lambdaVersion: LambdaVersions;
228
+ lambdaVersion: string;
226
229
  region: AwsRegion;
227
230
  renderId: string;
228
231
  outName: OutNameInput | undefined;
229
232
  };
230
- export declare type LambdaVersions = '2022-08-13' | '2022-08-11' | '2022-08-10' | '2022-08-04' | '2022-08-02' | '2022-08-01' | '2022-07-28' | '2022-07-27' | '2022-07-25' | '2022-07-23' | '2022-07-20' | '2022-07-18' | '2022-07-15' | '2022-07-14' | '2022-07-12' | '2022-07-10' | '2022-07-09' | '2022-07-08' | '2022-07-04' | '2022-06-30' | '2022-06-29' | '2022-06-25' | '2022-06-22' | '2022-06-21' | '2022-06-14' | '2022-06-08' | '2022-06-07' | '2022-06-02' | '2022-05-31' | '2022-05-28' | '2022-05-27' | '2022-05-19' | '2022-05-16' | '2022-05-11' | '2022-05-07' | '2022-05-06' | '2022-05-03' | '2022-04-20' | '2022-04-19' | '2022-04-18' | '2022-04-09' | '2022-04-08' | '2022-04-05' | '2022-04-02' | '2022-03-29' | '2022-03-17' | '2022-03-02' | '2022-03-01' | '2022-02-27' | '2022-02-14' | '2022-02-12' | '2022-02-09' | '2022-02-08' | '2022-02-07' | '2022-02-06' | '2022-02-05' | '2022-02-04' | '2022-02-03' | '2022-01-23' | '2022-01-19' | '2022-01-11' | '2022-01-10' | '2022-01-09' | '2022-01-06' | '2022-01-05' | '2021-12-22' | '2021-12-17' | '2021-12-16' | '2021-12-15' | '2021-12-14' | '2021-12-13' | '2021-12-11' | '2021-12-10' | '2021-12-04' | '2021-11-29' | '2021-11-27' | '2021-11-24' | '2021-11-22' | '2021-11-19' | '2021-11-18' | '2021-11-15' | '2021-11-12' | '2021-11-10' | '2021-11-01' | '2021-10-29' | '2021-10-27' | '2021-10-21' | '2021-10-19' | '2021-10-07' | '2021-10-03' | '2021-10-01' | '2021-09-15' | '2021-09-06' | '2021-08-06' | '2021-07-14' | '2021-07-05' | '2021-07-02' | '2021-06-23' | 'n/a';
231
- export declare const CURRENT_VERSION: LambdaVersions;
232
233
  export declare type PostRenderData = {
233
234
  cost: {
234
235
  estimatedCost: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LAMBDA_BURST_LIMIT_QUOTA = exports.LAMBDA_CONCURRENCY_LIMIT_QUOTA = exports.CURRENT_VERSION = exports.LambdaRoutines = exports.REMOTION_FILELIST_TOKEN = exports.REMOTION_CONCATED_TOKEN = exports.CONCAT_FOLDER_TOKEN = exports.RENDERER_PATH_TOKEN = exports.postRenderDataKey = exports.customOutName = exports.outStillName = exports.outName = exports.getSitesKey = exports.optimizationProfile = exports.getErrorFileName = exports.getErrorKeyPrefix = exports.chunkKeyForIndex = exports.chunkKey = exports.lambdaTimingsKey = exports.lambdaLogsPrefix = exports.lambdaTimingsPrefixForChunk = exports.lambdaTimingsPrefix = exports.lambdaInitializedKey = exports.lambdaInitializedPrefix = exports.renderMetadataKey = exports.encodingProgressKey = exports.rendersPrefix = exports.LOG_GROUP_PREFIX = exports.RENDER_FN_PREFIX = exports.REMOTION_BUCKET_PREFIX = exports.DEFAULT_CLOUDWATCH_RETENTION_PERIOD = exports.DEFAULT_OUTPUT_PRIVACY = exports.MAX_EPHEMERAL_STORAGE_IN_MB = exports.MIN_EPHEMERAL_STORAGE_IN_MB = exports.DEFAULT_EPHEMERAL_STORAGE_IN_MB = exports.MAX_FUNCTIONS_PER_RENDER = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_REGION = exports.COMMAND_NOT_FOUND = exports.BINARY_NAME = exports.DEFAULT_FRAMES_PER_LAMBDA = exports.MINIMUM_FRAMES_PER_LAMBDA = exports.MAX_TIMEOUT = exports.MIN_TIMEOUT = exports.DEFAULT_TIMEOUT = exports.DEFAULT_ARCHITECTURE = exports.DEFAULT_MEMORY_SIZE = exports.MAX_MEMORY = exports.MIN_MEMORY = void 0;
3
+ exports.LAMBDA_BURST_LIMIT_QUOTA = exports.LAMBDA_CONCURRENCY_LIMIT_QUOTA = exports.LambdaRoutines = exports.REMOTION_FILELIST_TOKEN = exports.REMOTION_CONCATED_TOKEN = exports.CONCAT_FOLDER_TOKEN = exports.RENDERER_PATH_TOKEN = exports.postRenderDataKey = exports.customOutName = exports.outStillName = exports.outName = exports.getSitesKey = exports.optimizationProfile = exports.getErrorFileName = exports.getErrorKeyPrefix = exports.chunkKeyForIndex = exports.chunkKey = exports.lambdaTimingsKey = exports.lambdaLogsPrefix = exports.lambdaTimingsPrefixForChunk = exports.lambdaTimingsPrefix = exports.lambdaInitializedKey = exports.lambdaInitializedPrefix = exports.renderMetadataKey = exports.encodingProgressKey = exports.rendersPrefix = exports.LOG_GROUP_PREFIX = exports.RENDER_FN_PREFIX = exports.REMOTION_BUCKET_PREFIX = exports.DEFAULT_CLOUDWATCH_RETENTION_PERIOD = exports.DEFAULT_OUTPUT_PRIVACY = exports.MAX_EPHEMERAL_STORAGE_IN_MB = exports.MIN_EPHEMERAL_STORAGE_IN_MB = exports.DEFAULT_EPHEMERAL_STORAGE_IN_MB = exports.MAX_FUNCTIONS_PER_RENDER = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_REGION = exports.COMMAND_NOT_FOUND = exports.BINARY_NAME = exports.DEFAULT_FRAMES_PER_LAMBDA = exports.MINIMUM_FRAMES_PER_LAMBDA = exports.MAX_TIMEOUT = exports.MIN_TIMEOUT = exports.DEFAULT_TIMEOUT = exports.DEFAULT_ARCHITECTURE = exports.DEFAULT_MEMORY_SIZE = exports.MAX_MEMORY = exports.MIN_MEMORY = void 0;
4
4
  exports.MIN_MEMORY = 512;
5
5
  exports.MAX_MEMORY = 10240;
6
6
  exports.DEFAULT_MEMORY_SIZE = 2048;
@@ -84,6 +84,5 @@ var LambdaRoutines;
84
84
  LambdaRoutines["renderer"] = "renderer";
85
85
  LambdaRoutines["still"] = "still";
86
86
  })(LambdaRoutines = exports.LambdaRoutines || (exports.LambdaRoutines = {}));
87
- exports.CURRENT_VERSION = '2022-08-13';
88
87
  exports.LAMBDA_CONCURRENCY_LIMIT_QUOTA = 'L-B99A9384';
89
88
  exports.LAMBDA_BURST_LIMIT_QUOTA = 'L-548AE339';
@@ -1,6 +1,5 @@
1
1
  import type { AwsRegion } from '../pricing/aws-regions';
2
- import type { LambdaVersions } from './constants';
3
2
  export declare const getFunctionVersion: ({ functionName, region, }: {
4
3
  functionName: string;
5
4
  region: AwsRegion;
6
- }) => Promise<LambdaVersions>;
5
+ }) => Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "3.2.3",
3
+ "version": "3.2.8",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -9,14 +9,14 @@
9
9
  },
10
10
  "module": "true",
11
11
  "scripts": {
12
- "prepublish": "node ensure-version-match.js",
13
12
  "testintegration": "jest src/test/integration --runInBand",
14
13
  "lint": "eslint src --ext ts,tsx",
15
14
  "test": "jest src/test/unit",
16
15
  "watch": "tsc -w",
17
16
  "build": "tsc -d && pnpm run buildlambda",
18
17
  "buildlambda": "ts-node src/admin/bundle-lambda.ts",
19
- "start": "ts-node src/run.ts"
18
+ "start": "ts-node src/run.ts",
19
+ "prepublish": "ts-node src/admin/bundle-lambda.ts && node ensure-version-match.js"
20
20
  },
21
21
  "author": "",
22
22
  "license": "MIT",
@@ -32,12 +32,12 @@
32
32
  "@aws-sdk/client-service-quotas": "3.58.0",
33
33
  "@aws-sdk/lib-storage": "3.58.0",
34
34
  "@aws-sdk/s3-request-presigner": "3.58.0",
35
- "@remotion/bundler": "3.2.3",
36
- "@remotion/cli": "3.2.3",
37
- "@remotion/renderer": "3.2.3",
35
+ "@remotion/bundler": "3.2.8",
36
+ "@remotion/cli": "3.2.8",
37
+ "@remotion/renderer": "3.2.8",
38
38
  "aws-policies": "^1.0.1",
39
39
  "mime-types": "2.1.34",
40
- "remotion": "3.2.3"
40
+ "remotion": "3.2.8"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=16.8.0",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "15773a2e48ee8a9dbcfd898520cb914396c21eb1"
65
+ "gitHead": "7ccde3ec3f4adecd5fb7188d9d2933435bba5743"
66
66
  }
Binary file