@remotion/renderer 4.0.8 → 4.0.10
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/index.d.ts +14 -14
- package/dist/logger.d.ts +1 -1
- package/dist/serialize-props.d.ts +6 -0
- package/dist/serialize-props.js +36 -0
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare const RenderInternals: {
|
|
|
44
44
|
downloadMap: import("./assets/download-map").DownloadMap;
|
|
45
45
|
remotionRoot: string;
|
|
46
46
|
concurrency: number;
|
|
47
|
-
logLevel: "
|
|
47
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
48
48
|
indent: boolean;
|
|
49
49
|
}) => Promise<{
|
|
50
50
|
port: number;
|
|
@@ -123,7 +123,7 @@ export declare const RenderInternals: {
|
|
|
123
123
|
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
124
124
|
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
125
125
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
126
|
-
isEqualOrBelowLogLevel: (currentLevel: "
|
|
126
|
+
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
127
127
|
isValidLogLevel: (level: string) => boolean;
|
|
128
128
|
perf: typeof perf;
|
|
129
129
|
convertToPositiveFrameIndex: ({ frame, durationInFrames, }: {
|
|
@@ -352,30 +352,30 @@ export declare const RenderInternals: {
|
|
|
352
352
|
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
353
353
|
verboseAdvanced: (options: {
|
|
354
354
|
indent: boolean;
|
|
355
|
-
logLevel: "
|
|
355
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
356
356
|
} & {
|
|
357
357
|
tag?: string | undefined;
|
|
358
358
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
359
359
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
360
360
|
infoAdvanced: (options: {
|
|
361
361
|
indent: boolean;
|
|
362
|
-
logLevel: "
|
|
362
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
363
363
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
364
364
|
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
365
365
|
warnAdvanced: (options: {
|
|
366
366
|
indent: boolean;
|
|
367
|
-
logLevel: "
|
|
367
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
368
368
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
369
369
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
370
370
|
errorAdvanced: (options: {
|
|
371
371
|
indent: boolean;
|
|
372
|
-
logLevel: "
|
|
372
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
373
373
|
} & {
|
|
374
374
|
tag?: string | undefined;
|
|
375
375
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
376
376
|
};
|
|
377
|
-
getLogLevel: () => "
|
|
378
|
-
setLogLevel: (newLogLevel: "
|
|
377
|
+
getLogLevel: () => "verbose" | "info" | "warn" | "error";
|
|
378
|
+
setLogLevel: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
|
|
379
379
|
INDENT_TOKEN: string;
|
|
380
380
|
isColorSupported: () => boolean;
|
|
381
381
|
HeadlessBrowser: typeof HeadlessBrowser;
|
|
@@ -384,7 +384,7 @@ export declare const RenderInternals: {
|
|
|
384
384
|
port: number | null;
|
|
385
385
|
remotionRoot: string;
|
|
386
386
|
concurrency: number;
|
|
387
|
-
logLevel: "
|
|
387
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
388
388
|
indent: boolean;
|
|
389
389
|
}) => Promise<import("./prepare-server").RemotionServer>;
|
|
390
390
|
makeOrReuseServer: (server: import("./prepare-server").RemotionServer | undefined, config: {
|
|
@@ -392,7 +392,7 @@ export declare const RenderInternals: {
|
|
|
392
392
|
port: number | null;
|
|
393
393
|
remotionRoot: string;
|
|
394
394
|
concurrency: number;
|
|
395
|
-
logLevel: "
|
|
395
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
396
396
|
indent: boolean;
|
|
397
397
|
}, { onDownload, onError, }: {
|
|
398
398
|
onError: (err: Error) => void;
|
|
@@ -421,7 +421,7 @@ export declare const RenderInternals: {
|
|
|
421
421
|
cancelSignal: import("./make-cancel-signal").CancelSignal | null;
|
|
422
422
|
indent: boolean;
|
|
423
423
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
424
|
-
logLevel: "
|
|
424
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
425
425
|
serveUrl: string;
|
|
426
426
|
port: number | null;
|
|
427
427
|
}) => Promise<{
|
|
@@ -434,7 +434,7 @@ export declare const RenderInternals: {
|
|
|
434
434
|
viewport: import("./browser/PuppeteerViewport").Viewport | null;
|
|
435
435
|
indent: boolean;
|
|
436
436
|
browser: import("./browser").Browser;
|
|
437
|
-
logLevel: "
|
|
437
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
438
438
|
}) => Promise<HeadlessBrowser>;
|
|
439
439
|
internalSelectComposition: (options: {
|
|
440
440
|
serializedInputPropsWithCustomSchema: string;
|
|
@@ -447,7 +447,7 @@ export declare const RenderInternals: {
|
|
|
447
447
|
port: number | null;
|
|
448
448
|
indent: boolean;
|
|
449
449
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
450
|
-
logLevel: "
|
|
450
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
451
451
|
serveUrl: string;
|
|
452
452
|
id: string;
|
|
453
453
|
}) => Promise<{
|
|
@@ -465,7 +465,7 @@ export declare const RenderInternals: {
|
|
|
465
465
|
port: number | null;
|
|
466
466
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
467
467
|
indent: boolean;
|
|
468
|
-
logLevel: "
|
|
468
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
469
469
|
serveUrlOrWebpackUrl: string;
|
|
470
470
|
}) => Promise<import("remotion").VideoConfig[]>;
|
|
471
471
|
internalRenderFrames: ({ browserExecutable, cancelSignal, chromiumOptions, composition, concurrency, envVariables, everyNthFrame, frameRange, imageFormat, indent, jpegQuality, muted, onBrowserLog, onDownload, onFrameBuffer, onFrameUpdate, onStart, outputDir, port, puppeteerInstance, scale, server, timeoutInMilliseconds, logLevel, webpackBundleOrServeUrl, serializedInputPropsWithCustomSchema, serializedResolvedPropsWithCustomSchema, }: import("./render-frames").InternalRenderFramesOptions) => Promise<import("./types").RenderFramesOutput>;
|
package/dist/logger.d.ts
CHANGED
|
@@ -19,6 +19,6 @@ export declare const Log: {
|
|
|
19
19
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
20
20
|
errorAdvanced: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => void;
|
|
21
21
|
};
|
|
22
|
-
export declare const getLogLevel: () => "
|
|
22
|
+
export declare const getLogLevel: () => "verbose" | "info" | "warn" | "error";
|
|
23
23
|
export declare const setLogLevel: (newLogLevel: LogLevel) => void;
|
|
24
24
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SerializedJSONWithCustomFields } from 'remotion';
|
|
2
|
+
export declare const serializeJSONWithDate: ({ data, indent, staticBase, }: {
|
|
3
|
+
data: Record<string, unknown>;
|
|
4
|
+
indent: number | undefined;
|
|
5
|
+
staticBase: string | null;
|
|
6
|
+
}) => SerializedJSONWithCustomFields;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serializeJSONWithDate = void 0;
|
|
4
|
+
// Keep in sync with /packages/core/src/input-props-serialization.ts
|
|
5
|
+
const DATE_TOKEN = 'remotion-date:';
|
|
6
|
+
const FILE_TOKEN = 'remotion-file:';
|
|
7
|
+
const serializeJSONWithDate = ({ data, indent, staticBase, }) => {
|
|
8
|
+
let customDateUsed = false;
|
|
9
|
+
let customFileUsed = false;
|
|
10
|
+
let mapUsed = false;
|
|
11
|
+
let setUsed = false;
|
|
12
|
+
const serializedString = JSON.stringify(data, function (key, value) {
|
|
13
|
+
const item = this[key];
|
|
14
|
+
if (item instanceof Date) {
|
|
15
|
+
customDateUsed = true;
|
|
16
|
+
return `${DATE_TOKEN}${item.toISOString()}`;
|
|
17
|
+
}
|
|
18
|
+
if (item instanceof Map) {
|
|
19
|
+
mapUsed = true;
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
if (item instanceof Set) {
|
|
23
|
+
setUsed = true;
|
|
24
|
+
return value;
|
|
25
|
+
}
|
|
26
|
+
if (typeof item === 'string' &&
|
|
27
|
+
staticBase !== null &&
|
|
28
|
+
item.startsWith(staticBase)) {
|
|
29
|
+
customFileUsed = true;
|
|
30
|
+
return `${FILE_TOKEN}${item.replace(staticBase + '/', '')}`;
|
|
31
|
+
}
|
|
32
|
+
return value;
|
|
33
|
+
}, indent);
|
|
34
|
+
return { serializedString, customDateUsed, customFileUsed, mapUsed, setUsed };
|
|
35
|
+
};
|
|
36
|
+
exports.serializeJSONWithDate = serializeJSONWithDate;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.10",
|
|
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.10"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"zod": "^3.21.4"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
46
|
-
"@remotion/compositor-
|
|
47
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
48
|
-
"@remotion/compositor-linux-
|
|
49
|
-
"@remotion/compositor-linux-x64-
|
|
50
|
-
"@remotion/compositor-
|
|
51
|
-
"@remotion/compositor-
|
|
45
|
+
"@remotion/compositor-darwin-arm64": "4.0.10",
|
|
46
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.10",
|
|
47
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.10",
|
|
48
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.10",
|
|
49
|
+
"@remotion/compositor-linux-x64-musl": "4.0.10",
|
|
50
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.10",
|
|
51
|
+
"@remotion/compositor-darwin-x64": "4.0.10"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
54
54
|
"remotion",
|