@remotion/lambda 4.0.51 → 4.0.52

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.
@@ -1,3 +1,4 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  import type { LambdaReadFileProgress } from '../functions/helpers/read-with-progress';
2
3
  import type { AwsRegion } from '../pricing/aws-regions';
3
4
  import type { CustomCredentials } from '../shared/aws-clients';
@@ -8,6 +9,7 @@ export type DownloadMediaInput = {
8
9
  outPath: string;
9
10
  onProgress?: LambdaReadFileProgress;
10
11
  customCredentials?: CustomCredentials;
12
+ logLevel?: LogLevel;
11
13
  };
12
14
  export type DownloadMediaOutput = {
13
15
  outputPath: string;
@@ -22,7 +22,7 @@ const get_account_id_1 = require("../shared/get-account-id");
22
22
  * @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
23
23
  */
24
24
  const downloadMedia = async (input) => {
25
- var _a, _b;
25
+ var _a, _b, _c;
26
26
  const expectedBucketOwner = await (0, get_account_id_1.getAccountId)({
27
27
  region: input.region,
28
28
  });
@@ -43,6 +43,7 @@ const downloadMedia = async (input) => {
43
43
  onProgress: (_b = input.onProgress) !== null && _b !== void 0 ? _b : (() => undefined),
44
44
  outputPath,
45
45
  customCredentials,
46
+ logLevel: (_c = input.logLevel) !== null && _c !== void 0 ? _c : 'info',
46
47
  });
47
48
  return {
48
49
  outputPath,
@@ -91,6 +91,7 @@ const renderCommand = async (args, remotionRoot) => {
91
91
  outName: outName !== null && outName !== void 0 ? outName : null,
92
92
  configFile: (_b = config_1.ConfigInternals.getOutputCodecOrUndefined()) !== null && _b !== void 0 ? _b : null,
93
93
  uiCodec: null,
94
+ compositionCodec: null,
94
95
  });
95
96
  const imageFormat = cli_1.CliInternals.getVideoImageFormat({
96
97
  codec,
@@ -216,6 +217,7 @@ const renderCommand = async (args, remotionRoot) => {
216
217
  outPath: downloadName,
217
218
  region: (0, get_aws_region_1.getAwsRegion)(),
218
219
  renderId: res.renderId,
220
+ logLevel,
219
221
  onProgress: ({ downloaded, totalSize }) => {
220
222
  progressBar.update((0, progress_1.makeProgressString)({
221
223
  progress: newProgress,
@@ -123,6 +123,7 @@ const stillCommand = async (args, remotionRoot) => {
123
123
  outPath: downloadName,
124
124
  region,
125
125
  renderId: res.renderId,
126
+ logLevel,
126
127
  });
127
128
  log_1.Log.info('Done!', outputPath, cli_1.CliInternals.formatBytes(sizeInBytes));
128
129
  }
package/dist/cli/log.d.ts CHANGED
@@ -2,24 +2,24 @@ export declare const Log: {
2
2
  verbose: (message?: any, ...optionalParams: any[]) => void;
3
3
  verboseAdvanced: (options: {
4
4
  indent: boolean;
5
- logLevel: "error" | "verbose" | "info" | "warn";
5
+ logLevel: "verbose" | "info" | "warn" | "error";
6
6
  } & {
7
7
  tag?: string | undefined;
8
8
  }, message?: any, ...optionalParams: any[]) => void;
9
9
  info: (message?: any, ...optionalParams: any[]) => void;
10
10
  infoAdvanced: (options: {
11
11
  indent: boolean;
12
- logLevel: "error" | "verbose" | "info" | "warn";
12
+ logLevel: "verbose" | "info" | "warn" | "error";
13
13
  }, message?: any, ...optionalParams: any[]) => void;
14
14
  warn: (message?: any, ...optionalParams: any[]) => void;
15
15
  warnAdvanced: (options: {
16
16
  indent: boolean;
17
- logLevel: "error" | "verbose" | "info" | "warn";
17
+ logLevel: "verbose" | "info" | "warn" | "error";
18
18
  }, message?: any, ...optionalParams: any[]) => void;
19
19
  error: (message?: any, ...optionalParams: any[]) => void;
20
20
  errorAdvanced: (options: {
21
21
  indent: boolean;
22
- logLevel: "error" | "verbose" | "info" | "warn";
22
+ logLevel: "verbose" | "info" | "warn" | "error";
23
23
  } & {
24
24
  tag?: string | undefined;
25
25
  }, message?: any, ...optionalParams: any[]) => void;
@@ -3,5 +3,8 @@ export declare const planFrameRanges: ({ framesPerLambda, frameRange, everyNthFr
3
3
  frameRange: [number, number];
4
4
  everyNthFrame: number;
5
5
  }) => {
6
- chunks: [number, number][];
6
+ chunks: [
7
+ number,
8
+ number
9
+ ][];
7
10
  };
@@ -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,4 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  import type { AwsRegion } from '../../pricing/aws-regions';
2
3
  import type { CustomCredentials } from '../../shared/aws-clients';
3
4
  export type LambdaReadFileProgress = (progress: {
@@ -5,7 +6,7 @@ export type LambdaReadFileProgress = (progress: {
5
6
  downloaded: number;
6
7
  percent: number;
7
8
  }) => unknown;
8
- export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, }: {
9
+ export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, logLevel, }: {
9
10
  bucketName: string;
10
11
  key: string;
11
12
  region: AwsRegion;
@@ -13,6 +14,7 @@ export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region,
13
14
  outputPath: string;
14
15
  onProgress: LambdaReadFileProgress;
15
16
  customCredentials: CustomCredentials | null;
17
+ logLevel: LogLevel;
16
18
  }) => Promise<{
17
19
  sizeInBytes: number;
18
20
  to: string;
@@ -5,7 +5,7 @@ const client_s3_1 = require("@aws-sdk/client-s3");
5
5
  const s3_request_presigner_1 = require("@aws-sdk/s3-request-presigner");
6
6
  const renderer_1 = require("@remotion/renderer");
7
7
  const aws_clients_1 = require("../../shared/aws-clients");
8
- const lambdaDownloadFileWithProgress = async ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, }) => {
8
+ const lambdaDownloadFileWithProgress = async ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, logLevel, }) => {
9
9
  const client = (0, aws_clients_1.getS3Client)(region, customCredentials);
10
10
  const command = new client_s3_1.GetObjectCommand({
11
11
  Bucket: bucketName,
@@ -24,6 +24,8 @@ const lambdaDownloadFileWithProgress = async ({ bucketName, key, region, expecte
24
24
  });
25
25
  },
26
26
  to: () => outputPath,
27
+ indent: false,
28
+ logLevel,
27
29
  });
28
30
  return { sizeInBytes, to };
29
31
  };
@@ -4,16 +4,16 @@ declare const streamingPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
4
4
  type: z.ZodLiteral<"render-id-determined">;
5
5
  renderId: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
- renderId: string;
8
7
  type: "render-id-determined";
9
- }, {
10
8
  renderId: string;
9
+ }, {
11
10
  type: "render-id-determined";
11
+ renderId: string;
12
12
  }>]>;
13
13
  export type StreamingPayloads = z.infer<typeof streamingPayloadSchema>;
14
14
  export declare const isStreamingPayload: (str: string) => false | {
15
- renderId: string;
16
15
  type: "render-id-determined";
16
+ renderId: string;
17
17
  };
18
18
  export declare const sendProgressEvent: (responseStream: ResponseStream, payload: StreamingPayloads) => void;
19
19
  export {};
@@ -75,6 +75,7 @@ const renderHandler = async (params, options, logs) => {
75
75
  fps: params.fps,
76
76
  height: params.height,
77
77
  width: params.width,
78
+ defaultCodec: null,
78
79
  },
79
80
  imageFormat: params.imageFormat,
80
81
  serializedInputPropsWithCustomSchema,
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import https from 'https';
4
2
  import http from 'node:http';
5
3
  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.51",
3
+ "version": "4.0.52",
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.51",
30
- "@remotion/renderer": "4.0.51",
31
- "remotion": "4.0.51",
32
- "@remotion/cli": "4.0.51"
29
+ "@remotion/bundler": "4.0.52",
30
+ "@remotion/cli": "4.0.52",
31
+ "remotion": "4.0.52",
32
+ "@remotion/renderer": "4.0.52"
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.51",
47
- "@remotion/compositor-linux-arm64-gnu": "4.0.51"
46
+ "@remotion/bundler": "4.0.52",
47
+ "@remotion/compositor-linux-arm64-gnu": "4.0.52"
48
48
  },
49
49
  "peerDependencies": {
50
- "@remotion/bundler": "4.0.51"
50
+ "@remotion/bundler": "4.0.52"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"
Binary file