@remotion/renderer 4.0.506 → 4.0.508
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 +3 -3
- package/dist/esm/client.mjs +8 -7
- package/dist/esm/index.mjs +19 -10
- package/dist/options/default-coding-agent.d.ts +4 -4
- package/dist/options/default-coding-agent.js +1 -1
- package/dist/options/index.d.ts +3 -3
- package/dist/options/video-cache-size.js +6 -7
- package/dist/render-media.d.ts +1 -1
- package/dist/render-media.js +19 -6
- package/dist/render-still.d.ts +13 -6
- package/dist/render-still.js +20 -5
- package/package.json +13 -13
package/dist/client.d.ts
CHANGED
|
@@ -1288,14 +1288,14 @@ export declare const BrowserSafeApis: {
|
|
|
1288
1288
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1289
1289
|
ssrName: null;
|
|
1290
1290
|
docLink: string;
|
|
1291
|
-
type: "claude-code" | "codex" | "
|
|
1291
|
+
type: "claude-code" | "codex" | "copilot" | "cursor" | null;
|
|
1292
1292
|
getValue: ({ commandLine }: {
|
|
1293
1293
|
commandLine: Record<string, unknown>;
|
|
1294
1294
|
}) => {
|
|
1295
|
-
value: "claude-code" | "codex" | "
|
|
1295
|
+
value: "claude-code" | "codex" | "copilot" | "cursor" | null;
|
|
1296
1296
|
source: string;
|
|
1297
1297
|
};
|
|
1298
|
-
setConfig(value: "claude-code" | "codex" | "
|
|
1298
|
+
setConfig(value: "claude-code" | "codex" | "copilot" | "cursor" | null): void;
|
|
1299
1299
|
id: "coding-agent";
|
|
1300
1300
|
};
|
|
1301
1301
|
defaultEditorOption: {
|
package/dist/esm/client.mjs
CHANGED
|
@@ -1297,7 +1297,7 @@ import { jsx as jsx17, jsxs as jsxs12, Fragment as Fragment17 } from "react/jsx-
|
|
|
1297
1297
|
var defaultCodingAgentIds = [
|
|
1298
1298
|
"codex",
|
|
1299
1299
|
"cursor",
|
|
1300
|
-
"
|
|
1300
|
+
"copilot",
|
|
1301
1301
|
"claude-code"
|
|
1302
1302
|
];
|
|
1303
1303
|
var cliFlag19 = "coding-agent";
|
|
@@ -4888,26 +4888,27 @@ var mediaCacheSizeInBytesOption = {
|
|
|
4888
4888
|
cliFlag: cliFlag88,
|
|
4889
4889
|
description: () => /* @__PURE__ */ jsxs57(Fragment83, {
|
|
4890
4890
|
children: [
|
|
4891
|
-
"Specify the
|
|
4891
|
+
"Specify the memory budget for decoded media cached by",
|
|
4892
|
+
" ",
|
|
4892
4893
|
/* @__PURE__ */ jsx83("code", {
|
|
4893
4894
|
children: "<Video>"
|
|
4894
4895
|
}),
|
|
4895
|
-
" and",
|
|
4896
|
-
" ",
|
|
4896
|
+
" and ",
|
|
4897
4897
|
/* @__PURE__ */ jsx83("code", {
|
|
4898
4898
|
children: "<Audio>"
|
|
4899
4899
|
}),
|
|
4900
|
-
" from
|
|
4900
|
+
" from",
|
|
4901
|
+
" ",
|
|
4901
4902
|
/* @__PURE__ */ jsx83("code", {
|
|
4902
4903
|
children: "@remotion/media"
|
|
4903
4904
|
}),
|
|
4904
|
-
"
|
|
4905
|
+
", in bytes. This value also determines the maximum read cache size for each distinct media source. It is not a limit on total memory usage. ",
|
|
4905
4906
|
/* @__PURE__ */ jsx83("br", {}),
|
|
4906
4907
|
"The default is half of the available system memory when the render starts."
|
|
4907
4908
|
]
|
|
4908
4909
|
}),
|
|
4909
4910
|
ssrName: "mediaCacheSizeInBytes",
|
|
4910
|
-
docLink: "https://www.remotion.dev/docs/media/
|
|
4911
|
+
docLink: "https://www.remotion.dev/docs/media/cache",
|
|
4911
4912
|
type: 0,
|
|
4912
4913
|
getValue: ({ commandLine }) => {
|
|
4913
4914
|
if (commandLine[cliFlag88] !== undefined) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -24245,7 +24245,7 @@ var internalRenderMediaRaw = ({
|
|
|
24245
24245
|
event: "cloud-render",
|
|
24246
24246
|
host: null,
|
|
24247
24247
|
succeeded: true,
|
|
24248
|
-
licenseKey: licenseKey
|
|
24248
|
+
licenseKey: licenseKey === "free-license" ? null : licenseKey,
|
|
24249
24249
|
isProduction: isProduction ?? true,
|
|
24250
24250
|
isStill: false
|
|
24251
24251
|
}).then(() => {
|
|
@@ -24373,8 +24373,12 @@ var renderMedia = ({
|
|
|
24373
24373
|
if (quality !== undefined) {
|
|
24374
24374
|
Log.warn({ indent, logLevel }, `The "quality" option has been renamed. Please use "jpegQuality" instead.`);
|
|
24375
24375
|
}
|
|
24376
|
-
const licenseKey = "licenseKey" in apiKeyOrLicenseKey ? apiKeyOrLicenseKey.licenseKey : null;
|
|
24377
|
-
const apiKey = "apiKey" in apiKeyOrLicenseKey ? apiKeyOrLicenseKey.apiKey : null;
|
|
24376
|
+
const licenseKey = "licenseKey" in apiKeyOrLicenseKey && typeof apiKeyOrLicenseKey.licenseKey === "string" ? apiKeyOrLicenseKey.licenseKey : null;
|
|
24377
|
+
const apiKey = "apiKey" in apiKeyOrLicenseKey && typeof apiKeyOrLicenseKey.apiKey === "string" ? apiKeyOrLicenseKey.apiKey : null;
|
|
24378
|
+
const effectiveLicenseKey = (NoReactInternals17.ENABLE_V5_BREAKING_CHANGES ? licenseKey : licenseKey ?? apiKey) ?? null;
|
|
24379
|
+
if (NoReactInternals17.ENABLE_V5_BREAKING_CHANGES && effectiveLicenseKey === null) {
|
|
24380
|
+
Log.warn({ indent, logLevel }, 'Pass "licenseKey" to renderMedia(). If you qualify for the Free License (https://remotion.dev/license), pass "free-license" instead.');
|
|
24381
|
+
}
|
|
24378
24382
|
return internalRenderMedia({
|
|
24379
24383
|
proResProfile: proResProfile ?? undefined,
|
|
24380
24384
|
x264Preset: x264Preset ?? null,
|
|
@@ -24454,7 +24458,7 @@ var renderMedia = ({
|
|
|
24454
24458
|
hardwareAcceleration: hardwareAcceleration ?? "disable",
|
|
24455
24459
|
chromeMode: chromeMode ?? "headless-shell",
|
|
24456
24460
|
mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
|
|
24457
|
-
licenseKey:
|
|
24461
|
+
licenseKey: effectiveLicenseKey,
|
|
24458
24462
|
onLog: defaultOnLog,
|
|
24459
24463
|
isProduction: isProduction ?? null,
|
|
24460
24464
|
sampleRate: sampleRate ?? composition.defaultSampleRate ?? 48000
|
|
@@ -24712,7 +24716,7 @@ var internalRenderStillRaw = (options2) => {
|
|
|
24712
24716
|
return;
|
|
24713
24717
|
}
|
|
24714
24718
|
LicensingInternals2.internalRegisterUsageEvent({
|
|
24715
|
-
licenseKey: options2.licenseKey,
|
|
24719
|
+
licenseKey: options2.licenseKey === "free-license" ? null : options2.licenseKey,
|
|
24716
24720
|
event: "cloud-render",
|
|
24717
24721
|
host: null,
|
|
24718
24722
|
succeeded: true,
|
|
@@ -24775,9 +24779,8 @@ var renderStill = (options2) => {
|
|
|
24775
24779
|
chromeMode,
|
|
24776
24780
|
offthreadVideoThreads,
|
|
24777
24781
|
mediaCacheSizeInBytes,
|
|
24778
|
-
|
|
24779
|
-
|
|
24780
|
-
isProduction
|
|
24782
|
+
isProduction,
|
|
24783
|
+
...apiKeyOrLicenseKey
|
|
24781
24784
|
} = options2;
|
|
24782
24785
|
if (typeof jpegQuality !== "undefined" && imageFormat !== "jpeg") {
|
|
24783
24786
|
throw new Error("You can only pass the `quality` option if `imageFormat` is 'jpeg'.");
|
|
@@ -24787,6 +24790,12 @@ var renderStill = (options2) => {
|
|
|
24787
24790
|
if (quality) {
|
|
24788
24791
|
Log.warn({ indent, logLevel }, "Passing `quality()` to `renderStill` is deprecated. Use `jpegQuality` instead.");
|
|
24789
24792
|
}
|
|
24793
|
+
const licenseKey = "licenseKey" in apiKeyOrLicenseKey && typeof apiKeyOrLicenseKey.licenseKey === "string" ? apiKeyOrLicenseKey.licenseKey : null;
|
|
24794
|
+
const apiKey = "apiKey" in apiKeyOrLicenseKey && typeof apiKeyOrLicenseKey.apiKey === "string" ? apiKeyOrLicenseKey.apiKey : null;
|
|
24795
|
+
const effectiveLicenseKey = (NoReactInternals18.ENABLE_V5_BREAKING_CHANGES ? licenseKey : licenseKey ?? apiKey) ?? null;
|
|
24796
|
+
if (NoReactInternals18.ENABLE_V5_BREAKING_CHANGES && effectiveLicenseKey === null) {
|
|
24797
|
+
Log.warn({ indent, logLevel }, 'Pass "licenseKey" to renderStill(). If you qualify for the Free License (https://remotion.dev/license), pass "free-license" instead.');
|
|
24798
|
+
}
|
|
24790
24799
|
return internalRenderStill({
|
|
24791
24800
|
composition,
|
|
24792
24801
|
browserExecutable: browserExecutable ?? null,
|
|
@@ -24829,7 +24838,7 @@ var renderStill = (options2) => {
|
|
|
24829
24838
|
chromeMode: chromeMode ?? "headless-shell",
|
|
24830
24839
|
offthreadVideoThreads: offthreadVideoThreads ?? null,
|
|
24831
24840
|
mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
|
|
24832
|
-
licenseKey:
|
|
24841
|
+
licenseKey: effectiveLicenseKey,
|
|
24833
24842
|
onLog: defaultOnLog,
|
|
24834
24843
|
isProduction: isProduction ?? null
|
|
24835
24844
|
});
|
|
@@ -25621,7 +25630,7 @@ import { jsx as jsx8, jsxs as jsxs8, Fragment as Fragment8 } from "react/jsx-run
|
|
|
25621
25630
|
var defaultCodingAgentIds = [
|
|
25622
25631
|
"codex",
|
|
25623
25632
|
"cursor",
|
|
25624
|
-
"
|
|
25633
|
+
"copilot",
|
|
25625
25634
|
"claude-code"
|
|
25626
25635
|
];
|
|
25627
25636
|
// src/options/default-editor.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const defaultCodingAgentIds: readonly ["codex", "cursor", "
|
|
1
|
+
export declare const defaultCodingAgentIds: readonly ["codex", "cursor", "copilot", "claude-code"];
|
|
2
2
|
export type DefaultCodingAgent = (typeof defaultCodingAgentIds)[number];
|
|
3
3
|
export declare const defaultCodingAgentOption: {
|
|
4
4
|
name: string;
|
|
@@ -6,13 +6,13 @@ export declare const defaultCodingAgentOption: {
|
|
|
6
6
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
ssrName: null;
|
|
8
8
|
docLink: string;
|
|
9
|
-
type: "claude-code" | "codex" | "
|
|
9
|
+
type: "claude-code" | "codex" | "copilot" | "cursor" | null;
|
|
10
10
|
getValue: ({ commandLine }: {
|
|
11
11
|
commandLine: Record<string, unknown>;
|
|
12
12
|
}) => {
|
|
13
|
-
value: "claude-code" | "codex" | "
|
|
13
|
+
value: "claude-code" | "codex" | "copilot" | "cursor" | null;
|
|
14
14
|
source: string;
|
|
15
15
|
};
|
|
16
|
-
setConfig(value: "claude-code" | "codex" | "
|
|
16
|
+
setConfig(value: "claude-code" | "codex" | "copilot" | "cursor" | null): void;
|
|
17
17
|
id: "coding-agent";
|
|
18
18
|
};
|
package/dist/options/index.d.ts
CHANGED
|
@@ -1038,14 +1038,14 @@ export declare const allOptions: {
|
|
|
1038
1038
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1039
1039
|
ssrName: null;
|
|
1040
1040
|
docLink: string;
|
|
1041
|
-
type: "claude-code" | "codex" | "
|
|
1041
|
+
type: "claude-code" | "codex" | "copilot" | "cursor" | null;
|
|
1042
1042
|
getValue: ({ commandLine }: {
|
|
1043
1043
|
commandLine: Record<string, unknown>;
|
|
1044
1044
|
}) => {
|
|
1045
|
-
value: "claude-code" | "codex" | "
|
|
1045
|
+
value: "claude-code" | "codex" | "copilot" | "cursor" | null;
|
|
1046
1046
|
source: string;
|
|
1047
1047
|
};
|
|
1048
|
-
setConfig(value: "claude-code" | "codex" | "
|
|
1048
|
+
setConfig(value: "claude-code" | "codex" | "copilot" | "cursor" | null): void;
|
|
1049
1049
|
id: "coding-agent";
|
|
1050
1050
|
};
|
|
1051
1051
|
defaultEditorOption: {
|
|
@@ -11,16 +11,15 @@ const cliFlag = 'media-cache-size-in-bytes';
|
|
|
11
11
|
exports.mediaCacheSizeInBytesOption = {
|
|
12
12
|
name: '@remotion/media cache size',
|
|
13
13
|
cliFlag,
|
|
14
|
-
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify the
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
" from ",
|
|
18
|
-
|
|
19
|
-
" may use combined, in bytes. ",
|
|
14
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify the memory budget for decoded media cached by", ' ', jsx_runtime_1.jsx("code", { children: "<Video>" }),
|
|
15
|
+
" and ",
|
|
16
|
+
jsx_runtime_1.jsx("code", { children: "<Audio>" }),
|
|
17
|
+
" from", ' ', jsx_runtime_1.jsx("code", { children: "@remotion/media" }),
|
|
18
|
+
", in bytes. This value also determines the maximum read cache size for each distinct media source. It is not a limit on total memory usage. ",
|
|
20
19
|
jsx_runtime_1.jsx("br", {}),
|
|
21
20
|
"The default is half of the available system memory when the render starts."] })),
|
|
22
21
|
ssrName: 'mediaCacheSizeInBytes',
|
|
23
|
-
docLink: 'https://www.remotion.dev/docs/media/
|
|
22
|
+
docLink: 'https://www.remotion.dev/docs/media/cache',
|
|
24
23
|
type: 0,
|
|
25
24
|
getValue: ({ commandLine }) => {
|
|
26
25
|
if (commandLine[cliFlag] !== undefined) {
|
package/dist/render-media.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export type RenderMediaProgress = {
|
|
|
37
37
|
export type RenderMediaOnProgress = (progress: RenderMediaProgress) => void;
|
|
38
38
|
type MoreRenderMediaOptions = ToOptions<typeof optionsMap.renderMedia>;
|
|
39
39
|
type EitherApiKeyOrLicenseKey = true extends typeof NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? {
|
|
40
|
-
licenseKey
|
|
40
|
+
licenseKey?: string | null;
|
|
41
41
|
} : {
|
|
42
42
|
/**
|
|
43
43
|
* @deprecated Use `licenseKey` instead
|
package/dist/render-media.js
CHANGED
|
@@ -494,7 +494,7 @@ const internalRenderMediaRaw = ({ proResProfile, x264Preset, gopSize, crf, compo
|
|
|
494
494
|
event: 'cloud-render',
|
|
495
495
|
host: null,
|
|
496
496
|
succeeded: true,
|
|
497
|
-
licenseKey: licenseKey
|
|
497
|
+
licenseKey: licenseKey === 'free-license' ? null : licenseKey,
|
|
498
498
|
isProduction: isProduction !== null && isProduction !== void 0 ? isProduction : true,
|
|
499
499
|
isStill: false,
|
|
500
500
|
})
|
|
@@ -588,8 +588,21 @@ const renderMedia = ({ proResProfile, x264Preset, gopSize, crf, composition, inp
|
|
|
588
588
|
if (quality !== undefined) {
|
|
589
589
|
logger_1.Log.warn({ indent, logLevel }, `The "quality" option has been renamed. Please use "jpegQuality" instead.`);
|
|
590
590
|
}
|
|
591
|
-
const licenseKey = 'licenseKey' in apiKeyOrLicenseKey
|
|
592
|
-
|
|
591
|
+
const licenseKey = 'licenseKey' in apiKeyOrLicenseKey &&
|
|
592
|
+
typeof apiKeyOrLicenseKey.licenseKey === 'string'
|
|
593
|
+
? apiKeyOrLicenseKey.licenseKey
|
|
594
|
+
: null;
|
|
595
|
+
const apiKey = 'apiKey' in apiKeyOrLicenseKey &&
|
|
596
|
+
typeof apiKeyOrLicenseKey.apiKey === 'string'
|
|
597
|
+
? apiKeyOrLicenseKey.apiKey
|
|
598
|
+
: null;
|
|
599
|
+
const effectiveLicenseKey = (_a = (no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES
|
|
600
|
+
? licenseKey
|
|
601
|
+
: (licenseKey !== null && licenseKey !== void 0 ? licenseKey : apiKey))) !== null && _a !== void 0 ? _a : null;
|
|
602
|
+
if (no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES &&
|
|
603
|
+
effectiveLicenseKey === null) {
|
|
604
|
+
logger_1.Log.warn({ indent, logLevel }, 'Pass "licenseKey" to renderMedia(). If you qualify for the Free License (https://remotion.dev/license), pass "free-license" instead.');
|
|
605
|
+
}
|
|
593
606
|
return (0, exports.internalRenderMedia)({
|
|
594
607
|
proResProfile: proResProfile !== null && proResProfile !== void 0 ? proResProfile : undefined,
|
|
595
608
|
x264Preset: x264Preset !== null && x264Preset !== void 0 ? x264Preset : null,
|
|
@@ -616,7 +629,7 @@ const renderMedia = ({ proResProfile, x264Preset, gopSize, crf, composition, inp
|
|
|
616
629
|
staticBase: null,
|
|
617
630
|
data: inputProps !== null && inputProps !== void 0 ? inputProps : {},
|
|
618
631
|
}).serializedString,
|
|
619
|
-
jpegQuality: (
|
|
632
|
+
jpegQuality: (_b = jpegQuality !== null && jpegQuality !== void 0 ? jpegQuality : quality) !== null && _b !== void 0 ? _b : jpeg_quality_1.DEFAULT_JPEG_QUALITY,
|
|
620
633
|
muted: muted !== null && muted !== void 0 ? muted : false,
|
|
621
634
|
numberOfGifLoops: numberOfGifLoops !== null && numberOfGifLoops !== void 0 ? numberOfGifLoops : null,
|
|
622
635
|
onBrowserLog: onBrowserLog !== null && onBrowserLog !== void 0 ? onBrowserLog : null,
|
|
@@ -641,7 +654,7 @@ const renderMedia = ({ proResProfile, x264Preset, gopSize, crf, composition, inp
|
|
|
641
654
|
serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
642
655
|
indent: undefined,
|
|
643
656
|
staticBase: null,
|
|
644
|
-
data: (
|
|
657
|
+
data: (_c = composition.props) !== null && _c !== void 0 ? _c : {},
|
|
645
658
|
}).serializedString,
|
|
646
659
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes !== null && offthreadVideoCacheSizeInBytes !== void 0 ? offthreadVideoCacheSizeInBytes : null,
|
|
647
660
|
offthreadVideoThreads: offthreadVideoThreads !== null && offthreadVideoThreads !== void 0 ? offthreadVideoThreads : null,
|
|
@@ -661,7 +674,7 @@ const renderMedia = ({ proResProfile, x264Preset, gopSize, crf, composition, inp
|
|
|
661
674
|
hardwareAcceleration: hardwareAcceleration !== null && hardwareAcceleration !== void 0 ? hardwareAcceleration : 'disable',
|
|
662
675
|
chromeMode: chromeMode !== null && chromeMode !== void 0 ? chromeMode : 'headless-shell',
|
|
663
676
|
mediaCacheSizeInBytes: mediaCacheSizeInBytes !== null && mediaCacheSizeInBytes !== void 0 ? mediaCacheSizeInBytes : null,
|
|
664
|
-
licenseKey:
|
|
677
|
+
licenseKey: effectiveLicenseKey,
|
|
665
678
|
onLog: default_on_log_1.defaultOnLog,
|
|
666
679
|
isProduction: isProduction !== null && isProduction !== void 0 ? isProduction : null,
|
|
667
680
|
sampleRate: (_d = sampleRate !== null && sampleRate !== void 0 ? sampleRate : composition.defaultSampleRate) !== null && _d !== void 0 ? _d : 48000,
|
package/dist/render-still.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { VideoConfig } from 'remotion/no-react';
|
|
2
|
+
import { NoReactInternals } from 'remotion/no-react';
|
|
2
3
|
import type { RenderMediaOnDownload } from './assets/download-and-map-assets-to-file';
|
|
3
4
|
import type { BrowserExecutable } from './browser-executable';
|
|
4
5
|
import type { BrowserLog } from './browser-log';
|
|
@@ -36,6 +37,17 @@ type InternalRenderStillOptions = {
|
|
|
36
37
|
onLog: OnLog;
|
|
37
38
|
isProduction: boolean | null;
|
|
38
39
|
} & ToOptions<Omit<typeof optionsMap.renderStill, 'apiKey'>>;
|
|
40
|
+
type MoreRenderStillOptions = ToOptions<Omit<typeof optionsMap.renderStill, 'apiKey' | 'licenseKey'>>;
|
|
41
|
+
type EitherApiKeyOrLicenseKey = true extends typeof NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? {
|
|
42
|
+
licenseKey?: string | null;
|
|
43
|
+
} : {
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Use `licenseKey` instead
|
|
46
|
+
*/
|
|
47
|
+
apiKey?: string | null;
|
|
48
|
+
} | {
|
|
49
|
+
licenseKey?: string | null;
|
|
50
|
+
};
|
|
39
51
|
export type RenderStillOptions = {
|
|
40
52
|
port?: number | null;
|
|
41
53
|
composition: VideoConfig;
|
|
@@ -67,12 +79,7 @@ export type RenderStillOptions = {
|
|
|
67
79
|
quality?: never;
|
|
68
80
|
onArtifact?: OnArtifact;
|
|
69
81
|
isProduction?: boolean;
|
|
70
|
-
} & Partial<
|
|
71
|
-
/**
|
|
72
|
-
* @deprecated Use `licenseKey` instead
|
|
73
|
-
*/
|
|
74
|
-
apiKey?: string | null;
|
|
75
|
-
};
|
|
82
|
+
} & Partial<MoreRenderStillOptions> & EitherApiKeyOrLicenseKey;
|
|
76
83
|
type RenderStillReturnValue = {
|
|
77
84
|
buffer: Buffer | null;
|
|
78
85
|
contentType: string;
|
package/dist/render-still.js
CHANGED
|
@@ -292,7 +292,7 @@ const internalRenderStillRaw = (options) => {
|
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
294
|
licensing_1.LicensingInternals.internalRegisterUsageEvent({
|
|
295
|
-
licenseKey: options.licenseKey,
|
|
295
|
+
licenseKey: options.licenseKey === 'free-license' ? null : options.licenseKey,
|
|
296
296
|
event: 'cloud-render',
|
|
297
297
|
host: null,
|
|
298
298
|
succeeded: true,
|
|
@@ -336,7 +336,7 @@ exports.internalRenderStill = (0, wrap_with_error_handling_1.wrapWithErrorHandli
|
|
|
336
336
|
*/
|
|
337
337
|
const renderStill = (options) => {
|
|
338
338
|
var _a, _b, _c;
|
|
339
|
-
const { composition, serveUrl, browserExecutable, cancelSignal, chromiumOptions, dumpBrowserLogs, envVariables, frame, imageFormat, inputProps, jpegQuality, onBrowserLog, onDownload, output, overwrite, port, puppeteerInstance, scale, timeoutInMilliseconds, verbose, quality, offthreadVideoCacheSizeInBytes, logLevel: passedLogLevel, binariesDirectory, onBrowserDownload, onArtifact, chromeMode, offthreadVideoThreads, mediaCacheSizeInBytes,
|
|
339
|
+
const { composition, serveUrl, browserExecutable, cancelSignal, chromiumOptions, dumpBrowserLogs, envVariables, frame, imageFormat, inputProps, jpegQuality, onBrowserLog, onDownload, output, overwrite, port, puppeteerInstance, scale, timeoutInMilliseconds, verbose, quality, offthreadVideoCacheSizeInBytes, logLevel: passedLogLevel, binariesDirectory, onBrowserDownload, onArtifact, chromeMode, offthreadVideoThreads, mediaCacheSizeInBytes, isProduction, ...apiKeyOrLicenseKey } = options;
|
|
340
340
|
if (typeof jpegQuality !== 'undefined' && imageFormat !== 'jpeg') {
|
|
341
341
|
throw new Error("You can only pass the `quality` option if `imageFormat` is 'jpeg'.");
|
|
342
342
|
}
|
|
@@ -345,6 +345,21 @@ const renderStill = (options) => {
|
|
|
345
345
|
if (quality) {
|
|
346
346
|
logger_1.Log.warn({ indent, logLevel }, 'Passing `quality()` to `renderStill` is deprecated. Use `jpegQuality` instead.');
|
|
347
347
|
}
|
|
348
|
+
const licenseKey = 'licenseKey' in apiKeyOrLicenseKey &&
|
|
349
|
+
typeof apiKeyOrLicenseKey.licenseKey === 'string'
|
|
350
|
+
? apiKeyOrLicenseKey.licenseKey
|
|
351
|
+
: null;
|
|
352
|
+
const apiKey = 'apiKey' in apiKeyOrLicenseKey &&
|
|
353
|
+
typeof apiKeyOrLicenseKey.apiKey === 'string'
|
|
354
|
+
? apiKeyOrLicenseKey.apiKey
|
|
355
|
+
: null;
|
|
356
|
+
const effectiveLicenseKey = (_a = (no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES
|
|
357
|
+
? licenseKey
|
|
358
|
+
: (licenseKey !== null && licenseKey !== void 0 ? licenseKey : apiKey))) !== null && _a !== void 0 ? _a : null;
|
|
359
|
+
if (no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES &&
|
|
360
|
+
effectiveLicenseKey === null) {
|
|
361
|
+
logger_1.Log.warn({ indent, logLevel }, 'Pass "licenseKey" to renderStill(). If you qualify for the Free License (https://remotion.dev/license), pass "free-license" instead.');
|
|
362
|
+
}
|
|
348
363
|
return (0, exports.internalRenderStill)({
|
|
349
364
|
composition,
|
|
350
365
|
browserExecutable: browserExecutable !== null && browserExecutable !== void 0 ? browserExecutable : null,
|
|
@@ -359,7 +374,7 @@ const renderStill = (options) => {
|
|
|
359
374
|
indent: undefined,
|
|
360
375
|
data: inputProps !== null && inputProps !== void 0 ? inputProps : {},
|
|
361
376
|
}).serializedString,
|
|
362
|
-
jpegQuality: (
|
|
377
|
+
jpegQuality: (_b = jpegQuality !== null && jpegQuality !== void 0 ? jpegQuality : quality) !== null && _b !== void 0 ? _b : jpeg_quality_1.DEFAULT_JPEG_QUALITY,
|
|
363
378
|
onBrowserLog: onBrowserLog !== null && onBrowserLog !== void 0 ? onBrowserLog : null,
|
|
364
379
|
onDownload: onDownload !== null && onDownload !== void 0 ? onDownload : null,
|
|
365
380
|
output: output !== null && output !== void 0 ? output : null,
|
|
@@ -374,7 +389,7 @@ const renderStill = (options) => {
|
|
|
374
389
|
serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
375
390
|
indent: undefined,
|
|
376
391
|
staticBase: null,
|
|
377
|
-
data: (
|
|
392
|
+
data: (_c = composition.props) !== null && _c !== void 0 ? _c : {},
|
|
378
393
|
}).serializedString,
|
|
379
394
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes !== null && offthreadVideoCacheSizeInBytes !== void 0 ? offthreadVideoCacheSizeInBytes : null,
|
|
380
395
|
binariesDirectory: binariesDirectory !== null && binariesDirectory !== void 0 ? binariesDirectory : null,
|
|
@@ -387,7 +402,7 @@ const renderStill = (options) => {
|
|
|
387
402
|
chromeMode: chromeMode !== null && chromeMode !== void 0 ? chromeMode : 'headless-shell',
|
|
388
403
|
offthreadVideoThreads: offthreadVideoThreads !== null && offthreadVideoThreads !== void 0 ? offthreadVideoThreads : null,
|
|
389
404
|
mediaCacheSizeInBytes: mediaCacheSizeInBytes !== null && mediaCacheSizeInBytes !== void 0 ? mediaCacheSizeInBytes : null,
|
|
390
|
-
licenseKey:
|
|
405
|
+
licenseKey: effectiveLicenseKey,
|
|
391
406
|
onLog: default_on_log_1.defaultOnLog,
|
|
392
407
|
isProduction: isProduction !== null && isProduction !== void 0 ? isProduction : null,
|
|
393
408
|
});
|
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.508",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"execa": "5.1.1",
|
|
25
|
-
"remotion": "4.0.
|
|
26
|
-
"@remotion/streaming": "4.0.
|
|
25
|
+
"remotion": "4.0.508",
|
|
26
|
+
"@remotion/streaming": "4.0.508",
|
|
27
27
|
"source-map": "0.8.0",
|
|
28
28
|
"ws": "8.21.0",
|
|
29
|
-
"@remotion/licensing": "4.0.
|
|
29
|
+
"@remotion/licensing": "4.0.508"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": ">=16.8.0",
|
|
@@ -40,19 +40,19 @@
|
|
|
40
40
|
"react-dom": "19.2.3",
|
|
41
41
|
"@typescript/native-preview": "7.0.0-dev.20260217.1",
|
|
42
42
|
"@types/ws": "8.5.10",
|
|
43
|
-
"@remotion/example-videos": "4.0.
|
|
44
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
43
|
+
"@remotion/example-videos": "4.0.508",
|
|
44
|
+
"@remotion/eslint-config-internal": "4.0.508",
|
|
45
45
|
"eslint": "9.19.0",
|
|
46
46
|
"@types/node": "20.12.14"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
50
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
51
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
52
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
53
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
54
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
55
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
49
|
+
"@remotion/compositor-darwin-arm64": "4.0.508",
|
|
50
|
+
"@remotion/compositor-darwin-x64": "4.0.508",
|
|
51
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.508",
|
|
52
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.508",
|
|
53
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.508",
|
|
54
|
+
"@remotion/compositor-linux-x64-musl": "4.0.508",
|
|
55
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.508"
|
|
56
56
|
},
|
|
57
57
|
"keywords": [
|
|
58
58
|
"remotion",
|