@remotion/renderer 4.0.269 → 4.0.271
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/client.d.ts +2 -2
- package/dist/esm/index.mjs +6 -1
- package/dist/get-codec-name.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/options/index.d.ts +2 -2
- package/dist/options/metadata.d.ts +1 -1
- package/dist/options/webhook-custom-data.d.ts +1 -1
- package/dist/set-props-and-env.js +10 -1
- package/package.json +12 -12
package/dist/client.d.ts
CHANGED
|
@@ -412,7 +412,7 @@ export declare const BrowserSafeApis: {
|
|
|
412
412
|
webhookCustomDataOption: {
|
|
413
413
|
name: string;
|
|
414
414
|
cliFlag: "webhook-custom-data";
|
|
415
|
-
description: (type: "
|
|
415
|
+
description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
416
416
|
ssrName: "customData";
|
|
417
417
|
docLink: string;
|
|
418
418
|
type: Record<string, unknown> | null;
|
|
@@ -825,7 +825,7 @@ export declare const BrowserSafeApis: {
|
|
|
825
825
|
metadataOption: {
|
|
826
826
|
name: string;
|
|
827
827
|
cliFlag: "metadata";
|
|
828
|
-
description: (mode: "
|
|
828
|
+
description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
829
829
|
docLink: string;
|
|
830
830
|
type: import("./options/metadata").Metadata;
|
|
831
831
|
getValue: ({ commandLine }: {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -17019,7 +17019,12 @@ var setPropsAndEnv = async (params) => {
|
|
|
17019
17019
|
innerSetPropsAndEnv(params),
|
|
17020
17020
|
new Promise((_, reject) => {
|
|
17021
17021
|
timeout = setTimeout(() => {
|
|
17022
|
-
reject(new Error(
|
|
17022
|
+
reject(new Error([
|
|
17023
|
+
`Timed out after ${params.timeoutInMilliseconds} while setting up the headless browser.`,
|
|
17024
|
+
"This could be because the you specified takes a long time to load (or network resources that it includes like fonts) or because the browser is not responding.",
|
|
17025
|
+
process.platform === "linux" ? "Make sure you have installed the Linux depdendencies: https://www.remotion.dev/docs/miscellaneous/linux-dependencies" : null
|
|
17026
|
+
].filter(truthy).join(`
|
|
17027
|
+
`)));
|
|
17023
17028
|
}, params.timeoutInMilliseconds);
|
|
17024
17029
|
})
|
|
17025
17030
|
]);
|
package/dist/get-codec-name.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const hasSpecifiedUnsupportedHardwareQualifySettings: ({ encoding
|
|
|
9
9
|
encodingMaxRate: string | null;
|
|
10
10
|
encodingBufferSize: string | null;
|
|
11
11
|
crf: unknown;
|
|
12
|
-
}) => "
|
|
12
|
+
}) => "encodingMaxRate" | "encodingBufferSize" | "crf" | null;
|
|
13
13
|
export declare const getCodecName: ({ codec, encodingMaxRate, encodingBufferSize, crf, hardwareAcceleration, logLevel, indent, }: {
|
|
14
14
|
codec: Codec;
|
|
15
15
|
hardwareAcceleration: HardwareAccelerationOption;
|
package/dist/index.d.ts
CHANGED
|
@@ -354,8 +354,8 @@ export declare const RenderInternals: {
|
|
|
354
354
|
}) => execa.ExecaChildProcess<string>;
|
|
355
355
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
356
356
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
357
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
358
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
357
|
+
DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
|
|
358
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
|
|
359
359
|
DEFAULT_JPEG_QUALITY: number;
|
|
360
360
|
chalk: {
|
|
361
361
|
enabled: () => boolean;
|
package/dist/options/index.d.ts
CHANGED
|
@@ -189,7 +189,7 @@ export declare const allOptions: {
|
|
|
189
189
|
webhookCustomDataOption: {
|
|
190
190
|
name: string;
|
|
191
191
|
cliFlag: "webhook-custom-data";
|
|
192
|
-
description: (type: "
|
|
192
|
+
description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
193
193
|
ssrName: "customData";
|
|
194
194
|
docLink: string;
|
|
195
195
|
type: Record<string, unknown> | null;
|
|
@@ -602,7 +602,7 @@ export declare const allOptions: {
|
|
|
602
602
|
metadataOption: {
|
|
603
603
|
name: string;
|
|
604
604
|
cliFlag: "metadata";
|
|
605
|
-
description: (mode: "
|
|
605
|
+
description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
606
606
|
docLink: string;
|
|
607
607
|
type: import("./metadata").Metadata;
|
|
608
608
|
getValue: ({ commandLine }: {
|
|
@@ -2,7 +2,7 @@ export type Metadata = Record<string, string>;
|
|
|
2
2
|
export declare const metadataOption: {
|
|
3
3
|
name: string;
|
|
4
4
|
cliFlag: "metadata";
|
|
5
|
-
description: (mode: "
|
|
5
|
+
description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
docLink: string;
|
|
7
7
|
type: Metadata;
|
|
8
8
|
getValue: ({ commandLine }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const webhookCustomDataOption: {
|
|
2
2
|
name: string;
|
|
3
3
|
cliFlag: "webhook-custom-data";
|
|
4
|
-
description: (type: "
|
|
4
|
+
description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
ssrName: "customData";
|
|
6
6
|
docLink: string;
|
|
7
7
|
type: Record<string, unknown> | null;
|
|
@@ -8,6 +8,7 @@ const logger_1 = require("./logger");
|
|
|
8
8
|
const normalize_serve_url_1 = require("./normalize-serve-url");
|
|
9
9
|
const puppeteer_evaluate_1 = require("./puppeteer-evaluate");
|
|
10
10
|
const redirect_status_codes_1 = require("./redirect-status-codes");
|
|
11
|
+
const truthy_1 = require("./truthy");
|
|
11
12
|
const validate_puppeteer_timeout_1 = require("./validate-puppeteer-timeout");
|
|
12
13
|
const innerSetPropsAndEnv = async ({ serializedInputPropsWithCustomSchema, envVariables, page, serveUrl, initialFrame, timeoutInMilliseconds, proxyPort, retriesRemaining, audioEnabled, videoEnabled, indent, logLevel, onServeUrlVisited, }) => {
|
|
13
14
|
(0, validate_puppeteer_timeout_1.validatePuppeteerTimeout)(timeoutInMilliseconds);
|
|
@@ -188,7 +189,15 @@ const setPropsAndEnv = async (params) => {
|
|
|
188
189
|
innerSetPropsAndEnv(params),
|
|
189
190
|
new Promise((_, reject) => {
|
|
190
191
|
timeout = setTimeout(() => {
|
|
191
|
-
reject(new Error(
|
|
192
|
+
reject(new Error([
|
|
193
|
+
`Timed out after ${params.timeoutInMilliseconds} while setting up the headless browser.`,
|
|
194
|
+
'This could be because the you specified takes a long time to load (or network resources that it includes like fonts) or because the browser is not responding.',
|
|
195
|
+
process.platform === 'linux'
|
|
196
|
+
? 'Make sure you have installed the Linux depdendencies: https://www.remotion.dev/docs/miscellaneous/linux-dependencies'
|
|
197
|
+
: null,
|
|
198
|
+
]
|
|
199
|
+
.filter(truthy_1.truthy)
|
|
200
|
+
.join('\n')));
|
|
192
201
|
}, params.timeoutInMilliseconds);
|
|
193
202
|
}),
|
|
194
203
|
]);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.271",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.17.1",
|
|
21
|
-
"remotion": "4.0.
|
|
22
|
-
"@remotion/streaming": "4.0.
|
|
21
|
+
"remotion": "4.0.271",
|
|
22
|
+
"@remotion/streaming": "4.0.271"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"react-dom": "19.0.0",
|
|
34
34
|
"@types/ws": "8.5.10",
|
|
35
35
|
"eslint": "9.19.0",
|
|
36
|
-
"@remotion/example-videos": "4.0.
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
36
|
+
"@remotion/example-videos": "4.0.271",
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.271"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@remotion/compositor-darwin-
|
|
41
|
-
"@remotion/compositor-
|
|
42
|
-
"@remotion/compositor-linux-
|
|
43
|
-
"@remotion/compositor-linux-
|
|
44
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
45
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
46
|
-
"@remotion/compositor-
|
|
40
|
+
"@remotion/compositor-darwin-arm64": "4.0.271",
|
|
41
|
+
"@remotion/compositor-darwin-x64": "4.0.271",
|
|
42
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.271",
|
|
43
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.271",
|
|
44
|
+
"@remotion/compositor-linux-x64-musl": "4.0.271",
|
|
45
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.271",
|
|
46
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.271"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|