@remotion/cloudrun 4.0.123 → 4.0.125

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,15 +1,15 @@
1
1
 
2
2
  
3
- > @remotion/cloudrun@4.0.122 build /Users/jonathanburger/remotion/packages/cloudrun
3
+ > @remotion/cloudrun@4.0.124 build /Users/jonathanburger/remotion/packages/cloudrun
4
4
  > tsc -d && cp src/shared/sa-permissions.json dist/shared/sa-permissions.json && pnpm run buildContainer && pnpm run tarInstaller
5
5
 
6
6
 
7
- > @remotion/cloudrun@4.0.122 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
7
+ > @remotion/cloudrun@4.0.124 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
8
8
  > ts-node src/admin/bundle-renderLogic.ts
9
9
 
10
10
  distribution bundled.
11
11
 
12
- > @remotion/cloudrun@4.0.122 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
12
+ > @remotion/cloudrun@4.0.124 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
13
13
  > ts-node src/admin/bundle-installer.ts
14
14
 
15
15
  Making reproducible build with gtar
@@ -0,0 +1,23 @@
1
+
2
+ 
3
+ > @remotion/cloudrun@4.0.122 test /Users/jonathanburger/remotion/packages/cloudrun
4
+ > vitest --run
5
+
6
+
7
+  RUN  v0.31.1 /Users/jonathanburger/remotion/packages/cloudrun
8
+
9
+ [?25l ✓ src/api/test/service-names.test.ts (1)
10
+ · src/api/test/make-console.test.ts (2)
11
+ [?25l ✓ src/api/test/service-names.test.ts (1)
12
+ ✓ src/api/test/make-console.test.ts (2)
13
+ ✓ src/api/test/running-in-what-server.test.ts (4)
14
+  ✓ src/api/test/service-names.test.ts (1)
15
+ ✓ src/api/test/make-console.test.ts (2)
16
+ ✓ src/api/test/running-in-what-server.test.ts (4)
17
+
18
+  Test Files  3 passed (3)
19
+  Tests  7 passed (7)
20
+  Start at  10:25:38
21
+  Duration  1.29s (transform 342ms, setup 0ms, collect 753ms, tests 8ms, environment 0ms, prepare 71ms)
22
+
23
+ [?25h
@@ -73,6 +73,7 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
73
73
  webpackConfigOrServeUrl: serveUrl,
74
74
  offthreadVideoCacheSizeInBytes,
75
75
  binariesDirectory,
76
+ forceIPv4: false,
76
77
  });
77
78
  const { compositionId } = await cli_1.CliInternals.getCompositionWithDimensionOverride({
78
79
  args: args.slice(1),
@@ -61,6 +61,7 @@ const stillCommand = async (args, remotionRoot, logLevel) => {
61
61
  webpackConfigOrServeUrl: serveUrl,
62
62
  offthreadVideoCacheSizeInBytes,
63
63
  binariesDirectory,
64
+ forceIPv4: false,
64
65
  });
65
66
  const { compositionId } = await cli_1.CliInternals.getCompositionWithDimensionOverride({
66
67
  args: args.slice(1),
package/dist/index.d.ts CHANGED
@@ -7,14 +7,58 @@ import { getOrCreateBucket } from './api/get-or-create-bucket';
7
7
  import { getRegions } from './api/get-regions';
8
8
  import { getServiceInfo } from './api/get-service-info';
9
9
  import { getServices } from './api/get-services';
10
- import { getSites } from './api/get-sites';
11
10
  import { testPermissions } from './api/iam-validation/testPermissions';
12
11
  import type { RenderMediaOnCloudrunInput } from './api/render-media-on-cloudrun';
13
- import { renderMediaOnCloudrun } from './api/render-media-on-cloudrun';
14
- import { renderStillOnCloudrun } from './api/render-still-on-cloudrun';
15
12
  import { speculateServiceName } from './api/speculate-service-name';
16
13
  import type { RenderMediaOnCloudrunOutput } from './functions/helpers/payloads';
17
14
  import { CloudrunInternals } from './internals';
18
15
  import type { GcpRegion } from './pricing/gcp-regions';
16
+ /**
17
+ * @deprecated Import this from `@remotion/cloudrun/client` instead
18
+ */
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, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, colorSpace, }: RenderMediaOnCloudrunInput) => Promise<{
20
+ type: "success";
21
+ privacy: "public-read" | "project-private";
22
+ cloudStorageUri: string;
23
+ size: number;
24
+ bucketName: string;
25
+ renderId: string;
26
+ publicUrl?: string | null | undefined;
27
+ } | {
28
+ type: "crash";
29
+ message: "Service crashed without sending a response. Check the logs in GCP console.";
30
+ cloudRunEndpoint: string;
31
+ requestStartTime: string;
32
+ requestCrashTime: string;
33
+ requestElapsedTimeInSeconds: number;
34
+ }>;
35
+ /**
36
+ * @deprecated Import this from `@remotion/cloudrun/client` instead
37
+ */
38
+ declare const renderStillOnCloudrun: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, forceBucketName, privacy, outName, imageFormat, envVariables, frame, jpegQuality, chromiumOptions, scale, forceWidth, forceHeight, logLevel, delayRenderTimeoutInMilliseconds, offthreadVideoCacheSizeInBytes, }: import("./api/render-still-on-cloudrun").RenderStillOnCloudrunInput) => Promise<{
39
+ type: "success";
40
+ privacy: "public-read" | "project-private";
41
+ cloudStorageUri: string;
42
+ size: number;
43
+ bucketName: string;
44
+ renderId: string;
45
+ publicUrl?: string | null | undefined;
46
+ } | {
47
+ type: "error";
48
+ message: string;
49
+ name: string;
50
+ stack: string;
51
+ } | {
52
+ type: "crash";
53
+ message: "Service crashed without sending a response. Check the logs in GCP console.";
54
+ cloudRunEndpoint: string;
55
+ requestStartTime: string;
56
+ requestCrashTime: string;
57
+ requestElapsedTimeInSeconds: number;
58
+ }>;
59
+ /**
60
+ * @deprecated Import this from `@remotion/lambda/client` instead
61
+ */
62
+ declare const getSites: (region: "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4" | "all regions") => Promise<import("./api/get-sites").GetSitesOutput>;
19
63
  export { CloudrunInternals, deployService, deploySite, deleteSite, deleteService, getServices, getOrCreateBucket, renderMediaOnCloudrun, renderStillOnCloudrun, getServiceInfo, getRegions, getSites, speculateServiceName, testPermissions, };
20
64
  export type { GcpRegion, DeployServiceInput, DeployServiceOutput, RenderMediaOnCloudrunOutput, RenderMediaOnCloudrunInput, };
package/dist/index.js CHANGED
@@ -18,14 +18,26 @@ Object.defineProperty(exports, "getServiceInfo", { enumerable: true, get: functi
18
18
  const get_services_1 = require("./api/get-services");
19
19
  Object.defineProperty(exports, "getServices", { enumerable: true, get: function () { return get_services_1.getServices; } });
20
20
  const get_sites_1 = require("./api/get-sites");
21
- Object.defineProperty(exports, "getSites", { enumerable: true, get: function () { return get_sites_1.getSites; } });
22
21
  const testPermissions_1 = require("./api/iam-validation/testPermissions");
23
22
  Object.defineProperty(exports, "testPermissions", { enumerable: true, get: function () { return testPermissions_1.testPermissions; } });
24
23
  const render_media_on_cloudrun_1 = require("./api/render-media-on-cloudrun");
25
- Object.defineProperty(exports, "renderMediaOnCloudrun", { enumerable: true, get: function () { return render_media_on_cloudrun_1.renderMediaOnCloudrun; } });
26
24
  const render_still_on_cloudrun_1 = require("./api/render-still-on-cloudrun");
27
- Object.defineProperty(exports, "renderStillOnCloudrun", { enumerable: true, get: function () { return render_still_on_cloudrun_1.renderStillOnCloudrun; } });
28
25
  const speculate_service_name_1 = require("./api/speculate-service-name");
29
26
  Object.defineProperty(exports, "speculateServiceName", { enumerable: true, get: function () { return speculate_service_name_1.speculateServiceName; } });
30
27
  const internals_1 = require("./internals");
31
28
  Object.defineProperty(exports, "CloudrunInternals", { enumerable: true, get: function () { return internals_1.CloudrunInternals; } });
29
+ /**
30
+ * @deprecated Import this from `@remotion/cloudrun/client` instead
31
+ */
32
+ const renderMediaOnCloudrun = render_media_on_cloudrun_1.renderMediaOnCloudrun;
33
+ exports.renderMediaOnCloudrun = renderMediaOnCloudrun;
34
+ /**
35
+ * @deprecated Import this from `@remotion/cloudrun/client` instead
36
+ */
37
+ const renderStillOnCloudrun = render_still_on_cloudrun_1.renderStillOnCloudrun;
38
+ exports.renderStillOnCloudrun = renderStillOnCloudrun;
39
+ /**
40
+ * @deprecated Import this from `@remotion/lambda/client` instead
41
+ */
42
+ const getSites = get_sites_1.getSites;
43
+ exports.getSites = getSites;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cloudrun",
3
- "version": "4.0.123",
3
+ "version": "4.0.125",
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.123",
16
- "@remotion/cli": "4.0.123",
17
- "remotion": "4.0.123",
18
- "@remotion/renderer": "4.0.123"
15
+ "@remotion/bundler": "4.0.125",
16
+ "@remotion/renderer": "4.0.125",
17
+ "@remotion/cli": "4.0.125",
18
+ "remotion": "4.0.125"
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.4",
27
27
  "ts-node": "^10.8.0",
28
28
  "vitest": "0.31.1",
29
- "@remotion/compositor-linux-x64-gnu": "4.0.123"
29
+ "@remotion/compositor-linux-x64-gnu": "4.0.125"
30
30
  },
31
31
  "exports": {
32
32
  "./package.json": "./package.json",