@remotion/cloudrun 4.0.213 → 4.0.215
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-make.log +6 -0
- package/dist/api/get-buckets.d.ts +1 -1
- package/dist/api/get-sites.d.ts +1 -1
- package/dist/api/helpers/extract-mem-from-url.js +1 -2
- package/dist/api/helpers/extract-time-from-url.js +1 -2
- package/dist/api/helpers/parse-service-name.d.ts +1 -1
- package/dist/api/render-media-on-cloudrun.d.ts +2 -1
- package/dist/cli/args.d.ts +0 -1
- package/dist/cli/log.d.ts +6 -6
- package/dist/client.d.ts +2 -2
- package/dist/index.d.ts +4 -19
- package/dist/index.js +1 -1
- package/dist/internals.d.ts +1 -1
- package/dist/shared/base64-to-hash.js +1 -2
- package/dist/shared/read-dir.js +1 -2
- package/dist/shared/validate-gcp-region.js +1 -2
- package/dist/shared/validate-privacy.js +1 -2
- package/dist/shared/validate-region.d.ts +2 -1
- package/dist/shared/validate-retries.js +1 -2
- package/package.json +7 -7
- package/.turbo/turbo-build.log +0 -6
- package/.turbo/turbo-lint.log +0 -30
|
@@ -5,6 +5,6 @@ import type { GcpRegion } from '../pricing/gcp-regions';
|
|
|
5
5
|
* @param params.region GCP region to check. If not passed, all regions will be checked.
|
|
6
6
|
* @returns {Promise<Bucket[]>} List of buckets returned by GCP.
|
|
7
7
|
*/
|
|
8
|
-
export declare const getRemotionStorageBuckets: (region: GcpRegion |
|
|
8
|
+
export declare const getRemotionStorageBuckets: (region: GcpRegion | "all regions") => Promise<{
|
|
9
9
|
remotionBuckets: Bucket[];
|
|
10
10
|
}>;
|
package/dist/api/get-sites.d.ts
CHANGED
|
@@ -20,4 +20,4 @@ export type GetSitesOutput = {
|
|
|
20
20
|
* @param {GcpRegion} params.region The GCP region that you want to query for.
|
|
21
21
|
* @returns {Promise<GetSitesOutput>} A Promise containing an object with `sites` and `bucket` keys. Consult documentation for details.
|
|
22
22
|
*/
|
|
23
|
-
export declare const getSites: (region: GcpRegion |
|
|
23
|
+
export declare const getSites: (region: GcpRegion | "all regions") => Promise<GetSitesOutput>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractMemoryFromURL =
|
|
3
|
+
exports.extractMemoryFromURL = extractMemoryFromURL;
|
|
4
4
|
function extractMemoryFromURL(url) {
|
|
5
5
|
const regex = /mem(.*?)-/;
|
|
6
6
|
const match = url.match(regex);
|
|
7
7
|
return match ? match[1] : undefined;
|
|
8
8
|
}
|
|
9
|
-
exports.extractMemoryFromURL = extractMemoryFromURL;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractTimeoutFromURL =
|
|
3
|
+
exports.extractTimeoutFromURL = extractTimeoutFromURL;
|
|
4
4
|
function extractTimeoutFromURL(url) {
|
|
5
5
|
const firstTIndex = url.indexOf('-t');
|
|
6
6
|
if (firstTIndex !== -1) {
|
|
@@ -10,4 +10,3 @@ function extractTimeoutFromURL(url) {
|
|
|
10
10
|
}
|
|
11
11
|
return undefined;
|
|
12
12
|
}
|
|
13
|
-
exports.extractTimeoutFromURL = extractTimeoutFromURL;
|
|
@@ -3,6 +3,6 @@ export declare const getGcpParent: (region: GcpRegion) => string;
|
|
|
3
3
|
export declare const parseServiceName: (fullServiceName: string, region: GcpRegion) => {
|
|
4
4
|
serviceName: string;
|
|
5
5
|
remotionVersion: string;
|
|
6
|
-
region:
|
|
6
|
+
region: GcpRegion;
|
|
7
7
|
consoleUrl: string;
|
|
8
8
|
};
|
|
@@ -60,7 +60,8 @@ export type RenderMediaOnCloudrunInput = {
|
|
|
60
60
|
preferLossless?: boolean;
|
|
61
61
|
downloadBehavior?: DownloadBehavior;
|
|
62
62
|
} & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnCloudRun>>;
|
|
63
|
-
|
|
63
|
+
declare const internalRenderMediaOnCloudrunRaw: ({ 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, downloadBehavior, }: InternalRenderMediaOnCloudrun) => Promise<RenderMediaOnCloudrunOutput | CloudRunCrashResponse>;
|
|
64
|
+
export declare const internalRenderMediaOnCloudrun: typeof internalRenderMediaOnCloudrunRaw;
|
|
64
65
|
/**
|
|
65
66
|
* @description Triggers a render on a GCP Cloud Run service given a composition and a Cloud Run URL.
|
|
66
67
|
* @see [Documentation](https://remotion.dev/docs/cloudrun/renderMediaOnGcp)
|
package/dist/cli/args.d.ts
CHANGED
package/dist/cli/log.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
2
|
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
3
|
-
tag?: string
|
|
4
|
-
}, ...args:
|
|
5
|
-
info: (options: import("@remotion/renderer").LogOptions, ...args:
|
|
6
|
-
warn: (options: import("@remotion/renderer").LogOptions, ...args:
|
|
3
|
+
tag?: string;
|
|
4
|
+
}, ...args: Parameters<typeof console.log>) => void;
|
|
5
|
+
info: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
6
|
+
warn: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
7
7
|
error: (options: import("@remotion/renderer").LogOptions & {
|
|
8
|
-
tag?: string
|
|
9
|
-
}, ...args:
|
|
8
|
+
tag?: string;
|
|
9
|
+
}, ...args: Parameters<typeof console.log>) => void;
|
|
10
10
|
};
|
package/dist/client.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export { getRegions } from './api/get-regions';
|
|
|
5
5
|
export { getServiceInfo } from './api/get-service-info';
|
|
6
6
|
export { getServices } from './api/get-services';
|
|
7
7
|
export { getSites } from './api/get-sites';
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
8
|
+
export { RenderMediaOnCloudrunInput, renderMediaOnCloudrun, } from './api/render-media-on-cloudrun';
|
|
9
|
+
export { RenderStillOnCloudrunInput, renderStillOnCloudrun, } from './api/render-still-on-cloudrun';
|
|
10
10
|
export { speculateServiceName } from './api/speculate-service-name';
|
package/dist/index.d.ts
CHANGED
|
@@ -16,22 +16,7 @@ import type { GcpRegion } from './pricing/gcp-regions';
|
|
|
16
16
|
/**
|
|
17
17
|
* @deprecated Import this from `@remotion/cloudrun/client` instead
|
|
18
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, downloadBehavior, }: 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
|
-
}>;
|
|
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, downloadBehavior, }: RenderMediaOnCloudrunInput) => Promise<RenderMediaOnCloudrunOutput | import("./functions/helpers/payloads").CloudRunCrashResponse>;
|
|
35
20
|
/**
|
|
36
21
|
* @deprecated Import this from `@remotion/cloudrun/client` instead
|
|
37
22
|
*/
|
|
@@ -59,6 +44,6 @@ declare const renderStillOnCloudrun: (options: import("./api/render-still-on-clo
|
|
|
59
44
|
/**
|
|
60
45
|
* @deprecated Import this from `@remotion/lambda/client` instead
|
|
61
46
|
*/
|
|
62
|
-
declare const getSites: (region:
|
|
63
|
-
export { CloudrunInternals,
|
|
64
|
-
export type {
|
|
47
|
+
declare const getSites: (region: GcpRegion | "all regions") => Promise<import("./api/get-sites").GetSitesOutput>;
|
|
48
|
+
export { CloudrunInternals, deleteService, deleteSite, deployService, deploySite, getOrCreateBucket, getRegions, getServiceInfo, getServices, getSites, renderMediaOnCloudrun, renderStillOnCloudrun, speculateServiceName, testPermissions, };
|
|
49
|
+
export type { DeployServiceInput, DeployServiceOutput, GcpRegion, RenderMediaOnCloudrunInput, RenderMediaOnCloudrunOutput, };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testPermissions = exports.speculateServiceName = exports.
|
|
3
|
+
exports.testPermissions = exports.speculateServiceName = exports.renderStillOnCloudrun = exports.renderMediaOnCloudrun = exports.getSites = exports.getServices = exports.getServiceInfo = exports.getRegions = exports.getOrCreateBucket = exports.deploySite = exports.deployService = exports.deleteSite = exports.deleteService = exports.CloudrunInternals = void 0;
|
|
4
4
|
const delete_service_1 = require("./api/delete-service");
|
|
5
5
|
Object.defineProperty(exports, "deleteService", { enumerable: true, get: function () { return delete_service_1.deleteService; } });
|
|
6
6
|
const delete_site_1 = require("./api/delete-site");
|
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: import("@remotion/renderer").LogLevel) => Promise<void>;
|
|
3
3
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.base64ToHex =
|
|
3
|
+
exports.base64ToHex = base64ToHex;
|
|
4
4
|
function base64ToHex(str) {
|
|
5
5
|
// Decode the base64 string to a buffer containing the binary data
|
|
6
6
|
const raw = Buffer.from(str, 'base64');
|
|
@@ -11,4 +11,3 @@ function base64ToHex(str) {
|
|
|
11
11
|
}
|
|
12
12
|
return hex;
|
|
13
13
|
}
|
|
14
|
-
exports.base64ToHex = base64ToHex;
|
package/dist/shared/read-dir.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.readDirectory =
|
|
26
|
+
exports.readDirectory = readDirectory;
|
|
27
27
|
const fs = __importStar(require("fs"));
|
|
28
28
|
const path = __importStar(require("path"));
|
|
29
29
|
const get_etag_1 = require("./get-etag");
|
|
@@ -56,4 +56,3 @@ async function readDirectory({ dir, etags, originalDir, }) {
|
|
|
56
56
|
// Return the list of files with their etags and file names
|
|
57
57
|
return etags;
|
|
58
58
|
}
|
|
59
|
-
exports.readDirectory = readDirectory;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateGcpRegion =
|
|
3
|
+
exports.validateGcpRegion = validateGcpRegion;
|
|
4
4
|
const gcp_regions_1 = require("../pricing/gcp-regions");
|
|
5
5
|
function validateGcpRegion(region) {
|
|
6
6
|
if (!gcp_regions_1.GCP_REGIONS.includes(region)) {
|
|
7
7
|
throw new TypeError(`${region} is not a valid GCP region. Must be one of: ${gcp_regions_1.GCP_REGIONS.join(', ')}`);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
exports.validateGcpRegion = validateGcpRegion;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validatePrivacy =
|
|
3
|
+
exports.validatePrivacy = validatePrivacy;
|
|
4
4
|
function validatePrivacy(privacy) {
|
|
5
5
|
if (typeof privacy !== 'string') {
|
|
6
6
|
throw new TypeError('Privacy must be a string');
|
|
@@ -9,4 +9,3 @@ function validatePrivacy(privacy) {
|
|
|
9
9
|
throw new TypeError('Privacy must be either "private" or "public"');
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
exports.validatePrivacy = validatePrivacy;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { GcpRegion } from '../pricing/gcp-regions';
|
|
2
|
+
export declare const validateRegion: (region: unknown) => GcpRegion;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateMaxRetries =
|
|
3
|
+
exports.validateMaxRetries = validateMaxRetries;
|
|
4
4
|
function validateMaxRetries(maxRetries) {
|
|
5
5
|
if (typeof maxRetries !== 'number') {
|
|
6
6
|
throw new TypeError('maxRetries must be a number, but is ' + JSON.stringify(maxRetries));
|
|
@@ -18,4 +18,3 @@ function validateMaxRetries(maxRetries) {
|
|
|
18
18
|
throw new TypeError(`maxRetries should be an integer, but is ${maxRetries}.`);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
exports.validateMaxRetries = validateMaxRetries;
|
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.215",
|
|
7
7
|
"description": "Render Remotion videos on Google Cloud Run",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"@google-cloud/logging": "^11.1.0",
|
|
17
17
|
"google-auth-library": "^8.7.0",
|
|
18
18
|
"zod": "3.22.3",
|
|
19
|
-
"@remotion/bundler": "4.0.
|
|
20
|
-
"remotion": "4.0.
|
|
21
|
-
"
|
|
22
|
-
"@remotion/
|
|
19
|
+
"@remotion/bundler": "4.0.215",
|
|
20
|
+
"@remotion/cli": "4.0.215",
|
|
21
|
+
"remotion": "4.0.215",
|
|
22
|
+
"@remotion/renderer": "4.0.215"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/minimist": "1.2.2",
|
|
26
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
26
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.215"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
"./package.json": "./package.json",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://www.remotion.dev/docs/cloudrun",
|
|
50
50
|
"scripts": {
|
|
51
|
-
"
|
|
51
|
+
"make": "bun build.ts",
|
|
52
52
|
"buildContainer": "bun src/admin/bundle-renderLogic.ts",
|
|
53
53
|
"tarInstaller": "bun src/admin/bundle-installer.ts",
|
|
54
54
|
"lint": "eslint src --ext ts,tsx",
|
package/.turbo/turbo-build.log
DELETED
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @remotion/cloudrun@4.0.211 lint /Users/jonathanburger/remotion/packages/cloudrun
|
|
3
|
-
> eslint src --ext ts,tsx
|
|
4
|
-
|
|
5
|
-
[0m[0m
|
|
6
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/check-if-service-exists.ts[24m[0m
|
|
7
|
-
[0m [2m59:14[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
8
|
-
[0m[0m
|
|
9
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/get-sites.ts[24m[0m
|
|
10
|
-
[0m [2m60:24[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
11
|
-
[0m [2m64:40[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
12
|
-
[0m[0m
|
|
13
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/render-media-on-cloudrun.ts[24m[0m
|
|
14
|
-
[0m [2m205:3[22m [33mwarning[39m Unexpected 'todo' comment: 'TODO: Add any sort of type safety' [2mno-warning-comments[22m[0m
|
|
15
|
-
[0m [2m214:17[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
16
|
-
[0m[0m
|
|
17
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/render-still-on-cloudrun.ts[24m[0m
|
|
18
|
-
[0m [2m160:17[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/cli/commands/render/helpers/renderArgsCheck.ts[24m[0m
|
|
21
|
-
[0m [2m79:4[22m [33mwarning[39m Unexpected 'todo' comment: 'TODO: Log if there is an incompatible...' [2mno-warning-comments[22m[0m
|
|
22
|
-
[0m[0m
|
|
23
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/index.ts[24m[0m
|
|
24
|
-
[0m [2m180:2[22m [33mwarning[39m Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' [2mno-warning-comments[22m[0m
|
|
25
|
-
[0m[0m
|
|
26
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/still.ts[24m[0m
|
|
27
|
-
[0m [2m162:2[22m [33mwarning[39m Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' [2mno-warning-comments[22m[0m
|
|
28
|
-
[0m[0m
|
|
29
|
-
[0m[33m[1m✖ 9 problems (0 errors, 9 warnings)[22m[39m[0m
|
|
30
|
-
[0m[33m[1m[22m[39m[0m
|