@remotion/cloudrun 4.0.84 → 4.0.85
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/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-lint.log +3 -3
- package/dist/api/render-media-on-cloudrun.d.ts +0 -2
- package/dist/functions/helpers/hi.d.ts +11 -0
- package/dist/functions/helpers/hi.js +39 -0
- package/dist/functions/helpers/payloads.d.ts +15 -15
- package/dist/internals.d.ts +1 -1
- package/package.json +6 -6
- package/.turbo/turbo-test.log +0 -16
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @remotion/cloudrun@4.0.
|
|
2
|
+
> @remotion/cloudrun@4.0.84 build /Users/jonathanburger/remotion/packages/cloudrun
|
|
3
3
|
> tsc -d && cp src/shared/sa-permissions.json dist/shared/sa-permissions.json && pnpm run buildContainer && pnpm run tarInstaller
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @remotion/cloudrun@4.0.
|
|
6
|
+
> @remotion/cloudrun@4.0.84 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
|
|
7
7
|
> ts-node src/admin/bundle-renderLogic.ts
|
|
8
8
|
|
|
9
9
|
distribution bundled.
|
|
10
10
|
|
|
11
|
-
> @remotion/cloudrun@4.0.
|
|
11
|
+
> @remotion/cloudrun@4.0.84 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
|
|
12
12
|
> ts-node src/admin/bundle-installer.ts
|
|
13
13
|
|
|
14
14
|
Making reproducible build with gtar
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @remotion/cloudrun@4.0.
|
|
2
|
+
> @remotion/cloudrun@4.0.84 lint /Users/jonathanburger/remotion/packages/cloudrun
|
|
3
3
|
> eslint src --ext ts,tsx
|
|
4
4
|
|
|
5
5
|
Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
|
|
@@ -8,8 +8,8 @@ Warning: React version was set to "detect" in eslint-plugin-react settings, but
|
|
|
8
8
|
56:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
9
9
|
|
|
10
10
|
/Users/jonathanburger/remotion/packages/cloudrun/src/api/render-media-on-cloudrun.ts
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
222:3 warning Unexpected 'todo' comment: 'TODO: Add any sort of type safety' no-warning-comments
|
|
12
|
+
231:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
13
13
|
|
|
14
14
|
/Users/jonathanburger/remotion/packages/cloudrun/src/api/render-still-on-cloudrun.ts
|
|
15
15
|
153:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
@@ -28,7 +28,6 @@ type InternalRenderMediaOnCloudrun = {
|
|
|
28
28
|
imageFormat: VideoImageFormat | undefined;
|
|
29
29
|
scale: number | undefined;
|
|
30
30
|
everyNthFrame: number | undefined;
|
|
31
|
-
numberOfGifLoops: number | null;
|
|
32
31
|
frameRange: FrameRange | undefined;
|
|
33
32
|
envVariables: Record<string, string> | undefined;
|
|
34
33
|
chromiumOptions: ChromiumOptions | undefined;
|
|
@@ -67,7 +66,6 @@ export type RenderMediaOnCloudrunInput = {
|
|
|
67
66
|
imageFormat?: VideoImageFormat;
|
|
68
67
|
scale?: number;
|
|
69
68
|
everyNthFrame?: number;
|
|
70
|
-
numberOfGifLoops?: number | null;
|
|
71
69
|
frameRange?: FrameRange;
|
|
72
70
|
envVariables?: Record<string, string>;
|
|
73
71
|
chromiumOptions?: ChromiumOptions;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const Abc: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"media">;
|
|
4
|
+
hi: z.ZodNullable<z.ZodString>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
type: "media";
|
|
7
|
+
hi: string | null;
|
|
8
|
+
}, {
|
|
9
|
+
type: "media";
|
|
10
|
+
hi: string | null;
|
|
11
|
+
}>]>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Abc = void 0;
|
|
27
|
+
const z = __importStar(require("zod"));
|
|
28
|
+
exports.Abc = z.discriminatedUnion('type', [
|
|
29
|
+
z.object({
|
|
30
|
+
type: z.literal('media'),
|
|
31
|
+
hi: z.string().nullable(),
|
|
32
|
+
}),
|
|
33
|
+
]);
|
|
34
|
+
const a = {
|
|
35
|
+
type: 'media',
|
|
36
|
+
hi: null,
|
|
37
|
+
};
|
|
38
|
+
exports.Abc.parse(a);
|
|
39
|
+
console.log(a);
|
|
@@ -52,7 +52,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
52
52
|
enforceAudioTrack: z.ZodBoolean;
|
|
53
53
|
preferLossless: z.ZodBoolean;
|
|
54
54
|
offthreadVideoCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
|
|
55
|
-
colorSpace: z.ZodEnum<["default", "bt709"]>;
|
|
55
|
+
colorSpace: z.ZodEnum<["default", "bt709", "bt2020-ncl"]>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
type: "media";
|
|
58
58
|
serveUrl: string;
|
|
@@ -77,13 +77,13 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
77
77
|
envVariables: Record<string, string>;
|
|
78
78
|
muted: boolean;
|
|
79
79
|
outputBucket: string;
|
|
80
|
-
logLevel: "
|
|
80
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
81
81
|
delayRenderTimeoutInMilliseconds: number | null;
|
|
82
82
|
concurrency: string | number | null;
|
|
83
83
|
enforceAudioTrack: boolean;
|
|
84
84
|
preferLossless: boolean;
|
|
85
85
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
86
|
-
colorSpace: "default" | "bt709";
|
|
86
|
+
colorSpace: "default" | "bt709" | "bt2020-ncl";
|
|
87
87
|
forceHeight?: number | null | undefined;
|
|
88
88
|
forceWidth?: number | null | undefined;
|
|
89
89
|
chromiumOptions?: {
|
|
@@ -119,13 +119,13 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
119
119
|
envVariables: Record<string, string>;
|
|
120
120
|
muted: boolean;
|
|
121
121
|
outputBucket: string;
|
|
122
|
-
logLevel: "
|
|
122
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
123
123
|
delayRenderTimeoutInMilliseconds: number | null;
|
|
124
124
|
concurrency: string | number | null;
|
|
125
125
|
enforceAudioTrack: boolean;
|
|
126
126
|
preferLossless: boolean;
|
|
127
127
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
128
|
-
colorSpace: "default" | "bt709";
|
|
128
|
+
colorSpace: "default" | "bt709" | "bt2020-ncl";
|
|
129
129
|
forceHeight?: number | null | undefined;
|
|
130
130
|
forceWidth?: number | null | undefined;
|
|
131
131
|
chromiumOptions?: {
|
|
@@ -184,7 +184,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
184
184
|
envVariables: Record<string, string>;
|
|
185
185
|
outputBucket: string;
|
|
186
186
|
privacy: "public" | "private";
|
|
187
|
-
logLevel: "
|
|
187
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
188
188
|
delayRenderTimeoutInMilliseconds: number;
|
|
189
189
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
190
190
|
frame: number;
|
|
@@ -209,7 +209,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
209
209
|
envVariables: Record<string, string>;
|
|
210
210
|
outputBucket: string;
|
|
211
211
|
privacy: "public" | "private";
|
|
212
|
-
logLevel: "
|
|
212
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
213
213
|
delayRenderTimeoutInMilliseconds: number;
|
|
214
214
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
215
215
|
frame: number;
|
|
@@ -231,13 +231,13 @@ declare const renderFailResponsePayload: z.ZodObject<{
|
|
|
231
231
|
name: z.ZodString;
|
|
232
232
|
stack: z.ZodString;
|
|
233
233
|
}, "strip", z.ZodTypeAny, {
|
|
234
|
-
type: "error";
|
|
235
234
|
message: string;
|
|
235
|
+
type: "error";
|
|
236
236
|
name: string;
|
|
237
237
|
stack: string;
|
|
238
238
|
}, {
|
|
239
|
-
type: "error";
|
|
240
239
|
message: string;
|
|
240
|
+
type: "error";
|
|
241
241
|
name: string;
|
|
242
242
|
stack: string;
|
|
243
243
|
}>;
|
|
@@ -250,19 +250,19 @@ declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
|
|
|
250
250
|
renderId: z.ZodString;
|
|
251
251
|
privacy: z.ZodEnum<["public-read", "project-private"]>;
|
|
252
252
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
bucketName: string;
|
|
253
254
|
type: "success";
|
|
254
255
|
privacy: "public-read" | "project-private";
|
|
255
256
|
cloudStorageUri: string;
|
|
256
257
|
size: number;
|
|
257
|
-
bucketName: string;
|
|
258
258
|
renderId: string;
|
|
259
259
|
publicUrl?: string | null | undefined;
|
|
260
260
|
}, {
|
|
261
|
+
bucketName: string;
|
|
261
262
|
type: "success";
|
|
262
263
|
privacy: "public-read" | "project-private";
|
|
263
264
|
cloudStorageUri: string;
|
|
264
265
|
size: number;
|
|
265
|
-
bucketName: string;
|
|
266
266
|
renderId: string;
|
|
267
267
|
publicUrl?: string | null | undefined;
|
|
268
268
|
}>;
|
|
@@ -275,19 +275,19 @@ declare const renderMediaOnCloudrunResponsePayload: z.ZodObject<{
|
|
|
275
275
|
renderId: z.ZodString;
|
|
276
276
|
privacy: z.ZodEnum<["public-read", "project-private"]>;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
bucketName: string;
|
|
278
279
|
type: "success";
|
|
279
280
|
privacy: "public-read" | "project-private";
|
|
280
281
|
cloudStorageUri: string;
|
|
281
282
|
size: number;
|
|
282
|
-
bucketName: string;
|
|
283
283
|
renderId: string;
|
|
284
284
|
publicUrl?: string | null | undefined;
|
|
285
285
|
}, {
|
|
286
|
+
bucketName: string;
|
|
286
287
|
type: "success";
|
|
287
288
|
privacy: "public-read" | "project-private";
|
|
288
289
|
cloudStorageUri: string;
|
|
289
290
|
size: number;
|
|
290
|
-
bucketName: string;
|
|
291
291
|
renderId: string;
|
|
292
292
|
publicUrl?: string | null | undefined;
|
|
293
293
|
}>;
|
|
@@ -299,15 +299,15 @@ declare const cloudRunCrashResponse: z.ZodObject<{
|
|
|
299
299
|
requestCrashTime: z.ZodString;
|
|
300
300
|
requestElapsedTimeInSeconds: z.ZodNumber;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
|
-
type: "crash";
|
|
303
302
|
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
303
|
+
type: "crash";
|
|
304
304
|
cloudRunEndpoint: string;
|
|
305
305
|
requestStartTime: string;
|
|
306
306
|
requestCrashTime: string;
|
|
307
307
|
requestElapsedTimeInSeconds: number;
|
|
308
308
|
}, {
|
|
309
|
-
type: "crash";
|
|
310
309
|
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
310
|
+
type: "crash";
|
|
311
311
|
cloudRunEndpoint: string;
|
|
312
312
|
requestStartTime: string;
|
|
313
313
|
requestCrashTime: string;
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const CloudrunInternals: {
|
|
2
|
-
executeCommand: (args: string[], remotionRoot: string, logLevel: "
|
|
2
|
+
executeCommand: (args: string[], remotionRoot: string, logLevel: "verbose" | "info" | "warn" | "error") => Promise<void>;
|
|
3
3
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cloudrun",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.85",
|
|
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.
|
|
16
|
-
"@remotion/renderer": "4.0.
|
|
17
|
-
"
|
|
18
|
-
"remotion": "4.0.
|
|
15
|
+
"@remotion/bundler": "4.0.85",
|
|
16
|
+
"@remotion/renderer": "4.0.85",
|
|
17
|
+
"remotion": "4.0.85",
|
|
18
|
+
"@remotion/cli": "4.0.85"
|
|
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.
|
|
29
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.85"
|
|
30
30
|
},
|
|
31
31
|
"exports": {
|
|
32
32
|
"./package.json": "./package.json",
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @remotion/cloudrun@4.0.71 test /Users/jonathanburger/remotion/packages/cloudrun
|
|
3
|
-
> vitest --run
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
RUN v0.31.1 /Users/jonathanburger/remotion/packages/cloudrun
|
|
7
|
-
|
|
8
|
-
✓ src/api/test/service-names.test.ts (1 test) 3ms
|
|
9
|
-
✓ src/api/test/make-console.test.ts (2 tests) 2ms
|
|
10
|
-
✓ src/api/test/running-in-what-server.test.ts (4 tests) 2ms
|
|
11
|
-
|
|
12
|
-
Test Files 3 passed (3)
|
|
13
|
-
Tests 7 passed (7)
|
|
14
|
-
Start at 12:17:00
|
|
15
|
-
Duration 739ms (transform 179ms, setup 0ms, collect 527ms, tests 7ms, environment 0ms, prepare 54ms)
|
|
16
|
-
|