@remotion/cloudrun 4.0.278 → 4.0.279
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 +1 -1
- package/dist/api/render-media-on-cloudrun.d.ts +3 -2
- package/dist/api/render-media-on-cloudrun.js +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/functions/render-media-single-thread.js +1 -1
- package/dist/functions/render-still-single-thread.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/shared/constants.js +1 -0
- package/package.json +7 -7
package/.turbo/turbo-make.log
CHANGED
|
@@ -14,7 +14,7 @@ type InternalRenderMediaOnCloudrun = {
|
|
|
14
14
|
privacy: 'public' | 'private' | undefined;
|
|
15
15
|
forceBucketName: string | undefined;
|
|
16
16
|
outName: string | undefined;
|
|
17
|
-
updateRenderProgress: ((progress: number, error
|
|
17
|
+
updateRenderProgress: ((progress: number, error: boolean) => void) | undefined;
|
|
18
18
|
codec: CloudrunCodec;
|
|
19
19
|
audioCodec: AudioCodec | undefined;
|
|
20
20
|
jpegQuality: number | undefined;
|
|
@@ -36,6 +36,7 @@ type InternalRenderMediaOnCloudrun = {
|
|
|
36
36
|
renderIdOverride: z.infer<typeof CloudRunPayload>['renderIdOverride'];
|
|
37
37
|
renderStatusWebhook: z.infer<typeof CloudRunPayload>['renderStatusWebhook'];
|
|
38
38
|
} & ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnCloudRun>;
|
|
39
|
+
export type UpdateRenderProgress = (progress: number, error: boolean) => void;
|
|
39
40
|
export type RenderMediaOnCloudrunInput = {
|
|
40
41
|
region: GcpRegion;
|
|
41
42
|
serveUrl: string;
|
|
@@ -48,7 +49,7 @@ export type RenderMediaOnCloudrunInput = {
|
|
|
48
49
|
privacy?: 'public' | 'private';
|
|
49
50
|
forceBucketName?: string;
|
|
50
51
|
outName?: string;
|
|
51
|
-
updateRenderProgress?:
|
|
52
|
+
updateRenderProgress?: UpdateRenderProgress;
|
|
52
53
|
audioCodec?: AudioCodec;
|
|
53
54
|
encodingMaxRate?: string | null;
|
|
54
55
|
encodingBufferSize?: string | null;
|
|
@@ -101,7 +101,7 @@ const internalRenderMediaOnCloudrunRaw = async ({ cloudRunUrl, serviceName, regi
|
|
|
101
101
|
response = parsedData.response;
|
|
102
102
|
}
|
|
103
103
|
else if (parsedData.onProgress) {
|
|
104
|
-
updateRenderProgress === null || updateRenderProgress === void 0 ? void 0 : updateRenderProgress(parsedData.onProgress);
|
|
104
|
+
updateRenderProgress === null || updateRenderProgress === void 0 ? void 0 : updateRenderProgress(parsedData.onProgress, false);
|
|
105
105
|
}
|
|
106
106
|
if (parsedData.type === 'error') {
|
|
107
107
|
reject(parsedData);
|
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 { RenderMediaOnCloudrunInput, renderMediaOnCloudrun, } from './api/render-media-on-cloudrun';
|
|
8
|
+
export { RenderMediaOnCloudrunInput, UpdateRenderProgress, renderMediaOnCloudrun, } from './api/render-media-on-cloudrun';
|
|
9
9
|
export { RenderStillOnCloudrunInput, renderStillOnCloudrun, } from './api/render-still-on-cloudrun';
|
|
10
10
|
export { speculateServiceName } from './api/speculate-service-name';
|
|
@@ -18,7 +18,7 @@ const renderMediaSingleThread = async (body, res) => {
|
|
|
18
18
|
if (!body.clientVersion) {
|
|
19
19
|
throw new Error(`Version mismatch: When calling renderMediaOnCloudRun(), you called a service which has the version ${version_1.VERSION} but the @remotion/cloudrun package is an older version. Deploy a new service with matchin version and use it to call renderMediaOnCloudRun().`);
|
|
20
20
|
}
|
|
21
|
-
throw new Error(`Version mismatch: When calling renderMediaOnCloudRun(), you called a service, which has the version ${version_1.VERSION}, but the @remotion/cloudrun package you used to invoke the function has version ${
|
|
21
|
+
throw new Error(`Version mismatch: When calling renderMediaOnCloudRun(), you called a service, which has the version ${version_1.VERSION}, but the @remotion/cloudrun package you used to invoke the function has version ${body.clientVersion}. Deploy a new service and use it to call renderMediaOnCloudrun().`);
|
|
22
22
|
}
|
|
23
23
|
const renderId = (_a = body.renderIdOverride) !== null && _a !== void 0 ? _a : (0, random_hash_1.randomHash)({ randomInTests: true });
|
|
24
24
|
try {
|
|
@@ -19,7 +19,7 @@ const renderStillSingleThread = async (body, res) => {
|
|
|
19
19
|
if (!body.clientVersion) {
|
|
20
20
|
throw new Error(`Version mismatch: When calling renderMediaOnCloudRun(), you called a service which has the version ${version_1.VERSION} but the @remotion/cloudrun package is an older version. Deploy a new service with matchin version and use it to call renderMediaOnCloudRun().`);
|
|
21
21
|
}
|
|
22
|
-
throw new Error(`Version mismatch: When calling renderMediaOnCloudRun(), you called a service, which has the version ${version_1.VERSION}, but the @remotion/cloudrun package you used to invoke the function has version ${
|
|
22
|
+
throw new Error(`Version mismatch: When calling renderMediaOnCloudRun(), you called a service, which has the version ${version_1.VERSION}, but the @remotion/cloudrun package you used to invoke the function has version ${body.clientVersion}. Deploy a new service and use it to call renderMediaOnCloudrun().`);
|
|
23
23
|
}
|
|
24
24
|
const renderId = (_a = body.renderIdOverride) !== null && _a !== void 0 ? _a : (0, random_hash_1.randomHash)({ randomInTests: true });
|
|
25
25
|
try {
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,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
10
|
import { testPermissions } from './api/iam-validation/testPermissions';
|
|
11
|
-
import type { RenderMediaOnCloudrunInput } from './api/render-media-on-cloudrun';
|
|
11
|
+
import type { RenderMediaOnCloudrunInput, UpdateRenderProgress } from './api/render-media-on-cloudrun';
|
|
12
12
|
import { speculateServiceName } from './api/speculate-service-name';
|
|
13
13
|
import type { RenderMediaOnCloudrunOutput } from './functions/helpers/payloads';
|
|
14
14
|
import { CloudrunInternals } from './internals';
|
|
@@ -46,4 +46,4 @@ declare const renderStillOnCloudrun: (options: import("./api/render-still-on-clo
|
|
|
46
46
|
*/
|
|
47
47
|
declare const getSites: (region: GcpRegion | "all regions") => Promise<import("./api/get-sites").GetSitesOutput>;
|
|
48
48
|
export { CloudrunInternals, deleteService, deleteSite, deployService, deploySite, getOrCreateBucket, getRegions, getServiceInfo, getServices, getSites, renderMediaOnCloudrun, renderStillOnCloudrun, speculateServiceName, testPermissions, };
|
|
49
|
-
export type { DeployServiceInput, DeployServiceOutput, GcpRegion, RenderMediaOnCloudrunInput, RenderMediaOnCloudrunOutput, };
|
|
49
|
+
export type { DeployServiceInput, DeployServiceOutput, GcpRegion, RenderMediaOnCloudrunInput, RenderMediaOnCloudrunOutput, UpdateRenderProgress, };
|
package/dist/shared/constants.js
CHANGED
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.279",
|
|
7
7
|
"description": "Render Remotion videos on Google Cloud Run",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"@google-cloud/logging": "11.2.0",
|
|
17
17
|
"google-auth-library": "8.7.0",
|
|
18
18
|
"zod": "3.22.3",
|
|
19
|
-
"@remotion/
|
|
20
|
-
"@remotion/
|
|
21
|
-
"
|
|
22
|
-
"remotion": "4.0.
|
|
19
|
+
"@remotion/bundler": "4.0.279",
|
|
20
|
+
"@remotion/cli": "4.0.279",
|
|
21
|
+
"remotion": "4.0.279",
|
|
22
|
+
"@remotion/renderer": "4.0.279"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/minimist": "1.2.2",
|
|
26
26
|
"eslint": "9.19.0",
|
|
27
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
28
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
27
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.279",
|
|
28
|
+
"@remotion/eslint-config-internal": "4.0.279"
|
|
29
29
|
},
|
|
30
30
|
"exports": {
|
|
31
31
|
"./package.json": "./package.json",
|