@remotion/cloudrun 4.0.363 → 4.0.365

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.
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.363",
6
+ "version": "4.0.365",
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.363",
25
- "@remotion/cli": "4.0.363",
26
- "@remotion/renderer": "4.0.363",
24
+ "@remotion/bundler": "4.0.365",
25
+ "@remotion/cli": "4.0.365",
26
+ "@remotion/renderer": "4.0.365",
27
27
  "google-auth-library": "8.7.0",
28
- "remotion": "4.0.363",
28
+ "remotion": "4.0.365",
29
29
  "zod": "3.22.3"
30
30
  },
31
31
  "devDependencies": {
32
- "@remotion/compositor-linux-x64-gnu": "4.0.363",
32
+ "@remotion/compositor-linux-x64-gnu": "4.0.365",
33
33
  "@types/minimist": "1.2.2",
34
- "@remotion/eslint-config-internal": "4.0.363",
34
+ "@remotion/eslint-config-internal": "4.0.365",
35
35
  "eslint": "9.19.0",
36
36
  "@types/node": "20.12.14"
37
37
  },
@@ -1,44 +0,0 @@
1
-
2
- $ eslint src
3
- =============
4
-
5
- WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
6
-
7
- You may find that it works just fine, or you may not.
8
-
9
- SUPPORTED TYPESCRIPT VERSIONS: >=4.7.4 <5.7.0
10
-
11
- YOUR TYPESCRIPT VERSION: 5.8.2
12
-
13
- Please only submit bug reports when using the officially supported version.
14
-
15
- =============
16
- 
17
- /Users/jonathanburger/remotion/packages/cloudrun/src/api/check-if-service-exists.ts
18
-  59:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
19
- 
20
- /Users/jonathanburger/remotion/packages/cloudrun/src/api/get-sites.ts
21
-  58:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
22
-  62:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
23
- 
24
- /Users/jonathanburger/remotion/packages/cloudrun/src/api/render-media-on-cloudrun.ts
25
-  227:3 warning Unexpected 'todo' comment: 'TODO: Add any sort of type safety' no-warning-comments
26
-  236:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
27
- 
28
- /Users/jonathanburger/remotion/packages/cloudrun/src/api/render-still-on-cloudrun.ts
29
-  174:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
30
- 
31
- /Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/helpers/renderArgsCheck.ts
32
-  79:4 warning Unexpected 'todo' comment: 'TODO: Log if there is an incompatible...' no-warning-comments
33
- 
34
- /Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/index.ts
35
-  192:2 warning Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' no-warning-comments
36
- 
37
- /Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/still.ts
38
-  169:2 warning Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' no-warning-comments
39
- 
40
- /Users/jonathanburger/remotion/packages/cloudrun/src/shared/constants.ts
41
-  22:1 warning Unexpected 'todo' comment: 'TODO: In V5, Enable set this to 5' no-warning-comments
42
- 
43
- ✖ 10 problems (0 errors, 10 warnings)
44
- 
@@ -1,2 +0,0 @@
1
-
2
- $ tsc -d && cp src/shared/sa-permissions.json dist/shared/sa-permissions.json
package/build.ts DELETED
@@ -1,5 +0,0 @@
1
- import {bundleInstaller} from './src/admin/bundle-installer';
2
- import {bundleRenderLogic} from './src/admin/bundle-renderLogic';
3
-
4
- await bundleRenderLogic();
5
- await bundleInstaller();
@@ -1 +0,0 @@
1
- export {};
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const bun_test_1 = require("bun:test");
4
- const make_console_url_1 = require("../../cli/helpers/make-console-url");
5
- const is_in_cloud_task_1 = require("../../functions/helpers/is-in-cloud-task");
6
- (0, bun_test_1.beforeEach)(() => {
7
- delete process.env.GCLOUD_PROJECT;
8
- delete process.env.REMOTION_GCP_PROJECT_ID;
9
- delete process.env.K_CONFIGURATION;
10
- });
11
- (0, bun_test_1.test)('app is in cloud tasks', () => {
12
- process.env.GCLOUD_PROJECT = 'remotion-test-cloudtask';
13
- process.env.K_CONFIGURATION = 'config';
14
- const isInCloud = (0, is_in_cloud_task_1.isInCloudTask)();
15
- (0, bun_test_1.expect)(isInCloud).toBe(true);
16
- const consoleUrl = (0, make_console_url_1.makeConsoleUrl)('asia-east1', 'test-name');
17
- (0, bun_test_1.expect)(consoleUrl).toBe('https://console.cloud.google.com/run/detail/asia-east1/test-name/logs?project=remotion-test-cloudtask');
18
- });
19
- (0, bun_test_1.test)('app is not in cloud tasks', () => {
20
- process.env.GCLOUD_PROJECT = 'remotion-test';
21
- process.env.K_CONFIGURATION = 'config';
22
- const isInCloud = (0, is_in_cloud_task_1.isInCloudTask)();
23
- (0, bun_test_1.expect)(isInCloud).toBe(true);
24
- const consoleUrl = (0, make_console_url_1.makeConsoleUrl)('asia-east1', 'test-name');
25
- (0, bun_test_1.expect)(consoleUrl).toBe('https://console.cloud.google.com/run/detail/asia-east1/test-name/logs?project=remotion-test');
26
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const bun_test_1 = require("bun:test");
4
- const payloads_1 = require("../../functions/helpers/payloads");
5
- (0, bun_test_1.test)('CloudRunPayload should work with and without optional webhook fields', () => {
6
- const basePayload = {
7
- type: 'still',
8
- serveUrl: 'https://example.com',
9
- composition: 'my-comp',
10
- imageFormat: 'png',
11
- scale: 1,
12
- privacy: 'public',
13
- envVariables: {},
14
- outputBucket: 'my-bucket',
15
- frame: 0,
16
- delayRenderTimeoutInMilliseconds: 30000,
17
- logLevel: 'info',
18
- clientVersion: '1.0.0',
19
- downloadBehavior: { type: 'play-in-browser' },
20
- outName: null,
21
- offthreadVideoCacheSizeInBytes: null,
22
- offthreadVideoThreads: null,
23
- mediaCacheSizeInBytes: null,
24
- serializedInputPropsWithCustomSchema: JSON.stringify({}),
25
- };
26
- const withWebhook = {
27
- ...basePayload,
28
- renderIdOverride: 'custom-render-id',
29
- renderStatusWebhook: {
30
- url: 'https://webhook.example.com',
31
- headers: { 'x-custom-header': 'value' },
32
- data: { key: 'value' },
33
- },
34
- };
35
- const withoutWebhook = basePayload;
36
- const parsedWithWebhook = payloads_1.CloudRunPayload.safeParse(withWebhook);
37
- const parsedWithoutWebhook = payloads_1.CloudRunPayload.safeParse(withoutWebhook);
38
- (0, bun_test_1.expect)(parsedWithWebhook.success).toBe(true);
39
- (0, bun_test_1.expect)(parsedWithoutWebhook.success).toBe(true);
40
- if (parsedWithWebhook.success) {
41
- (0, bun_test_1.expect)(parsedWithWebhook.data.renderIdOverride).toBe('custom-render-id');
42
- (0, bun_test_1.expect)(parsedWithWebhook.data.renderStatusWebhook).toEqual({
43
- url: 'https://webhook.example.com',
44
- headers: { 'x-custom-header': 'value' },
45
- data: { key: 'value' },
46
- });
47
- }
48
- if (parsedWithoutWebhook.success) {
49
- (0, bun_test_1.expect)(parsedWithoutWebhook.data.renderIdOverride).toBeUndefined();
50
- (0, bun_test_1.expect)(parsedWithoutWebhook.data.renderStatusWebhook).toBeUndefined();
51
- }
52
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const bun_test_1 = require("bun:test");
4
- const is_in_cloud_task_1 = require("../../functions/helpers/is-in-cloud-task");
5
- (0, bun_test_1.beforeEach)(() => {
6
- delete process.env.GCLOUD_PROJECT;
7
- delete process.env.REMOTION_GCP_PROJECT_ID;
8
- delete process.env.K_CONFIGURATION;
9
- });
10
- (0, bun_test_1.test)('is running in cloud tasks = true', () => {
11
- process.env.GCLOUD_PROJECT = 'remotion-test-cloudtask';
12
- process.env.K_CONFIGURATION = 'config';
13
- const isInCloud = (0, is_in_cloud_task_1.isInCloudTask)();
14
- (0, bun_test_1.expect)(isInCloud).toBe(true);
15
- });
16
- (0, bun_test_1.test)('is running in cloud tasks = false', () => {
17
- process.env.REMOTION_GCP_PROJECT_ID = 'remotion-test-cloudtask';
18
- const isInCloud = (0, is_in_cloud_task_1.isInCloudTask)();
19
- (0, bun_test_1.expect)(isInCloud).toBe(false);
20
- });
21
- (0, bun_test_1.test)('which project Id = remotion-test', () => {
22
- process.env.REMOTION_GCP_PROJECT_ID = 'remotion-test';
23
- const projectId = (0, is_in_cloud_task_1.getProjectId)();
24
- (0, bun_test_1.expect)(projectId).toBe('remotion-test');
25
- });
26
- (0, bun_test_1.test)('which project Id = remotion-test-cloudtask', () => {
27
- process.env.GCLOUD_PROJECT = 'remotion-test-cloudtask';
28
- process.env.K_CONFIGURATION = 'config';
29
- const projectId = (0, is_in_cloud_task_1.getProjectId)();
30
- (0, bun_test_1.expect)(projectId).toBe('remotion-test-cloudtask');
31
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const bun_test_1 = require("bun:test");
4
- const remotion_1 = require("remotion");
5
- const parse_service_name_1 = require("../helpers/parse-service-name");
6
- const speculate_service_name_1 = require("../speculate-service-name");
7
- const dashedVersion = remotion_1.VERSION.replace(/\./g, '-');
8
- const region = 'asia-east1';
9
- (0, bun_test_1.test)('Parse service names', () => {
10
- process.env.REMOTION_GCP_PROJECT_ID = 'remotion-test-project';
11
- const shortServiceName = (0, speculate_service_name_1.speculateServiceName)({
12
- cpuLimit: '8.0',
13
- memoryLimit: '100000k',
14
- // max timeout
15
- timeoutSeconds: 3600,
16
- });
17
- (0, bun_test_1.expect)(shortServiceName).toBe(`remotion-${remotion_1.VERSION.replace(/\./g, '-')}-mem100000k-cpu8-0-t3600`);
18
- const fullServiceName = `${(0, parse_service_name_1.getGcpParent)(region)}/services/${shortServiceName}`;
19
- process.env.REMOTION_GCP_PROJECT_ID = 'remotion-test-project';
20
- const parsed = (0, parse_service_name_1.parseServiceName)(fullServiceName, region);
21
- (0, bun_test_1.expect)(parsed).toEqual({
22
- consoleUrl: `https://console.cloud.google.com/run/detail/asia-east1/remotion-${dashedVersion}-mem100000k-cpu8-0-t3600/logs?project=remotion-test-project`,
23
- region: 'asia-east1',
24
- remotionVersion: remotion_1.VERSION.replace(/\./g, '-'),
25
- serviceName: `remotion-${dashedVersion}-mem100000k-cpu8-0-t3600`,
26
- });
27
- // Max length of service name is 49 characters, asking for less in case the version string gets longer
28
- (0, bun_test_1.expect)(shortServiceName.length).toBeLessThanOrEqual(47);
29
- });
package/eslint.config.mjs DELETED
@@ -1,28 +0,0 @@
1
- import {remotionFlatConfig} from '@remotion/eslint-config-internal';
2
-
3
- const config = remotionFlatConfig({react: false});
4
-
5
- export default [
6
- {
7
- ...config,
8
- ignores: ['./src/gcpInstaller/**', 'src/admin/**'],
9
- rules: {
10
- ...config.rules,
11
- 'no-console': 'error',
12
- },
13
- },
14
- {
15
- files: ['./src/gcpInstaller/**'],
16
- rules: {
17
- ...config.rules,
18
- 'no-console': 'off',
19
- },
20
- },
21
- {
22
- files: ['src/admin/**'],
23
- rules: {
24
- ...config.rules,
25
- 'no-console': 'off',
26
- },
27
- },
28
- ];