@remotion/renderer 4.0.258 → 4.0.259

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.
@@ -70,7 +70,12 @@ const makeBrowserRunner = async ({ executablePath, processArguments, userDataDir
70
70
  env: process.env,
71
71
  stdio,
72
72
  });
73
- const browserWSEndpoint = await waitForWSEndpoint(proc, timeout);
73
+ const browserWSEndpoint = await waitForWSEndpoint({
74
+ browserProcess: proc,
75
+ timeout,
76
+ indent,
77
+ logLevel,
78
+ });
74
79
  const transport = await NodeWebSocketTransport_1.NodeWebSocketTransport.create(browserWSEndpoint);
75
80
  const connection = new Connection_1.Connection(transport);
76
81
  const killProcess = () => {
@@ -216,7 +221,7 @@ const makeBrowserRunner = async ({ executablePath, processArguments, userDataDir
216
221
  };
217
222
  };
218
223
  exports.makeBrowserRunner = makeBrowserRunner;
219
- function waitForWSEndpoint(browserProcess, timeout) {
224
+ function waitForWSEndpoint({ browserProcess, timeout, logLevel, indent, }) {
220
225
  const browserStderr = browserProcess.stderr;
221
226
  (0, assert_1.assert)(browserStderr, '`browserProcess` does not have stderr.');
222
227
  let stderrString = '';
@@ -226,7 +231,8 @@ function waitForWSEndpoint(browserProcess, timeout) {
226
231
  const listeners = [
227
232
  () => browserStderr.removeListener('data', onData),
228
233
  () => browserStderr.removeListener('close', onClose),
229
- (0, util_1.addEventListener)(browserProcess, 'exit', () => {
234
+ (0, util_1.addEventListener)(browserProcess, 'exit', (code, signal) => {
235
+ logger_1.Log.verbose({ indent, logLevel }, 'Browser process exited with code', code, 'signal', signal);
230
236
  return onClose();
231
237
  }),
232
238
  (0, util_1.addEventListener)(browserProcess, 'error', (error) => {
package/dist/client.d.ts CHANGED
@@ -394,7 +394,7 @@ export declare const BrowserSafeApis: {
394
394
  webhookCustomDataOption: {
395
395
  name: string;
396
396
  cliFlag: "webhook-custom-data";
397
- description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
397
+ description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
398
398
  ssrName: "customData";
399
399
  docLink: string;
400
400
  type: Record<string, unknown> | null;
@@ -807,7 +807,7 @@ export declare const BrowserSafeApis: {
807
807
  metadataOption: {
808
808
  name: string;
809
809
  cliFlag: "metadata";
810
- description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
810
+ description: (mode: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
811
811
  docLink: string;
812
812
  type: import("./options/metadata").Metadata;
813
813
  getValue: ({ commandLine }: {
@@ -9,7 +9,7 @@ export declare const hasSpecifiedUnsupportedHardwareQualifySettings: ({ encoding
9
9
  encodingMaxRate: string | null;
10
10
  encodingBufferSize: string | null;
11
11
  crf: unknown;
12
- }) => "encodingMaxRate" | "encodingBufferSize" | "crf" | null;
12
+ }) => "crf" | "encodingBufferSize" | "encodingMaxRate" | 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
@@ -140,7 +140,7 @@ export declare const RenderInternals: {
140
140
  validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
141
141
  DEFAULT_BROWSER: "chrome";
142
142
  validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
143
- DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
143
+ DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
144
144
  validateOpenGlRenderer: (option: unknown) => import("./options/gl").OpenGlRenderer | null;
145
145
  validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
146
146
  DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
@@ -353,8 +353,8 @@ export declare const RenderInternals: {
353
353
  }) => execa.ExecaChildProcess<string>;
354
354
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
355
355
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
356
- DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "webp" | "pdf";
357
- DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
356
+ DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
357
+ DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
358
358
  DEFAULT_JPEG_QUALITY: number;
359
359
  chalk: {
360
360
  enabled: () => boolean;
@@ -409,15 +409,15 @@ export declare const RenderInternals: {
409
409
  Log: {
410
410
  trace: (options: import("./logger").LogOptions & {
411
411
  tag?: string;
412
- }, ...args: Parameters<typeof console.log>) => boolean | void;
412
+ }, message?: any, ...optionalParams: any[]) => boolean | void;
413
413
  verbose: (options: import("./logger").LogOptions & {
414
414
  tag?: string;
415
- }, ...args: Parameters<typeof console.log>) => boolean | void;
416
- info: (options: import("./logger").LogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
417
- warn: (options: import("./logger").LogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
415
+ }, message?: any, ...optionalParams: any[]) => boolean | void;
416
+ info: (options: import("./logger").LogOptions, message?: any, ...optionalParams: any[]) => boolean | void;
417
+ warn: (options: import("./logger").LogOptions, message?: any, ...optionalParams: any[]) => boolean | void;
418
418
  error: (options: import("./logger").LogOptions & {
419
419
  tag?: string;
420
- }, ...args: Parameters<typeof console.log>) => boolean | void;
420
+ }, message?: any, ...optionalParams: any[]) => boolean | void;
421
421
  };
422
422
  INDENT_TOKEN: string;
423
423
  isColorSupported: () => boolean;
package/dist/logger.d.ts CHANGED
@@ -10,10 +10,10 @@ type VerboseLogOptions = LogOptions & {
10
10
  export declare const verboseTag: (str: string) => string;
11
11
  export declare const secondverboseTag: (str: string) => string;
12
12
  export declare const Log: {
13
- trace: (options: VerboseLogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
14
- verbose: (options: VerboseLogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
15
- info: (options: LogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
16
- warn: (options: LogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
17
- error: (options: VerboseLogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
13
+ trace: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => boolean | void;
14
+ verbose: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => boolean | void;
15
+ info: (options: LogOptions, message?: any, ...optionalParams: any[]) => boolean | void;
16
+ warn: (options: LogOptions, message?: any, ...optionalParams: any[]) => boolean | void;
17
+ error: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => boolean | void;
18
18
  };
19
19
  export {};
@@ -1,7 +1,7 @@
1
1
  export declare const validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
2
2
  export type OpenGlRenderer = (typeof validOpenGlRenderers)[number];
3
3
  export declare const DEFAULT_OPENGL_RENDERER: OpenGlRenderer | null;
4
- export declare const getChromiumOpenGlRenderer: () => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
4
+ export declare const getChromiumOpenGlRenderer: () => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
5
5
  export declare const setChromiumOpenGlRenderer: (renderer: OpenGlRenderer) => void;
6
6
  export declare const glOption: {
7
7
  cliFlag: "gl";
@@ -171,7 +171,7 @@ export declare const allOptions: {
171
171
  webhookCustomDataOption: {
172
172
  name: string;
173
173
  cliFlag: "webhook-custom-data";
174
- description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
174
+ description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
175
175
  ssrName: "customData";
176
176
  docLink: string;
177
177
  type: Record<string, unknown> | null;
@@ -584,7 +584,7 @@ export declare const allOptions: {
584
584
  metadataOption: {
585
585
  name: string;
586
586
  cliFlag: "metadata";
587
- description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
587
+ description: (mode: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
588
588
  docLink: string;
589
589
  type: import("./metadata").Metadata;
590
590
  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: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
5
+ description: (mode: "ssr" | "cli") => 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: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
4
+ description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
5
5
  ssrName: "customData";
6
6
  docLink: string;
7
7
  type: Record<string, unknown> | null;
package/dist/repro.d.ts CHANGED
@@ -13,7 +13,7 @@ type ReproWriter = {
13
13
  }) => Promise<void>;
14
14
  };
15
15
  export declare const getReproWriter: () => ReproWriter;
16
- export declare const writeInRepro: (level: string, ...args: Parameters<typeof console.log>) => void;
16
+ export declare const writeInRepro: (level: string, message?: any, ...optionalParams: any[]) => void;
17
17
  export declare const enableRepro: ({ serveUrl, compositionName, serializedInputPropsWithCustomSchema, serializedResolvedPropsWithCustomSchema, }: {
18
18
  serveUrl: string;
19
19
  compositionName: string;
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.258",
6
+ "version": "4.0.259",
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.258",
22
- "@remotion/streaming": "4.0.258"
21
+ "remotion": "4.0.259",
22
+ "@remotion/streaming": "4.0.259"
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.14.0",
36
- "@remotion/example-videos": "4.0.258",
37
- "@remotion/eslint-config-internal": "4.0.258"
36
+ "@remotion/example-videos": "4.0.259",
37
+ "@remotion/eslint-config-internal": "4.0.259"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@remotion/compositor-darwin-arm64": "4.0.258",
41
- "@remotion/compositor-darwin-x64": "4.0.258",
42
- "@remotion/compositor-linux-arm64-musl": "4.0.258",
43
- "@remotion/compositor-linux-arm64-gnu": "4.0.258",
44
- "@remotion/compositor-linux-x64-gnu": "4.0.258",
45
- "@remotion/compositor-linux-x64-musl": "4.0.258",
46
- "@remotion/compositor-win32-x64-msvc": "4.0.258"
40
+ "@remotion/compositor-darwin-arm64": "4.0.259",
41
+ "@remotion/compositor-darwin-x64": "4.0.259",
42
+ "@remotion/compositor-linux-arm64-gnu": "4.0.259",
43
+ "@remotion/compositor-linux-arm64-musl": "4.0.259",
44
+ "@remotion/compositor-win32-x64-msvc": "4.0.259",
45
+ "@remotion/compositor-linux-x64-musl": "4.0.259",
46
+ "@remotion/compositor-linux-x64-gnu": "4.0.259"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",