@remotion/renderer 4.0.19 → 4.0.20
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/dist/get-compositions.js +13 -1
- package/dist/index.d.ts +5 -5
- package/dist/set-props-and-env.js +1 -1
- package/package.json +9 -9
package/dist/get-compositions.js
CHANGED
|
@@ -56,7 +56,19 @@ const innerGetCompositions = async ({ envVariables, serializedInputPropsWithCust
|
|
|
56
56
|
page,
|
|
57
57
|
args: [],
|
|
58
58
|
});
|
|
59
|
-
|
|
59
|
+
const res = result;
|
|
60
|
+
return res.map((r) => {
|
|
61
|
+
const { width, durationInFrames, fps, height, id } = r;
|
|
62
|
+
return {
|
|
63
|
+
id,
|
|
64
|
+
width,
|
|
65
|
+
height,
|
|
66
|
+
fps,
|
|
67
|
+
durationInFrames,
|
|
68
|
+
props: remotion_1.Internals.deserializeJSONWithCustomFields(r.serializedResolvedPropsWithCustomSchema),
|
|
69
|
+
defaultProps: remotion_1.Internals.deserializeJSONWithCustomFields(r.serializedDefaultPropsWithCustomSchema),
|
|
70
|
+
};
|
|
71
|
+
});
|
|
60
72
|
};
|
|
61
73
|
const internalGetCompositions = async ({ browserExecutable, chromiumOptions, envVariables, indent, serializedInputPropsWithCustomSchema, onBrowserLog, port, puppeteerInstance, serveUrlOrWebpackUrl, server, timeoutInMilliseconds, logLevel, }) => {
|
|
62
74
|
const { page, cleanup: cleanupPage } = await (0, get_browser_instance_1.getPageAndCleanupFn)({
|
package/dist/index.d.ts
CHANGED
|
@@ -115,8 +115,8 @@ export declare const RenderInternals: {
|
|
|
115
115
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
116
116
|
DEFAULT_BROWSER: "chrome";
|
|
117
117
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
118
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
119
|
-
validateOpenGlRenderer: (option: "
|
|
118
|
+
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
119
|
+
validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | null) => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
120
120
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
121
121
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
122
122
|
validateJpegQuality: (q: number | undefined) => void;
|
|
@@ -304,8 +304,8 @@ export declare const RenderInternals: {
|
|
|
304
304
|
};
|
|
305
305
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
306
306
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
307
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
308
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
307
|
+
DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
|
|
308
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "none" | "png" | "jpeg";
|
|
309
309
|
DEFAULT_JPEG_QUALITY: number;
|
|
310
310
|
chalk: {
|
|
311
311
|
enabled: () => boolean;
|
|
@@ -416,7 +416,7 @@ export declare const RenderInternals: {
|
|
|
416
416
|
frame: number;
|
|
417
417
|
serializedInputPropsWithCustomSchema: string;
|
|
418
418
|
serializedResolvedPropsWithCustomSchema: string;
|
|
419
|
-
imageFormat: "
|
|
419
|
+
imageFormat: "png" | "jpeg" | "pdf" | "webp";
|
|
420
420
|
jpegQuality: number;
|
|
421
421
|
puppeteerInstance: HeadlessBrowser | null;
|
|
422
422
|
envVariables: Record<string, string>;
|
|
@@ -110,7 +110,7 @@ const innerSetPropsAndEnv = async ({ serializedInputPropsWithCustomSchema, envVa
|
|
|
110
110
|
frame: null,
|
|
111
111
|
page,
|
|
112
112
|
});
|
|
113
|
-
const requiredVersion = '
|
|
113
|
+
const requiredVersion = '10';
|
|
114
114
|
if (siteVersion !== requiredVersion) {
|
|
115
115
|
throw new Error([
|
|
116
116
|
`Incompatible site: When visiting ${urlToVisit}, a bundle was found, but one that is not compatible with this version of Remotion. Found version: ${siteVersion} - Required version: ${requiredVersion}. To resolve this error:`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.20",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.7.0",
|
|
21
|
-
"remotion": "4.0.
|
|
21
|
+
"remotion": "4.0.20"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"zod": "^3.21.4"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
45
|
-
"@remotion/compositor-linux-
|
|
46
|
-
"@remotion/compositor-
|
|
47
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
48
|
-
"@remotion/compositor-linux-
|
|
49
|
-
"@remotion/compositor-
|
|
50
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
44
|
+
"@remotion/compositor-darwin-arm64": "4.0.20",
|
|
45
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.20",
|
|
46
|
+
"@remotion/compositor-linux-x64-musl": "4.0.20",
|
|
47
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.20",
|
|
48
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.20",
|
|
49
|
+
"@remotion/compositor-darwin-x64": "4.0.20",
|
|
50
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.20"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"remotion",
|