@remotion/cloudrun 4.0.350 → 4.0.351

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,5 +1,5 @@
1
1
 
2
2
  
3
- > @remotion/cloudrun@4.0.350 make /Users/jonathanburger/remotion/packages/cloudrun
3
+ > @remotion/cloudrun@4.0.351 make /Users/jonathanburger/remotion/packages/cloudrun
4
4
  > tsc -d && cp src/shared/sa-permissions.json dist/shared/sa-permissions.json
5
5
 
@@ -1,24 +1,27 @@
1
1
 
2
- $ bun test src
3
- bun test v1.2.21 (7c45ed97)
2
+ 
3
+ > @remotion/cloudrun@4.0.311 test /Users/jonathanburger/remotion/packages/cloudrun
4
+ > bun test src
5
+
6
+ bun test v1.2.14 (6a363a38)
4
7
  
5
8
  src/api/test/service-names.test.ts:
6
- ✓ Parse service names [1.35ms]
9
+ ✓ Parse service names [0.48ms]
7
10
  
8
11
  src/api/test/running-in-what-server.test.ts:
9
12
  ✓ is running in cloud tasks = true
10
- ✓ is running in cloud tasks = false [0.03ms]
11
- ✓ which project Id = remotion-test [0.06ms]
12
- ✓ which project Id = remotion-test-cloudtask [0.01ms]
13
+ ✓ is running in cloud tasks = false [0.06ms]
14
+ ✓ which project Id = remotion-test [0.01ms]
15
+ ✓ which project Id = remotion-test-cloudtask
13
16
  
14
17
  src/api/test/payloads.test.ts:
15
- ✓ CloudRunPayload should work with and without optional webhook fields [2.48ms]
18
+ ✓ CloudRunPayload should work with and without optional webhook fields [0.71ms]
16
19
  
17
20
  src/api/test/make-console.test.ts:
18
- ✓ app is in cloud tasks [0.34ms]
19
- ✓ app is not in cloud tasks [0.03ms]
21
+ ✓ app is in cloud tasks [0.06ms]
22
+ ✓ app is not in cloud tasks [0.01ms]
20
23
 
21
24
   8 pass
22
25
   0 fail
23
26
  17 expect() calls
24
- Ran 8 tests across 4 files. [99.00ms]
27
+ Ran 8 tests across 4 files. [22.00ms]
@@ -29,21 +29,21 @@ type OptionalParameters = {
29
29
  } & ToOptions<typeof BrowserSafeApis.optionsMap.renderStillOnCloudRun>;
30
30
  export type RenderStillOnCloudrunInput = Partial<OptionalParameters> & MandatoryParameters;
31
31
  export declare const renderStillOnCloudrun: (options: RenderStillOnCloudrunInput) => Promise<{
32
+ name: string;
33
+ message: string;
34
+ type: "error";
35
+ stack: string;
36
+ } | {
37
+ bucketName: string;
32
38
  type: "success";
33
39
  privacy: "public-read" | "project-private";
34
40
  cloudStorageUri: string;
35
41
  size: number;
36
- bucketName: string;
37
42
  renderId: string;
38
43
  publicUrl?: string | null | undefined;
39
44
  } | {
40
- type: "error";
41
- message: string;
42
- name: string;
43
- stack: string;
44
- } | {
45
- type: "crash";
46
45
  message: "Service crashed without sending a response. Check the logs in GCP console.";
46
+ type: "crash";
47
47
  cloudRunEndpoint: string;
48
48
  requestStartTime: string;
49
49
  requestCrashTime: string;
@@ -130,7 +130,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
130
130
  envVariables: Record<string, string>;
131
131
  muted: boolean;
132
132
  outputBucket: string;
133
- logLevel: "error" | "trace" | "verbose" | "info" | "warn";
133
+ logLevel: "trace" | "verbose" | "info" | "warn" | "error";
134
134
  delayRenderTimeoutInMilliseconds: number | null;
135
135
  concurrency: string | number | null;
136
136
  enforceAudioTrack: boolean;
@@ -188,7 +188,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
188
188
  envVariables: Record<string, string>;
189
189
  muted: boolean;
190
190
  outputBucket: string;
191
- logLevel: "error" | "trace" | "verbose" | "info" | "warn";
191
+ logLevel: "trace" | "verbose" | "info" | "warn" | "error";
192
192
  delayRenderTimeoutInMilliseconds: number | null;
193
193
  concurrency: string | number | null;
194
194
  enforceAudioTrack: boolean;
@@ -306,7 +306,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
306
306
  outputBucket: string;
307
307
  outName: string | null;
308
308
  privacy: "public" | "private" | "no-acl";
309
- logLevel: "error" | "trace" | "verbose" | "info" | "warn";
309
+ logLevel: "trace" | "verbose" | "info" | "warn" | "error";
310
310
  delayRenderTimeoutInMilliseconds: number;
311
311
  offthreadVideoCacheSizeInBytes: number | null;
312
312
  offthreadVideoThreads: number | null;
@@ -347,7 +347,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
347
347
  outputBucket: string;
348
348
  outName: string | null;
349
349
  privacy: "public" | "private" | "no-acl";
350
- logLevel: "error" | "trace" | "verbose" | "info" | "warn";
350
+ logLevel: "trace" | "verbose" | "info" | "warn" | "error";
351
351
  delayRenderTimeoutInMilliseconds: number;
352
352
  offthreadVideoCacheSizeInBytes: number | null;
353
353
  offthreadVideoThreads: number | null;
@@ -384,14 +384,14 @@ declare const renderFailResponsePayload: z.ZodObject<{
384
384
  name: z.ZodString;
385
385
  stack: z.ZodString;
386
386
  }, "strip", z.ZodTypeAny, {
387
- type: "error";
388
- message: string;
389
387
  name: string;
388
+ message: string;
389
+ type: "error";
390
390
  stack: string;
391
391
  }, {
392
- type: "error";
393
- message: string;
394
392
  name: string;
393
+ message: string;
394
+ type: "error";
395
395
  stack: string;
396
396
  }>;
397
397
  declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
@@ -403,19 +403,19 @@ declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
403
403
  renderId: z.ZodString;
404
404
  privacy: z.ZodEnum<["public-read", "project-private"]>;
405
405
  }, "strip", z.ZodTypeAny, {
406
+ bucketName: string;
406
407
  type: "success";
407
408
  privacy: "public-read" | "project-private";
408
409
  cloudStorageUri: string;
409
410
  size: number;
410
- bucketName: string;
411
411
  renderId: string;
412
412
  publicUrl?: string | null | undefined;
413
413
  }, {
414
+ bucketName: string;
414
415
  type: "success";
415
416
  privacy: "public-read" | "project-private";
416
417
  cloudStorageUri: string;
417
418
  size: number;
418
- bucketName: string;
419
419
  renderId: string;
420
420
  publicUrl?: string | null | undefined;
421
421
  }>;
@@ -428,19 +428,19 @@ declare const renderMediaOnCloudrunResponsePayload: z.ZodObject<{
428
428
  renderId: z.ZodString;
429
429
  privacy: z.ZodEnum<["public-read", "project-private"]>;
430
430
  }, "strip", z.ZodTypeAny, {
431
+ bucketName: string;
431
432
  type: "success";
432
433
  privacy: "public-read" | "project-private";
433
434
  cloudStorageUri: string;
434
435
  size: number;
435
- bucketName: string;
436
436
  renderId: string;
437
437
  publicUrl?: string | null | undefined;
438
438
  }, {
439
+ bucketName: string;
439
440
  type: "success";
440
441
  privacy: "public-read" | "project-private";
441
442
  cloudStorageUri: string;
442
443
  size: number;
443
- bucketName: string;
444
444
  renderId: string;
445
445
  publicUrl?: string | null | undefined;
446
446
  }>;
@@ -452,15 +452,15 @@ declare const cloudRunCrashResponse: z.ZodObject<{
452
452
  requestCrashTime: z.ZodString;
453
453
  requestElapsedTimeInSeconds: z.ZodNumber;
454
454
  }, "strip", z.ZodTypeAny, {
455
- type: "crash";
456
455
  message: "Service crashed without sending a response. Check the logs in GCP console.";
456
+ type: "crash";
457
457
  cloudRunEndpoint: string;
458
458
  requestStartTime: string;
459
459
  requestCrashTime: string;
460
460
  requestElapsedTimeInSeconds: number;
461
461
  }, {
462
- type: "crash";
463
462
  message: "Service crashed without sending a response. Check the logs in GCP console.";
463
+ type: "crash";
464
464
  cloudRunEndpoint: string;
465
465
  requestStartTime: string;
466
466
  requestCrashTime: string;
package/dist/index.d.ts CHANGED
@@ -21,21 +21,21 @@ declare const renderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveU
21
21
  * @deprecated Import this from `@remotion/cloudrun/client` instead
22
22
  */
23
23
  declare const renderStillOnCloudrun: (options: import("./api/render-still-on-cloudrun").RenderStillOnCloudrunInput) => Promise<{
24
+ name: string;
25
+ message: string;
26
+ type: "error";
27
+ stack: string;
28
+ } | {
29
+ bucketName: string;
24
30
  type: "success";
25
31
  privacy: "public-read" | "project-private";
26
32
  cloudStorageUri: string;
27
33
  size: number;
28
- bucketName: string;
29
34
  renderId: string;
30
35
  publicUrl?: string | null | undefined;
31
36
  } | {
32
- type: "error";
33
- message: string;
34
- name: string;
35
- stack: string;
36
- } | {
37
- type: "crash";
38
37
  message: "Service crashed without sending a response. Check the logs in GCP console.";
38
+ type: "crash";
39
39
  cloudRunEndpoint: string;
40
40
  requestStartTime: string;
41
41
  requestCrashTime: string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/cloudrun"
4
4
  },
5
5
  "name": "@remotion/cloudrun",
6
- "version": "4.0.350",
6
+ "version": "4.0.351",
7
7
  "description": "Render Remotion videos on Google Cloud Run",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -16,16 +16,16 @@
16
16
  "@google-cloud/logging": "11.2.0",
17
17
  "google-auth-library": "8.7.0",
18
18
  "zod": "3.22.3",
19
- "remotion": "4.0.350",
20
- "@remotion/cli": "4.0.350",
21
- "@remotion/renderer": "4.0.350",
22
- "@remotion/bundler": "4.0.350"
19
+ "@remotion/renderer": "4.0.351",
20
+ "remotion": "4.0.351",
21
+ "@remotion/cli": "4.0.351",
22
+ "@remotion/bundler": "4.0.351"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/minimist": "1.2.2",
26
26
  "eslint": "9.19.0",
27
- "@remotion/eslint-config-internal": "4.0.350",
28
- "@remotion/compositor-linux-x64-gnu": "4.0.350"
27
+ "@remotion/compositor-linux-x64-gnu": "4.0.351",
28
+ "@remotion/eslint-config-internal": "4.0.351"
29
29
  },
30
30
  "exports": {
31
31
  "./package.json": "./package.json",