@remotion/lambda 4.0.180 → 4.0.182

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,4 +1,4 @@
1
- import type { GitSource, WebpackOverrideFn } from '@remotion/bundler';
1
+ import { type GitSource, type WebpackOverrideFn } from '@remotion/bundler';
2
2
  import type { ToOptions } from '@remotion/renderer';
3
3
  import type { BrowserSafeApis } from '@remotion/renderer/client';
4
4
  import type { AwsRegion } from '../pricing/aws-regions';
@@ -59,11 +59,11 @@ export declare const internalDeploySite: (args_0: MandatoryParameters & {
59
59
  getValue: ({ commandLine }: {
60
60
  commandLine: Record<string, unknown>;
61
61
  }) => {
62
- value: "error" | "verbose" | "info" | "warn";
62
+ value: "verbose" | "info" | "warn" | "error";
63
63
  source: string;
64
64
  };
65
- setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
66
- type: "error" | "verbose" | "info" | "warn";
65
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
66
+ type: "verbose" | "info" | "warn" | "error";
67
67
  };
68
68
  readonly throwIfSiteExists: {
69
69
  cliFlag: string;
@@ -20,7 +20,7 @@ const validate_site_name_1 = require("../shared/validate-site-name");
20
20
  const bucket_exists_1 = require("./bucket-exists");
21
21
  const upload_dir_1 = require("./upload-dir");
22
22
  const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options, region, privacy, gitSource, throwIfSiteExists, }) => {
23
- var _a, _b, _c, _d;
23
+ var _a, _b, _c, _d, _e, _f, _g;
24
24
  (0, validate_aws_region_1.validateAwsRegion)(region);
25
25
  (0, validate_bucketname_1.validateBucketName)(bucketName, {
26
26
  mustStartWithRemotion: !(options === null || options === void 0 ? void 0 : options.bypassBucketNameValidation),
@@ -49,12 +49,18 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
49
49
  publicPath: `/${subFolder}/`,
50
50
  webpackOverride: (_a = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _a !== void 0 ? _a : ((f) => f),
51
51
  enableCaching: (_b = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _b !== void 0 ? _b : true,
52
- publicDir: options === null || options === void 0 ? void 0 : options.publicDir,
53
- rootDir: options === null || options === void 0 ? void 0 : options.rootDir,
54
- ignoreRegisterRootWarning: options === null || options === void 0 ? void 0 : options.ignoreRegisterRootWarning,
55
- onProgress: (_c = options === null || options === void 0 ? void 0 : options.onBundleProgress) !== null && _c !== void 0 ? _c : (() => undefined),
52
+ publicDir: (_c = options === null || options === void 0 ? void 0 : options.publicDir) !== null && _c !== void 0 ? _c : null,
53
+ rootDir: (_d = options === null || options === void 0 ? void 0 : options.rootDir) !== null && _d !== void 0 ? _d : null,
54
+ ignoreRegisterRootWarning: (_e = options === null || options === void 0 ? void 0 : options.ignoreRegisterRootWarning) !== null && _e !== void 0 ? _e : false,
55
+ onProgress: (_f = options === null || options === void 0 ? void 0 : options.onBundleProgress) !== null && _f !== void 0 ? _f : (() => undefined),
56
56
  entryPoint,
57
57
  gitSource,
58
+ bufferStateDelayInMilliseconds: null,
59
+ maxTimelineTracks: null,
60
+ onDirectoryCreated: () => undefined,
61
+ onPublicDirCopyProgress: () => undefined,
62
+ onSymlinkDetected: () => undefined,
63
+ outDir: null,
58
64
  }),
59
65
  ]);
60
66
  if (throwIfSiteExists && files.length > 0) {
@@ -74,7 +80,7 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
74
80
  bucket: bucketName,
75
81
  region,
76
82
  localDir: bundled,
77
- onProgress: (_d = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _d !== void 0 ? _d : (() => undefined),
83
+ onProgress: (_g = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _g !== void 0 ? _g : (() => undefined),
78
84
  keyPrefix: subFolder,
79
85
  privacy: privacy !== null && privacy !== void 0 ? privacy : 'public',
80
86
  toUpload,
@@ -51,6 +51,7 @@ export type RenderMediaOnLambdaOutput = {
51
51
  cloudWatchMainLogs: string;
52
52
  lambdaInsightsLogs: string;
53
53
  folderInS3Console: string;
54
+ progressJsonInConsole: string;
54
55
  };
55
56
  export declare const internalRenderMediaOnLambdaRaw: (input: InnerRenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
56
57
  export declare const renderMediaOnLambdaOptionalToRequired: (options: RenderMediaOnLambdaInput) => InnerRenderMediaOnLambdaInput;
@@ -43,6 +43,11 @@ const internalRenderMediaOnLambdaRaw = async (input) => {
43
43
  functionName,
44
44
  region,
45
45
  }),
46
+ progressJsonInConsole: (0, get_aws_urls_1.getProgressJsonUrl)({
47
+ bucketName: res.bucketName,
48
+ renderId: res.renderId,
49
+ region,
50
+ }),
46
51
  };
47
52
  }
48
53
  catch (err) {
@@ -245,6 +245,13 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
245
245
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Bucket: ${cli_1.CliInternals.makeHyperlink({ text: res.bucketName, fallback: res.bucketName, url: `https://${(0, get_aws_region_1.getAwsRegion)()}.console.aws.amazon.com/s3/buckets/${res.bucketName}/?region=${(0, get_aws_region_1.getAwsRegion)()}` })}`));
246
246
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Function: ${cli_1.CliInternals.makeHyperlink({ text: functionName, fallback: functionName, url: `https://${(0, get_aws_region_1.getAwsRegion)()}.console.aws.amazon.com/lambda/home#/functions/${functionName}?tab=code` })}`));
247
247
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Render ID: ${cli_1.CliInternals.makeHyperlink({ text: res.renderId, fallback: res.renderId, url: res.folderInS3Console })}`));
248
+ log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`progress.json: ${cli_1.CliInternals.makeHyperlink({
249
+ text: (clickInstruction) => {
250
+ return `${clickInstruction} to view`;
251
+ },
252
+ fallback: res.progressJsonInConsole,
253
+ url: res.progressJsonInConsole,
254
+ })}`));
248
255
  log_1.Log.info({
249
256
  indent: false,
250
257
  logLevel,
@@ -16,7 +16,7 @@ const progress_bar_1 = require("../../helpers/progress-bar");
16
16
  const quit_1 = require("../../helpers/quit");
17
17
  const log_1 = require("../../log");
18
18
  exports.SITES_CREATE_SUBCOMMAND = 'create';
19
- const { folderExpiryOption, publicDirOption, throwIfSiteExistsOption } = client_1.BrowserSafeApis.options;
19
+ const { folderExpiryOption, publicDirOption, throwIfSiteExistsOption, disableGitSourceOption, } = client_1.BrowserSafeApis.options;
20
20
  const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
21
21
  var _a, _b, _c, _d;
22
22
  const { file, reason } = cli_1.CliInternals.findEntryPoint({
@@ -87,6 +87,10 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
87
87
  const throwIfSiteExists = throwIfSiteExistsOption.getValue({
88
88
  commandLine: cli_1.CliInternals.parsedCli,
89
89
  }).value;
90
+ const disableGitSource = disableGitSourceOption.getValue({
91
+ commandLine: cli_1.CliInternals.parsedCli,
92
+ }).value;
93
+ const gitSource = cli_1.CliInternals.getGitSource({ remotionRoot, disableGitSource });
90
94
  const { serveUrl, siteName, stats } = await internals_1.LambdaInternals.internalDeploySite({
91
95
  entryPoint: file,
92
96
  siteName: desiredSiteName !== null && desiredSiteName !== void 0 ? desiredSiteName : (0, random_hash_1.randomHash)(),
@@ -119,7 +123,7 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
119
123
  },
120
124
  region: (0, get_aws_region_1.getAwsRegion)(),
121
125
  privacy: (_d = args_1.parsedLambdaCli.privacy) !== null && _d !== void 0 ? _d : 'public',
122
- gitSource: null,
126
+ gitSource,
123
127
  indent: false,
124
128
  logLevel,
125
129
  throwIfSiteExists,
@@ -36,8 +36,8 @@ const findFunctionName = async (logLevel) => {
36
36
  }
37
37
  log_1.Log.info(logOptions, 'Prefer using one of those functions by passing their name to `--function-name` or removing it entirely.');
38
38
  }
39
- return cliFlag;
40
39
  }
40
+ return cliFlag;
41
41
  }
42
42
  if (lambdasWithMatchingVersion.length === 0) {
43
43
  log_1.Log.error({ indent: false, logLevel }, `No Lambda functions with version ${version_1.VERSION} found in your account.`);
@@ -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,5 +1,5 @@
1
1
  export declare const LambdaInternals: {
2
- executeCommand: (args: string[], remotionRoot: string, logLevel: "error" | "verbose" | "info" | "warn") => Promise<void>;
2
+ executeCommand: (args: string[], remotionRoot: string, logLevel: "verbose" | "info" | "warn" | "error") => Promise<void>;
3
3
  makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, }: import("./api/make-lambda-payload").InnerRenderMediaOnLambdaInput) => Promise<import("./defaults").LambdaStartPayload>;
4
4
  getRenderProgressPayload: ({ bucketName, renderId, s3OutputProvider, logLevel, }: import("./client").GetRenderProgressInput) => import("./defaults").LambdaStatusPayload;
5
5
  makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, quality, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, }: import("./api/render-still-on-lambda").RenderStillOnLambdaNonNullInput) => Promise<{
@@ -14,7 +14,7 @@ export declare const LambdaInternals: {
14
14
  maxRetries: number;
15
15
  frame: number;
16
16
  privacy: import("./defaults").Privacy;
17
- logLevel: "error" | "verbose" | "info" | "warn";
17
+ logLevel: "verbose" | "info" | "warn" | "error";
18
18
  outName: import("./defaults").OutNameInput | null;
19
19
  timeoutInMilliseconds: number;
20
20
  chromiumOptions: import("@remotion/renderer").ChromiumOptions;
@@ -57,11 +57,11 @@ export declare const LambdaInternals: {
57
57
  getValue: ({ commandLine }: {
58
58
  commandLine: Record<string, unknown>;
59
59
  }) => {
60
- value: "error" | "verbose" | "info" | "warn";
60
+ value: "verbose" | "info" | "warn" | "error";
61
61
  source: string;
62
62
  };
63
- setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
64
- type: "error" | "verbose" | "info" | "warn";
63
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
64
+ type: "verbose" | "info" | "warn" | "error";
65
65
  };
66
66
  readonly throwIfSiteExists: {
67
67
  cliFlag: string;
@@ -23,3 +23,8 @@ export declare const getS3RenderUrl: ({ renderId, region, bucketName, }: {
23
23
  region: AwsRegion;
24
24
  bucketName: string;
25
25
  }) => string;
26
+ export declare const getProgressJsonUrl: ({ region, bucketName, renderId, }: {
27
+ region: AwsRegion;
28
+ bucketName: string;
29
+ renderId: string;
30
+ }) => string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getS3RenderUrl = exports.getCloudwatchRendererUrl = exports.getLambdaInsightsUrl = exports.getCloudwatchMethodUrl = void 0;
3
+ exports.getProgressJsonUrl = exports.getS3RenderUrl = exports.getCloudwatchRendererUrl = exports.getLambdaInsightsUrl = exports.getCloudwatchMethodUrl = void 0;
4
4
  const encode_aws_url_params_1 = require("./encode-aws-url-params");
5
5
  const cloudWatchUrlWithQuery = ({ region, functionNameToUse, query, }) => {
6
6
  return `https://${region}.console.aws.amazon.com/cloudwatch/home?region=${region}#logsV2:log-groups/log-group/$252Faws$252Flambda$252F${functionNameToUse}/log-events$3FfilterPattern$3D${(0, encode_aws_url_params_1.encodeAwsUrlParams)(query)}`;
@@ -25,3 +25,7 @@ const getS3RenderUrl = ({ renderId, region, bucketName, }) => {
25
25
  return `https://s3.console.aws.amazon.com/s3/buckets/${bucketName}?region=${region}&prefix=renders/${renderId}/`;
26
26
  };
27
27
  exports.getS3RenderUrl = getS3RenderUrl;
28
+ const getProgressJsonUrl = ({ region, bucketName, renderId, }) => {
29
+ return `https://${region}.console.aws.amazon.com/s3/object/${bucketName}?region=${region}&bucketType=general&prefix=renders/${renderId}/progress.json`;
30
+ };
31
+ exports.getProgressJsonUrl = getProgressJsonUrl;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
4
4
  },
5
5
  "name": "@remotion/lambda",
6
- "version": "4.0.180",
6
+ "version": "4.0.182",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -22,11 +22,11 @@
22
22
  "@aws-sdk/s3-request-presigner": "3.583.0",
23
23
  "mime-types": "2.1.34",
24
24
  "zod": "3.22.3",
25
- "@remotion/bundler": "4.0.180",
26
- "@remotion/streaming": "4.0.180",
27
- "@remotion/renderer": "4.0.180",
28
- "remotion": "4.0.180",
29
- "@remotion/cli": "4.0.180"
25
+ "@remotion/cli": "4.0.182",
26
+ "@remotion/renderer": "4.0.182",
27
+ "@remotion/streaming": "4.0.182",
28
+ "@remotion/bundler": "4.0.182",
29
+ "remotion": "4.0.182"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/mime-types": "2.1.1",
@@ -35,11 +35,11 @@
35
35
  "pureimage": "0.4.13",
36
36
  "vitest": "0.31.1",
37
37
  "zip-lib": "^0.7.2",
38
- "@remotion/bundler": "4.0.180",
39
- "@remotion/compositor-linux-arm64-gnu": "4.0.180"
38
+ "@remotion/compositor-linux-arm64-gnu": "4.0.182",
39
+ "@remotion/bundler": "4.0.182"
40
40
  },
41
41
  "peerDependencies": {
42
- "@remotion/bundler": "4.0.180"
42
+ "@remotion/bundler": "4.0.182"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
Binary file