@remotion/lambda 4.0.73 → 4.0.74

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.
@@ -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
  };
@@ -12,11 +12,11 @@ const get_time_to_finish_1 = require("./get-time-to-finish");
12
12
  const createPostRenderData = ({ renderId, region, memorySizeInMb, renderMetadata, contents, timeToEncode, errorExplanations, timeToDelete, outputFile, }) => {
13
13
  const initializedKeys = contents.filter((c) => { var _a; return (_a = c.Key) === null || _a === void 0 ? void 0 : _a.startsWith((0, constants_1.lambdaTimingsPrefix)(renderId)); });
14
14
  const parsedTimings = initializedKeys.map(({ Key }) => (0, parse_lambda_timings_key_1.parseLambdaTimingsKey)(Key));
15
- const estimatedBillingDurationInMilliseconds = parsedTimings
15
+ const times = parsedTimings
16
16
  .map((p) => p.rendered - p.start + get_most_expensive_chunks_1.OVERHEAD_TIME_PER_LAMBDA)
17
17
  .reduce((a, b) => a + b);
18
18
  const cost = (0, estimate_price_1.estimatePrice)({
19
- durationInMilliseconds: estimatedBillingDurationInMilliseconds,
19
+ durationInMilliseconds: times,
20
20
  memorySizeInMb,
21
21
  region,
22
22
  lambdasInvoked: renderMetadata.estimatedTotalLambdaInvokations,
@@ -74,7 +74,6 @@ const createPostRenderData = ({ renderId, region, memorySizeInMb, renderMetadata
74
74
  retriesInfo,
75
75
  mostExpensiveFrameRanges: (0, get_most_expensive_chunks_1.getMostExpensiveChunks)(parsedTimings, renderMetadata.framesPerLambda, renderMetadata.frameRange[0], renderMetadata.frameRange[1]),
76
76
  deleteAfter: renderMetadata.deleteAfter,
77
- estimatedBillingDurationInMilliseconds,
78
77
  };
79
78
  };
80
79
  exports.createPostRenderData = createPostRenderData;
@@ -354,7 +354,6 @@ export type PostRenderData = {
354
354
  timeToRenderChunks: number;
355
355
  retriesInfo: ChunkRetry[];
356
356
  mostExpensiveFrameRanges: ExpensiveChunk[] | undefined;
357
- estimatedBillingDurationInMilliseconds: number;
358
357
  deleteAfter: DeleteAfter | null;
359
358
  };
360
359
  export type CostsInfo = {
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  import https from 'https';
2
4
  import http from 'node:http';
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": "4.0.73",
3
+ "version": "4.0.74",
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/bundler": "4.0.73",
30
- "@remotion/cli": "4.0.73",
31
- "remotion": "4.0.73",
32
- "@remotion/renderer": "4.0.73"
29
+ "@remotion/bundler": "4.0.74",
30
+ "remotion": "4.0.74",
31
+ "@remotion/cli": "4.0.74",
32
+ "@remotion/renderer": "4.0.74"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@jonny/eslint-config": "3.0.276",
@@ -43,11 +43,11 @@
43
43
  "ts-node": "^10.8.0",
44
44
  "vitest": "0.31.1",
45
45
  "zip-lib": "^0.7.2",
46
- "@remotion/bundler": "4.0.73",
47
- "@remotion/compositor-linux-arm64-gnu": "4.0.73"
46
+ "@remotion/compositor-linux-arm64-gnu": "4.0.74",
47
+ "@remotion/bundler": "4.0.74"
48
48
  },
49
49
  "peerDependencies": {
50
- "@remotion/bundler": "4.0.73"
50
+ "@remotion/bundler": "4.0.74"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"
Binary file