@remotion/cloudrun 4.0.364 → 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 +7 -7
- package/.turbo/turbo-lint.log +0 -44
- package/.turbo/turbo-make.log +0 -2
- package/build.ts +0 -5
- package/dist/api/test/make-console.test.d.ts +0 -1
- package/dist/api/test/make-console.test.js +0 -26
- package/dist/api/test/payloads.test.d.ts +0 -1
- package/dist/api/test/payloads.test.js +0 -52
- package/dist/api/test/running-in-what-server.test.d.ts +0 -1
- package/dist/api/test/running-in-what-server.test.js +0 -31
- package/dist/api/test/service-names.test.d.ts +0 -1
- package/dist/api/test/service-names.test.js +0 -29
- package/eslint.config.mjs +0 -28
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.
|
|
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.
|
|
25
|
-
"@remotion/cli": "4.0.
|
|
26
|
-
"@remotion/renderer": "4.0.
|
|
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.
|
|
28
|
+
"remotion": "4.0.365",
|
|
29
29
|
"zod": "3.22.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
32
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.365",
|
|
33
33
|
"@types/minimist": "1.2.2",
|
|
34
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
34
|
+
"@remotion/eslint-config-internal": "4.0.365",
|
|
35
35
|
"eslint": "9.19.0",
|
|
36
36
|
"@types/node": "20.12.14"
|
|
37
37
|
},
|
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
[0m[2m[35m$[0m [2m[1meslint src[0m
|
|
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
|
-
[0m[0m
|
|
17
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/check-if-service-exists.ts[24m[0m
|
|
18
|
-
[0m [2m59:14[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
19
|
-
[0m[0m
|
|
20
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/get-sites.ts[24m[0m
|
|
21
|
-
[0m [2m58:24[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
22
|
-
[0m [2m62:40[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
23
|
-
[0m[0m
|
|
24
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/render-media-on-cloudrun.ts[24m[0m
|
|
25
|
-
[0m [2m227:3[22m [33mwarning[39m Unexpected 'todo' comment: 'TODO: Add any sort of type safety' [2mno-warning-comments[22m[0m
|
|
26
|
-
[0m [2m236:17[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
27
|
-
[0m[0m
|
|
28
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/render-still-on-cloudrun.ts[24m[0m
|
|
29
|
-
[0m [2m174:17[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
30
|
-
[0m[0m
|
|
31
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/helpers/renderArgsCheck.ts[24m[0m
|
|
32
|
-
[0m [2m79:4[22m [33mwarning[39m Unexpected 'todo' comment: 'TODO: Log if there is an incompatible...' [2mno-warning-comments[22m[0m
|
|
33
|
-
[0m[0m
|
|
34
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/index.ts[24m[0m
|
|
35
|
-
[0m [2m192:2[22m [33mwarning[39m Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' [2mno-warning-comments[22m[0m
|
|
36
|
-
[0m[0m
|
|
37
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/still.ts[24m[0m
|
|
38
|
-
[0m [2m169:2[22m [33mwarning[39m Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' [2mno-warning-comments[22m[0m
|
|
39
|
-
[0m[0m
|
|
40
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/shared/constants.ts[24m[0m
|
|
41
|
-
[0m [2m22:1[22m [33mwarning[39m Unexpected 'todo' comment: 'TODO: In V5, Enable set this to 5' [2mno-warning-comments[22m[0m
|
|
42
|
-
[0m[0m
|
|
43
|
-
[0m[33m[1m✖ 10 problems (0 errors, 10 warnings)[22m[39m[0m
|
|
44
|
-
[0m[33m[1m[22m[39m[0m
|
package/.turbo/turbo-make.log
DELETED
package/build.ts
DELETED
|
@@ -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
|
-
];
|