@remotion/cloudrun 4.0.55 → 4.0.57

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,14 +1,14 @@
1
1
 
2
- > @remotion/cloudrun@4.0.54 build /Users/jonathanburger/remotion/packages/cloudrun
2
+ > @remotion/cloudrun@4.0.56 build /Users/jonathanburger/remotion/packages/cloudrun
3
3
  > tsc -d && cp src/shared/sa-permissions.json dist/shared/sa-permissions.json && pnpm run buildContainer && pnpm run tarInstaller
4
4
 
5
5
 
6
- > @remotion/cloudrun@4.0.54 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
6
+ > @remotion/cloudrun@4.0.56 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
7
7
  > ts-node src/admin/bundle-renderLogic.ts
8
8
 
9
9
  distribution bundled.
10
10
 
11
- > @remotion/cloudrun@4.0.54 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
11
+ > @remotion/cloudrun@4.0.56 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
12
12
  > ts-node src/admin/bundle-installer.ts
13
13
 
14
14
  Making reproducible build with gtar
@@ -1,5 +1,5 @@
1
1
 
2
- > @remotion/cloudrun@4.0.45 lint /Users/jonathanburger/remotion/packages/cloudrun
2
+ > @remotion/cloudrun@4.0.56 lint /Users/jonathanburger/remotion/packages/cloudrun
3
3
  > eslint src --ext ts,tsx
4
4
 
5
5
  Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
@@ -15,13 +15,13 @@ Warning: React version was set to "detect" in eslint-plugin-react settings, but
15
15
  153:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
16
16
 
17
17
  /Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/helpers/renderArgsCheck.ts
18
- 68:4 warning Unexpected 'todo' comment: 'TODO: Log if there is an incompatible...' no-warning-comments
18
+ 76:4 warning Unexpected 'todo' comment: 'TODO: Log if there is an incompatible...' no-warning-comments
19
19
 
20
20
  /Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/index.ts
21
- 118:2 warning Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' no-warning-comments
21
+ 124:2 warning Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' no-warning-comments
22
22
 
23
23
  /Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/still.ts
24
- 104:2 warning Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' no-warning-comments
24
+ 112:2 warning Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' no-warning-comments
25
25
 
26
26
  ✖ 7 problems (0 errors, 7 warnings)
27
27
 
@@ -1,4 +1,5 @@
1
- export declare const renderArgsCheck: (subcommand: string, args: string[]) => Promise<{
1
+ import type { LogLevel } from '@remotion/renderer';
2
+ export declare const renderArgsCheck: (subcommand: string, args: string[], logLevel: LogLevel) => Promise<{
2
3
  serveUrl: string;
3
4
  cloudRunUrl: any;
4
5
  outName: string | undefined;
@@ -13,7 +13,7 @@ const quit_1 = require("../../../helpers/quit");
13
13
  const log_1 = require("../../../log");
14
14
  const services_1 = require("../../services");
15
15
  const deploy_1 = require("../../services/deploy");
16
- const renderArgsCheck = async (subcommand, args) => {
16
+ const renderArgsCheck = async (subcommand, args, logLevel) => {
17
17
  var _a, _b, _c, _d;
18
18
  let region = (0, get_gcp_region_1.getGcpRegion)();
19
19
  let remotionBucket;
@@ -27,7 +27,7 @@ const renderArgsCheck = async (subcommand, args) => {
27
27
  }
28
28
  if (!serveUrl.startsWith('https://') && !serveUrl.startsWith('http://')) {
29
29
  const siteName = serveUrl;
30
- log_1.Log.verbose('Remotion site-name passed, constructing serve url...');
30
+ log_1.Log.verbose({ indent: false, logLevel }, 'Remotion site-name passed, constructing serve url...');
31
31
  region = region !== null && region !== void 0 ? region : (0, get_gcp_region_1.getGcpRegion)();
32
32
  remotionBucket = (await (0, get_or_create_bucket_1.getOrCreateBucket)({ region })).bucketName;
33
33
  serveUrl = (0, convert_to_serve_url_1.convertToServeUrl)({
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export declare const RENDER_COMMAND = "render";
2
- export declare const renderCommand: (args: string[], remotionRoot: string) => Promise<void>;
3
+ export declare const renderCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
@@ -13,9 +13,9 @@ const cloudrun_crash_logs_1 = require("../../helpers/cloudrun-crash-logs");
13
13
  const log_1 = require("../../log");
14
14
  const renderArgsCheck_1 = require("./helpers/renderArgsCheck");
15
15
  exports.RENDER_COMMAND = 'render';
16
- const renderCommand = async (args, remotionRoot) => {
16
+ const renderCommand = async (args, remotionRoot, logLevel) => {
17
17
  var _a, _b;
18
- const { serveUrl, cloudRunUrl, outName, forceBucketName, downloadName, privacy, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.RENDER_COMMAND, args);
18
+ const { serveUrl, cloudRunUrl, outName, forceBucketName, downloadName, privacy, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.RENDER_COMMAND, args, logLevel);
19
19
  const { codec, reason: codecReason } = cli_1.CliInternals.getFinalOutputCodec({
20
20
  cliFlag: cli_1.CliInternals.parsedCli.codec,
21
21
  downloadName,
@@ -26,10 +26,11 @@ const renderCommand = async (args, remotionRoot) => {
26
26
  });
27
27
  const imageFormat = args_1.parsedCloudrunCli['image-format'];
28
28
  const audioCodec = args_1.parsedCloudrunCli['audio-codec'];
29
- const { chromiumOptions, crf, envVariables, frameRange, inputProps, logLevel, puppeteerTimeout, pixelFormat, proResProfile, x264Preset, jpegQuality, scale, everyNthFrame, numberOfGifLoops, muted, audioBitrate, videoBitrate, height, width, browserExecutable, port, enforceAudioTrack, offthreadVideoCacheSizeInBytes, colorSpace, } = await cli_1.CliInternals.getCliOptions({
29
+ const { chromiumOptions, crf, envVariables, frameRange, inputProps, puppeteerTimeout, pixelFormat, proResProfile, x264Preset, jpegQuality, scale, everyNthFrame, numberOfGifLoops, muted, audioBitrate, videoBitrate, height, width, browserExecutable, port, enforceAudioTrack, offthreadVideoCacheSizeInBytes, colorSpace, } = await cli_1.CliInternals.getCliOptions({
30
30
  type: 'series',
31
31
  isLambda: true,
32
32
  remotionRoot,
33
+ logLevel,
33
34
  });
34
35
  let composition = args[1];
35
36
  if (!composition) {
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export declare const SITES_CREATE_SUBCOMMAND = "create";
2
- export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string) => Promise<void>;
3
+ export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
@@ -16,9 +16,9 @@ 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 sitesCreateSubcommand = async (args, remotionRoot) => {
19
+ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
20
20
  var _a, _b;
21
- const { file, reason } = cli_1.CliInternals.findEntryPoint(args, remotionRoot);
21
+ const { file, reason } = cli_1.CliInternals.findEntryPoint(args, remotionRoot, logLevel);
22
22
  if (!file) {
23
23
  log_1.Log.error('No entry file passed.');
24
24
  log_1.Log.info('Pass an additional argument specifying the entry file of your Remotion project:');
@@ -27,7 +27,7 @@ const sitesCreateSubcommand = async (args, remotionRoot) => {
27
27
  (0, quit_1.quit)(1);
28
28
  return;
29
29
  }
30
- log_1.Log.verbose('Entry point:', file, 'Reason:', reason);
30
+ log_1.Log.verbose({ indent: false, logLevel }, 'Entry point:', file, 'Reason:', reason);
31
31
  if (!(0, fs_1.existsSync)(file)) {
32
32
  log_1.Log.error(`No file exists at ${file}. Make sure the path exists and try again.`);
33
33
  (0, quit_1.quit)(1);
@@ -1,4 +1,5 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  import type { Site } from '../../../api/get-sites';
2
3
  export declare const SITES_COMMAND = "sites";
3
4
  export declare const displaySiteInfo: (site: Site) => string;
4
- export declare const sitesCommand: (args: string[], remotionRoot: string) => Promise<void> | undefined;
5
+ export declare const sitesCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void> | undefined;
@@ -37,9 +37,9 @@ const printSitesHelp = () => {
37
37
  cli_1.CliInternals.Log.info(`${constants_1.BINARY_NAME} ${exports.SITES_COMMAND} ${rmall_1.SITES_RMALL_COMMAND}`);
38
38
  cli_1.CliInternals.Log.info(cli_1.CliInternals.chalk.gray('Remove all sites from the Cloud Storage bucket.'));
39
39
  };
40
- const sitesCommand = (args, remotionRoot) => {
40
+ const sitesCommand = (args, remotionRoot, logLevel) => {
41
41
  if (args[0] === ls_1.SITES_LS_SUBCOMMAND) {
42
- return (0, ls_1.sitesLsSubcommand)();
42
+ return (0, ls_1.sitesLsSubcommand)(logLevel);
43
43
  }
44
44
  if (args[0] === rm_1.SITES_RM_COMMAND) {
45
45
  return (0, rm_1.sitesRmSubcommand)(args.slice(1));
@@ -48,7 +48,7 @@ const sitesCommand = (args, remotionRoot) => {
48
48
  return (0, rmall_1.sitesRmallSubcommand)();
49
49
  }
50
50
  if (args[0] === create_1.SITES_CREATE_SUBCOMMAND) {
51
- return (0, create_1.sitesCreateSubcommand)(args.slice(1), remotionRoot);
51
+ return (0, create_1.sitesCreateSubcommand)(args.slice(1), remotionRoot, logLevel);
52
52
  }
53
53
  if (args[0]) {
54
54
  log_1.Log.error(`Subcommand ${args[0]} not found.`);
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export declare const SITES_LS_SUBCOMMAND = "ls";
2
- export declare const sitesLsSubcommand: () => Promise<void>;
3
+ export declare const sitesLsSubcommand: (logLevel: LogLevel) => Promise<void>;
@@ -8,7 +8,7 @@ const args_1 = require("../../args");
8
8
  const get_gcp_region_1 = require("../../get-gcp-region");
9
9
  const log_1 = require("../../log");
10
10
  exports.SITES_LS_SUBCOMMAND = 'ls';
11
- const sitesLsSubcommand = async () => {
11
+ const sitesLsSubcommand = async (logLevel) => {
12
12
  // check if --allRegions flag is provided
13
13
  // if so, list all sites
14
14
  // else, list only the sites that are in the current project
@@ -16,7 +16,7 @@ const sitesLsSubcommand = async () => {
16
16
  const region = allRegions ? 'all regions' : (0, get_gcp_region_1.getGcpRegion)();
17
17
  const { sites, buckets } = await (0, get_sites_1.getSites)(region);
18
18
  if (buckets.length > 1 && !cli_1.CliInternals.quietFlagProvided() && !allRegions) {
19
- log_1.Log.warn(`Warning: You have more than one Remotion Cloud Storage bucket in ${region}, but only one is needed. This can lead to conflicts. Remove all but one of them.`);
19
+ log_1.Log.warn({ indent: false, logLevel }, `Warning: You have more than one Remotion Cloud Storage bucket in ${region}, but only one is needed. This can lead to conflicts. Remove all but one of them.`);
20
20
  }
21
21
  const sitesPluralized = sites.length === 1 ? 'site' : 'sites';
22
22
  if (!cli_1.CliInternals.quietFlagProvided()) {
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export declare const STILL_COMMAND = "still";
2
- export declare const stillCommand: (args: string[], remotionRoot: string) => Promise<void>;
3
+ export declare const stillCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
@@ -12,13 +12,14 @@ const cloudrun_crash_logs_1 = require("../helpers/cloudrun-crash-logs");
12
12
  const log_1 = require("../log");
13
13
  const renderArgsCheck_1 = require("./render/helpers/renderArgsCheck");
14
14
  exports.STILL_COMMAND = 'still';
15
- const stillCommand = async (args, remotionRoot) => {
15
+ const stillCommand = async (args, remotionRoot, logLevel) => {
16
16
  var _a, _b;
17
- const { serveUrl, cloudRunUrl, outName, forceBucketName, privacy, downloadName, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.STILL_COMMAND, args);
18
- const { chromiumOptions, envVariables, inputProps, puppeteerTimeout, jpegQuality, stillFrame, scale, height, width, browserExecutable, port, logLevel, offthreadVideoCacheSizeInBytes, } = await cli_1.CliInternals.getCliOptions({
17
+ const { serveUrl, cloudRunUrl, outName, forceBucketName, privacy, downloadName, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.STILL_COMMAND, args, logLevel);
18
+ const { chromiumOptions, envVariables, inputProps, puppeteerTimeout, jpegQuality, stillFrame, scale, height, width, browserExecutable, port, offthreadVideoCacheSizeInBytes, } = await cli_1.CliInternals.getCliOptions({
19
19
  type: 'still',
20
20
  isLambda: true,
21
21
  remotionRoot,
22
+ logLevel,
22
23
  });
23
24
  let composition = args[1];
24
25
  if (!composition) {
@@ -68,7 +69,7 @@ const stillCommand = async (args, remotionRoot) => {
68
69
  fromUi: null,
69
70
  configImageFormat: (_b = config_1.ConfigInternals.getUserPreferredStillImageFormat()) !== null && _b !== void 0 ? _b : null,
70
71
  });
71
- log_1.Log.verbose(`Image format: (${imageFormat}), ${imageFormatReason}`);
72
+ log_1.Log.verbose({ indent: false, logLevel }, `Image format: (${imageFormat}), ${imageFormatReason}`);
72
73
  // Todo: Check cloudRunUrl is valid, as the error message is obtuse
73
74
  cli_1.CliInternals.Log.info(cli_1.CliInternals.chalk.gray(`
74
75
  Cloud Run Service URL = ${cloudRunUrl}
@@ -1 +1,2 @@
1
- export declare const executeCommand: (args: string[], remotionRoot: string) => Promise<void>;
1
+ import type { LogLevel } from '@remotion/renderer';
2
+ export declare const executeCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
package/dist/cli/index.js CHANGED
@@ -14,22 +14,22 @@ const still_1 = require("./commands/still");
14
14
  const help_1 = require("./help");
15
15
  const quit_1 = require("./helpers/quit");
16
16
  const log_1 = require("./log");
17
- const matchCommand = (args, remotionRoot) => {
17
+ const matchCommand = (args, remotionRoot, logLevel) => {
18
18
  if (args_1.parsedCloudrunCli.help || args.length === 0 || args[0] === 'help') {
19
19
  (0, help_1.printHelp)();
20
20
  (0, quit_1.quit)(0);
21
21
  }
22
22
  if (args[0] === render_1.RENDER_COMMAND) {
23
- return (0, render_1.renderCommand)(args.slice(1), remotionRoot);
23
+ return (0, render_1.renderCommand)(args.slice(1), remotionRoot, logLevel);
24
24
  }
25
25
  if (args[0] === still_1.STILL_COMMAND) {
26
- return (0, still_1.stillCommand)(args.slice(1), remotionRoot);
26
+ return (0, still_1.stillCommand)(args.slice(1), remotionRoot, logLevel);
27
27
  }
28
28
  if (args[0] === services_1.SERVICES_COMMAND) {
29
29
  return (0, services_1.servicesCommand)(args.slice(1));
30
30
  }
31
31
  if (args[0] === sites_1.SITES_COMMAND) {
32
- return (0, sites_1.sitesCommand)(args.slice(1), remotionRoot);
32
+ return (0, sites_1.sitesCommand)(args.slice(1), remotionRoot, logLevel);
33
33
  }
34
34
  if (args[0] === regions_1.REGIONS_COMMAND) {
35
35
  return (0, regions_1.regionsCommand)();
@@ -45,10 +45,10 @@ const matchCommand = (args, remotionRoot) => {
45
45
  (0, help_1.printHelp)();
46
46
  (0, quit_1.quit)(1);
47
47
  };
48
- const executeCommand = async (args, remotionRoot) => {
48
+ const executeCommand = async (args, remotionRoot, logLevel) => {
49
49
  var _a, _b;
50
50
  try {
51
- await matchCommand(args, remotionRoot);
51
+ await matchCommand(args, remotionRoot, logLevel);
52
52
  }
53
53
  catch (err) {
54
54
  const error = err;
package/dist/cli/log.d.ts CHANGED
@@ -1,26 +1,12 @@
1
1
  export declare const Log: {
2
- verbose: (message?: any, ...optionalParams: any[]) => void;
3
- verboseAdvanced: (options: {
4
- indent: boolean;
5
- logLevel: "error" | "verbose" | "info" | "warn";
6
- } & {
2
+ verbose: (options: import("@remotion/renderer").LogOptions & {
7
3
  tag?: string | undefined;
8
4
  }, message?: any, ...optionalParams: any[]) => void;
9
5
  info: (message?: any, ...optionalParams: any[]) => void;
10
- infoAdvanced: (options: {
11
- indent: boolean;
12
- logLevel: "error" | "verbose" | "info" | "warn";
13
- }, message?: any, ...optionalParams: any[]) => void;
14
- warn: (message?: any, ...optionalParams: any[]) => void;
15
- warnAdvanced: (options: {
16
- indent: boolean;
17
- logLevel: "error" | "verbose" | "info" | "warn";
18
- }, message?: any, ...optionalParams: any[]) => void;
6
+ infoAdvanced: (options: import("@remotion/renderer").LogOptions, message?: any, ...optionalParams: any[]) => void;
7
+ warn: (options: import("@remotion/renderer").LogOptions, message?: any, ...optionalParams: any[]) => void;
19
8
  error: (message?: any, ...optionalParams: any[]) => void;
20
- errorAdvanced: (options: {
21
- indent: boolean;
22
- logLevel: "error" | "verbose" | "info" | "warn";
23
- } & {
9
+ errorAdvanced: (options: import("@remotion/renderer").LogOptions & {
24
10
  tag?: string | undefined;
25
11
  }, message?: any, ...optionalParams: any[]) => void;
26
12
  };
@@ -24,7 +24,7 @@ const getCompositionFromBody = async (body) => {
24
24
  offthreadVideoCacheSizeInBytes: body.offthreadVideoCacheSizeInBytes,
25
25
  });
26
26
  if (propsSize > 10000000) {
27
- renderer_1.RenderInternals.Log.warn(`The props of your composition are large (${propsSize} bytes). This may cause slowdown.`);
27
+ renderer_1.RenderInternals.Log.warn({ indent: false, logLevel: body.logLevel }, `The props of your composition are large (${propsSize} bytes). This may cause slowdown.`);
28
28
  }
29
29
  return metadata;
30
30
  };
@@ -52,8 +52,8 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
52
52
  offthreadVideoCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
53
53
  colorSpace: z.ZodEnum<["default", "bt709"]>;
54
54
  }, "strip", z.ZodTypeAny, {
55
- type: "media";
56
55
  serveUrl: string;
56
+ type: "media";
57
57
  composition: string;
58
58
  codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
59
59
  serializedInputPropsWithCustomSchema: string;
@@ -92,8 +92,8 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
92
92
  outName?: string | undefined;
93
93
  privacy?: "public" | "private" | undefined;
94
94
  }, {
95
- type: "media";
96
95
  serveUrl: string;
96
+ type: "media";
97
97
  composition: string;
98
98
  codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
99
99
  serializedInputPropsWithCustomSchema: string;
@@ -169,8 +169,8 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
169
169
  logLevel: z.ZodEnum<["verbose", "info", "warn", "error"]>;
170
170
  offthreadVideoCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
171
171
  }, "strip", z.ZodTypeAny, {
172
- type: "still";
173
172
  serveUrl: string;
173
+ type: "still";
174
174
  composition: string;
175
175
  serializedInputPropsWithCustomSchema: string;
176
176
  imageFormat: "png" | "jpeg" | "pdf" | "webp";
@@ -194,8 +194,8 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
194
194
  } | undefined;
195
195
  outName?: string | undefined;
196
196
  }, {
197
- type: "still";
198
197
  serveUrl: string;
198
+ type: "still";
199
199
  composition: string;
200
200
  serializedInputPropsWithCustomSchema: string;
201
201
  imageFormat: "png" | "jpeg" | "pdf" | "webp";
@@ -225,13 +225,13 @@ declare const renderFailResponsePayload: z.ZodObject<{
225
225
  name: z.ZodString;
226
226
  stack: z.ZodString;
227
227
  }, "strip", z.ZodTypeAny, {
228
- type: "error";
229
228
  message: string;
229
+ type: "error";
230
230
  name: string;
231
231
  stack: string;
232
232
  }, {
233
- type: "error";
234
233
  message: string;
234
+ type: "error";
235
235
  name: string;
236
236
  stack: string;
237
237
  }>;
@@ -244,19 +244,19 @@ declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
244
244
  renderId: z.ZodString;
245
245
  privacy: z.ZodEnum<["public-read", "project-private"]>;
246
246
  }, "strip", z.ZodTypeAny, {
247
+ bucketName: string;
248
+ size: number;
247
249
  type: "success";
248
250
  privacy: "public-read" | "project-private";
249
251
  cloudStorageUri: string;
250
- size: number;
251
- bucketName: string;
252
252
  renderId: string;
253
253
  publicUrl?: string | null | undefined;
254
254
  }, {
255
+ bucketName: string;
256
+ size: number;
255
257
  type: "success";
256
258
  privacy: "public-read" | "project-private";
257
259
  cloudStorageUri: string;
258
- size: number;
259
- bucketName: string;
260
260
  renderId: string;
261
261
  publicUrl?: string | null | undefined;
262
262
  }>;
@@ -269,19 +269,19 @@ declare const renderMediaOnCloudrunResponsePayload: z.ZodObject<{
269
269
  renderId: z.ZodString;
270
270
  privacy: z.ZodEnum<["public-read", "project-private"]>;
271
271
  }, "strip", z.ZodTypeAny, {
272
+ bucketName: string;
273
+ size: number;
272
274
  type: "success";
273
275
  privacy: "public-read" | "project-private";
274
276
  cloudStorageUri: string;
275
- size: number;
276
- bucketName: string;
277
277
  renderId: string;
278
278
  publicUrl?: string | null | undefined;
279
279
  }, {
280
+ bucketName: string;
281
+ size: number;
280
282
  type: "success";
281
283
  privacy: "public-read" | "project-private";
282
284
  cloudStorageUri: string;
283
- size: number;
284
- bucketName: string;
285
285
  renderId: string;
286
286
  publicUrl?: string | null | undefined;
287
287
  }>;
@@ -293,15 +293,15 @@ declare const cloudRunCrashResponse: z.ZodObject<{
293
293
  requestCrashTime: z.ZodString;
294
294
  requestElapsedTimeInSeconds: z.ZodNumber;
295
295
  }, "strip", z.ZodTypeAny, {
296
- type: "crash";
297
296
  message: "Service crashed without sending a response. Check the logs in GCP console.";
297
+ type: "crash";
298
298
  cloudRunEndpoint: string;
299
299
  requestStartTime: string;
300
300
  requestCrashTime: string;
301
301
  requestElapsedTimeInSeconds: number;
302
302
  }, {
303
- type: "crash";
304
303
  message: "Service crashed without sending a response. Check the logs in GCP console.";
304
+ type: "crash";
305
305
  cloudRunEndpoint: string;
306
306
  requestStartTime: string;
307
307
  requestCrashTime: string;
@@ -15,9 +15,9 @@ const renderStillSingleThread = async (body, res) => {
15
15
  }
16
16
  const renderId = (0, random_hash_1.randomHash)({ randomInTests: true });
17
17
  try {
18
- log_1.Log.verbose('Rendering still frame', body);
18
+ log_1.Log.verbose({ indent: false, logLevel: body.logLevel }, 'Rendering still frame', body);
19
19
  const composition = await (0, get_composition_from_body_1.getCompositionFromBody)(body);
20
- log_1.Log.verbose('Composition loaded', composition);
20
+ log_1.Log.verbose({ indent: false, logLevel: body.logLevel }, 'Composition loaded', composition);
21
21
  const tempFilePath = '/tmp/still.png';
22
22
  const actualChromiumOptions = {
23
23
  ...body.chromiumOptions,
@@ -1,3 +1,3 @@
1
1
  export declare const CloudrunInternals: {
2
- executeCommand: (args: string[], remotionRoot: string) => Promise<void>;
2
+ executeCommand: (args: string[], remotionRoot: string, logLevel: "error" | "verbose" | "info" | "warn") => Promise<void>;
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cloudrun",
3
- "version": "4.0.55",
3
+ "version": "4.0.57",
4
4
  "description": "GCP Cloud Run alternative to lambda rendering",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
@@ -12,10 +12,10 @@
12
12
  "@google-cloud/logging": "^10.5.0",
13
13
  "google-auth-library": "^8.7.0",
14
14
  "zod": "^3.22.3",
15
- "@remotion/bundler": "4.0.55",
16
- "@remotion/renderer": "4.0.55",
17
- "@remotion/cli": "4.0.55",
18
- "remotion": "4.0.55"
15
+ "@remotion/bundler": "4.0.57",
16
+ "@remotion/renderer": "4.0.57",
17
+ "@remotion/cli": "4.0.57",
18
+ "remotion": "4.0.57"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@jonny/eslint-config": "3.0.276",
@@ -26,7 +26,7 @@
26
26
  "prettier-plugin-organize-imports": "^3.2.2",
27
27
  "ts-node": "^10.8.0",
28
28
  "vitest": "0.31.1",
29
- "@remotion/compositor-linux-x64-gnu": "4.0.55"
29
+ "@remotion/compositor-linux-x64-gnu": "4.0.57"
30
30
  },
31
31
  "exports": {
32
32
  "./package.json": "./package.json",