@remotion/renderer 4.0.181 → 4.0.183

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.
@@ -245,19 +245,19 @@ export declare const allOptions: {
245
245
  cliFlag: "gl";
246
246
  docLink: string;
247
247
  name: string;
248
- type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
248
+ type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
249
249
  ssrName: string;
250
250
  description: () => import("react/jsx-runtime").JSX.Element;
251
251
  getValue: ({ commandLine }: {
252
252
  commandLine: Record<string, unknown>;
253
253
  }) => {
254
- value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
254
+ value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
255
255
  source: string;
256
256
  } | {
257
257
  value: null;
258
258
  source: string;
259
259
  };
260
- setConfig: (value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => void;
260
+ setConfig: (value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => void;
261
261
  };
262
262
  enableLambdaInsights: {
263
263
  name: string;
@@ -566,6 +566,21 @@ export declare const allOptions: {
566
566
  ssrName: string;
567
567
  type: boolean;
568
568
  };
569
+ disableGitSourceOption: {
570
+ cliFlag: string;
571
+ description: () => string;
572
+ docLink: string;
573
+ getValue: ({ commandLine }: {
574
+ commandLine: Record<string, unknown>;
575
+ }) => {
576
+ source: string;
577
+ value: boolean;
578
+ };
579
+ name: string;
580
+ setConfig: () => never;
581
+ ssrName: string;
582
+ type: boolean;
583
+ };
569
584
  };
570
585
  export type AvailableOptions = keyof typeof allOptions;
571
586
  export type TypeOfOption<Type> = Type extends AnyRemotionOption<infer X> ? X : never;
@@ -8,6 +8,7 @@ const binaries_directory_1 = require("./binaries-directory");
8
8
  const color_space_1 = require("./color-space");
9
9
  const crf_1 = require("./crf");
10
10
  const delete_after_1 = require("./delete-after");
11
+ const disable_git_source_1 = require("./disable-git-source");
11
12
  const enable_lambda_insights_1 = require("./enable-lambda-insights");
12
13
  const enable_multiprocess_on_linux_1 = require("./enable-multiprocess-on-linux");
13
14
  const encoding_buffer_size_1 = require("./encoding-buffer-size");
@@ -72,4 +73,5 @@ exports.allOptions = {
72
73
  publicDirOption: public_dir_1.publicDirOption,
73
74
  onBrowserDownloadOption: on_browser_download_1.onBrowserDownloadOption,
74
75
  throwIfSiteExistsOption: throw_if_site_exists_1.throwIfSiteExistsOption,
76
+ disableGitSourceOption: disable_git_source_1.disableGitSourceOption,
75
77
  };
@@ -1456,4 +1456,21 @@ export declare const optionsMap: {
1456
1456
  type: boolean;
1457
1457
  };
1458
1458
  };
1459
+ readonly deploySiteCloudRun: {
1460
+ readonly logLevel: {
1461
+ cliFlag: "log";
1462
+ name: string;
1463
+ ssrName: string;
1464
+ description: () => import("react/jsx-runtime").JSX.Element;
1465
+ docLink: string;
1466
+ getValue: ({ commandLine }: {
1467
+ commandLine: Record<string, unknown>;
1468
+ }) => {
1469
+ value: "verbose" | "info" | "warn" | "error";
1470
+ source: string;
1471
+ };
1472
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1473
+ type: "verbose" | "info" | "warn" | "error";
1474
+ };
1475
+ };
1459
1476
  };
@@ -143,4 +143,7 @@ exports.optionsMap = {
143
143
  logLevel: log_level_1.logLevelOption,
144
144
  throwIfSiteExists: throw_if_site_exists_1.throwIfSiteExistsOption,
145
145
  },
146
+ deploySiteCloudRun: {
147
+ logLevel: log_level_1.logLevelOption,
148
+ },
146
149
  };
@@ -1,8 +1,9 @@
1
- /// <reference types="node" />
2
1
  /// <reference types="bun-types" />
3
2
  /// <reference types="node" />
4
3
  /// <reference types="node" />
5
4
  /// <reference types="node" />
5
+ /// <reference types="node" />
6
+ /// <reference types="node" />
6
7
  /// <reference types="bun-types" />
7
8
  /// <reference types="bun-types" />
8
9
  /// <reference types="node" />
@@ -23,8 +23,7 @@ type PrepareServerOptions = {
23
23
  forceIPv4: boolean;
24
24
  };
25
25
  export declare const prepareServer: ({ webpackConfigOrServeUrl, port, remotionRoot, concurrency, logLevel, indent, offthreadVideoCacheSizeInBytes, binariesDirectory, forceIPv4, }: PrepareServerOptions) => Promise<RemotionServer>;
26
- export declare const makeOrReuseServer: (server: RemotionServer | undefined, config: PrepareServerOptions, { onDownload, onError, }: {
27
- onError: (err: Error) => void;
26
+ export declare const makeOrReuseServer: (server: RemotionServer | undefined, config: PrepareServerOptions, { onDownload, }: {
28
27
  onDownload: RenderMediaOnDownload | null;
29
28
  }) => Promise<{
30
29
  server: RemotionServer;
@@ -97,31 +97,23 @@ const prepareServer = async ({ webpackConfigOrServeUrl, port, remotionRoot, conc
97
97
  });
98
98
  };
99
99
  exports.prepareServer = prepareServer;
100
- const makeOrReuseServer = async (server, config, { onDownload, onError, }) => {
100
+ const makeOrReuseServer = async (server, config, { onDownload, }) => {
101
101
  if (server) {
102
102
  const cleanupOnDownload = (0, download_and_map_assets_to_file_1.attachDownloadListenerToEmitter)(server.downloadMap, onDownload);
103
- const cleanupError = server.downloadMap.emitter.addEventListener('error', ({ detail: { error } }) => {
104
- onError(error);
105
- });
106
103
  return {
107
104
  server,
108
105
  cleanupServer: () => {
109
106
  cleanupOnDownload();
110
- cleanupError();
111
107
  return Promise.resolve();
112
108
  },
113
109
  };
114
110
  }
115
111
  const newServer = await (0, exports.prepareServer)(config);
116
112
  const cleanupOnDownloadNew = (0, download_and_map_assets_to_file_1.attachDownloadListenerToEmitter)(newServer.downloadMap, onDownload);
117
- const cleanupErrorNew = newServer.downloadMap.emitter.addEventListener('error', ({ detail: { error } }) => {
118
- onError(error);
119
- });
120
113
  return {
121
114
  server: newServer,
122
115
  cleanupServer: (force) => {
123
116
  cleanupOnDownloadNew();
124
- cleanupErrorNew();
125
117
  return Promise.all([newServer.closeServer(force)]);
126
118
  },
127
119
  };
@@ -461,7 +461,6 @@ const internalRenderFramesRaw = ({ browserExecutable, cancelSignal, chromiumOpti
461
461
  forceIPv4: false,
462
462
  }, {
463
463
  onDownload,
464
- onError,
465
464
  }),
466
465
  browserInstance,
467
466
  ]).then(([{ server: openedServer, cleanupServer }, pInstance]) => {
@@ -515,7 +514,7 @@ const internalRenderFramesRaw = ({ browserExecutable, cancelSignal, chromiumOpti
515
514
  ])
516
515
  .then((res) => {
517
516
  server === null || server === void 0 ? void 0 : server.compositor.executeCommand('CloseAllVideos', {}).then(() => {
518
- logger_1.Log.verbose({ indent, logLevel }, 'Freed memory from compositor');
517
+ logger_1.Log.verbose({ indent, logLevel, tag: 'compositor' }, 'Freed memory from compositor');
519
518
  }).catch((err) => {
520
519
  logger_1.Log.verbose({ indent, logLevel }, 'Could not close compositor', err);
521
520
  });
@@ -283,7 +283,6 @@ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, s
283
283
  forceIPv4: false,
284
284
  }, {
285
285
  onDownload,
286
- onError: (err) => reject(err),
287
286
  });
288
287
  })
289
288
  .then(({ server, cleanupServer }) => {
@@ -232,7 +232,6 @@ const internalRenderStillRaw = (options) => {
232
232
  forceIPv4: false,
233
233
  }, {
234
234
  onDownload: options.onDownload,
235
- onError,
236
235
  })
237
236
  .then(({ server, cleanupServer }) => {
238
237
  cleanup.push(() => cleanupServer(false));
@@ -126,7 +126,6 @@ const internalSelectCompositionRaw = async (options) => {
126
126
  forceIPv4: false,
127
127
  }, {
128
128
  onDownload: () => undefined,
129
- onError,
130
129
  })
131
130
  .then(({ server: { serveUrl, offthreadPort, sourceMap }, cleanupServer }) => {
132
131
  page.setBrowserSourceMapGetter(sourceMap);
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.181",
6
+ "version": "4.0.183",
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,7 +18,7 @@
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.181"
21
+ "remotion": "4.0.183"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=16.8.0",
@@ -31,16 +31,16 @@
31
31
  "react": "18.3.1",
32
32
  "react-dom": "18.3.1",
33
33
  "@types/ws": "8.5.10",
34
- "@remotion/streaming": "4.0.181"
34
+ "@remotion/streaming": "4.0.183"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@remotion/compositor-linux-arm64-musl": "4.0.181",
38
- "@remotion/compositor-darwin-x64": "4.0.181",
39
- "@remotion/compositor-linux-arm64-gnu": "4.0.181",
40
- "@remotion/compositor-darwin-arm64": "4.0.181",
41
- "@remotion/compositor-linux-x64-gnu": "4.0.181",
42
- "@remotion/compositor-linux-x64-musl": "4.0.181",
43
- "@remotion/compositor-win32-x64-msvc": "4.0.181"
37
+ "@remotion/compositor-linux-arm64-gnu": "4.0.183",
38
+ "@remotion/compositor-darwin-x64": "4.0.183",
39
+ "@remotion/compositor-darwin-arm64": "4.0.183",
40
+ "@remotion/compositor-linux-x64-musl": "4.0.183",
41
+ "@remotion/compositor-linux-x64-gnu": "4.0.183",
42
+ "@remotion/compositor-win32-x64-msvc": "4.0.183",
43
+ "@remotion/compositor-linux-arm64-musl": "4.0.183"
44
44
  },
45
45
  "keywords": [
46
46
  "remotion",