@remotion/cloudrun 4.0.428 → 4.0.429

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.
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.bundleInstaller = exports.hasGTar = void 0;
7
- const bundler_1 = require("@remotion/bundler");
8
7
  const child_process_1 = require("child_process");
9
8
  const fs_1 = require("fs");
10
9
  const path_1 = __importDefault(require("path"));
10
+ const bundler_1 = require("@remotion/bundler");
11
11
  const hasGTar = () => {
12
12
  try {
13
13
  const output = (0, child_process_1.execSync)('gtar --usage', {});
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.bundleRenderLogic = void 0;
7
- const bundler_1 = require("@remotion/bundler");
8
- const compositor_linux_x64_gnu_1 = require("@remotion/compositor-linux-x64-gnu");
9
7
  const fs_1 = __importDefault(require("fs"));
10
8
  const path_1 = __importDefault(require("path"));
9
+ const bundler_1 = require("@remotion/bundler");
10
+ const compositor_linux_x64_gnu_1 = require("@remotion/compositor-linux-x64-gnu");
11
11
  const bundleRenderLogic = async () => {
12
12
  var _a;
13
13
  const outdir = path_1.default.join(__dirname, '../../container/dist');
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.downloadFile = void 0;
7
- const renderer_1 = require("@remotion/renderer");
8
7
  const node_path_1 = __importDefault(require("node:path"));
8
+ const renderer_1 = require("@remotion/renderer");
9
9
  const get_cloud_storage_client_1 = require("./helpers/get-cloud-storage-client");
10
10
  /**
11
11
  * @description Downloads a file from a GCP storage bucket.
@@ -31,6 +31,13 @@ type OptionalParameters = {
31
31
  } & ToOptions<typeof BrowserSafeApis.optionsMap.renderStillOnCloudRun>;
32
32
  export type RenderStillOnCloudrunInput = Partial<OptionalParameters> & MandatoryParameters;
33
33
  export declare const renderStillOnCloudrun: (options: RenderStillOnCloudrunInput) => Promise<{
34
+ type: "crash";
35
+ cloudRunEndpoint: string;
36
+ message: "Service crashed without sending a response. Check the logs in GCP console.";
37
+ requestStartTime: string;
38
+ requestCrashTime: string;
39
+ requestElapsedTimeInSeconds: number;
40
+ } | {
34
41
  type: "success";
35
42
  publicUrl?: string | null | undefined;
36
43
  cloudStorageUri: string;
@@ -43,12 +50,5 @@ export declare const renderStillOnCloudrun: (options: RenderStillOnCloudrunInput
43
50
  message: string;
44
51
  name: string;
45
52
  stack: string;
46
- } | {
47
- type: "crash";
48
- cloudRunEndpoint: string;
49
- message: "Service crashed without sending a response. Check the logs in GCP console.";
50
- requestStartTime: string;
51
- requestCrashTime: string;
52
- requestElapsedTimeInSeconds: number;
53
53
  }>;
54
54
  export {};
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sitesCreateSubcommand = exports.SITES_CREATE_SUBCOMMAND = void 0;
4
+ const fs_1 = require("fs");
4
5
  const cli_1 = require("@remotion/cli");
5
6
  const config_1 = require("@remotion/cli/config");
6
7
  const client_1 = require("@remotion/renderer/client");
7
- const fs_1 = require("fs");
8
8
  const remotion_1 = require("remotion");
9
9
  const _1 = require(".");
10
10
  const deploy_site_1 = require("../../../api/deploy-site");
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.writeCloudrunError = void 0;
7
- const storage_1 = require("@google-cloud/storage");
8
7
  const node_fs_1 = __importDefault(require("node:fs"));
8
+ const storage_1 = require("@google-cloud/storage");
9
9
  const writeCloudrunError = async ({ bucketName, renderId, errorInfo, publicUpload, }) => {
10
10
  const storage = new storage_1.Storage();
11
11
  const tempFilePath = '/tmp/errorInfo.txt';
package/dist/index.d.ts CHANGED
@@ -17,6 +17,13 @@ import type { GcpRegion } from './pricing/gcp-regions';
17
17
  * @deprecated Import this from `@remotion/cloudrun/client` instead
18
18
  */
19
19
  declare const renderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, forceFps, forceDurationInFrames, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, colorSpace, downloadBehavior, metadata, renderIdOverride, renderStatusWebhook, offthreadVideoThreads, mediaCacheSizeInBytes, }: RenderMediaOnCloudrunInput) => Promise<{
20
+ type: "crash";
21
+ cloudRunEndpoint: string;
22
+ message: "Service crashed without sending a response. Check the logs in GCP console.";
23
+ requestStartTime: string;
24
+ requestCrashTime: string;
25
+ requestElapsedTimeInSeconds: number;
26
+ } | {
20
27
  type: "success";
21
28
  publicUrl?: string | null | undefined;
22
29
  cloudStorageUri: string;
@@ -24,18 +31,18 @@ declare const renderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveU
24
31
  bucketName: string;
25
32
  renderId: string;
26
33
  privacy: "project-private" | "public-read";
27
- } | {
34
+ }>;
35
+ /**
36
+ * @deprecated Import this from `@remotion/cloudrun/client` instead
37
+ */
38
+ declare const renderStillOnCloudrun: (options: import("./client").RenderStillOnCloudrunInput) => Promise<{
28
39
  type: "crash";
29
40
  cloudRunEndpoint: string;
30
41
  message: "Service crashed without sending a response. Check the logs in GCP console.";
31
42
  requestStartTime: string;
32
43
  requestCrashTime: string;
33
44
  requestElapsedTimeInSeconds: number;
34
- }>;
35
- /**
36
- * @deprecated Import this from `@remotion/cloudrun/client` instead
37
- */
38
- declare const renderStillOnCloudrun: (options: import("./client").RenderStillOnCloudrunInput) => Promise<{
45
+ } | {
39
46
  type: "success";
40
47
  publicUrl?: string | null | undefined;
41
48
  cloudStorageUri: string;
@@ -48,13 +55,6 @@ declare const renderStillOnCloudrun: (options: import("./client").RenderStillOnC
48
55
  message: string;
49
56
  name: string;
50
57
  stack: string;
51
- } | {
52
- type: "crash";
53
- cloudRunEndpoint: string;
54
- message: "Service crashed without sending a response. Check the logs in GCP console.";
55
- requestStartTime: string;
56
- requestCrashTime: string;
57
- requestElapsedTimeInSeconds: number;
58
58
  }>;
59
59
  /**
60
60
  * @deprecated Import this from `@remotion/lambda/client` instead
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.428",
6
+ "version": "4.0.429",
7
7
  "description": "Render Remotion videos on Google Cloud Run",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -21,17 +21,17 @@
21
21
  "@google-cloud/storage": "7.15.2",
22
22
  "@google-cloud/resource-manager": "5.3.1",
23
23
  "@google-cloud/logging": "11.2.0",
24
- "@remotion/bundler": "4.0.428",
25
- "@remotion/cli": "4.0.428",
26
- "@remotion/renderer": "4.0.428",
24
+ "@remotion/bundler": "4.0.429",
25
+ "@remotion/cli": "4.0.429",
26
+ "@remotion/renderer": "4.0.429",
27
27
  "google-auth-library": "8.7.0",
28
- "remotion": "4.0.428",
28
+ "remotion": "4.0.429",
29
29
  "zod": "4.3.6"
30
30
  },
31
31
  "devDependencies": {
32
- "@remotion/compositor-linux-x64-gnu": "4.0.428",
32
+ "@remotion/compositor-linux-x64-gnu": "4.0.429",
33
33
  "@types/minimist": "1.2.2",
34
- "@remotion/eslint-config-internal": "4.0.428",
34
+ "@remotion/eslint-config-internal": "4.0.429",
35
35
  "eslint": "9.19.0",
36
36
  "@types/node": "20.12.14",
37
37
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
package/readme.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # @remotion/cloudrun
2
-
2
+
3
3
  Render Remotion videos on Google Cloud Run
4
-
4
+
5
5
  [![NPM Downloads](https://img.shields.io/npm/dm/@remotion/cloudrun.svg?style=flat&color=black&label=Downloads)](https://npmcharts.com/compare/@remotion/cloudrun?minimal=true)
6
-
6
+
7
7
  ## Installation
8
-
8
+
9
9
  ```bash
10
10
  npm install @remotion/cloudrun --save-exact
11
11
  ```
12
-
12
+
13
13
  When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
14
14
  Remove the `^` character from the version number to use the exact version.
15
-
15
+
16
16
  ## Usage
17
-
17
+
18
18
  See the [documentation](https://www.remotion.dev/docs/cloudrun) for more information.