@remotion/renderer 4.0.512 → 4.0.514

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rspackOption = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  let rspackEnabled = false;
6
+ let configuredRspackEnabled = null;
6
7
  const cliFlag = 'rspack';
7
8
  exports.rspackOption = {
8
9
  name: 'Rspack',
@@ -25,6 +26,12 @@ exports.rspackOption = {
25
26
  },
26
27
  setConfig(value) {
27
28
  rspackEnabled = value;
29
+ configuredRspackEnabled = value;
30
+ },
31
+ getConfigValue: () => configuredRspackEnabled,
32
+ reset: () => {
33
+ rspackEnabled = false;
34
+ configuredRspackEnabled = null;
28
35
  },
29
36
  id: cliFlag,
30
37
  };
@@ -330,9 +330,15 @@ const internalRenderFramesRaw = ({ browserExecutable, cancelSignal, chromiumOpti
330
330
  }),
331
331
  ])
332
332
  .then((res) => {
333
- server === null || server === void 0 ? void 0 : server.compositor.executeCommand('CloseAllVideos', {}).then(() => {
333
+ if (!server || server.compositor.pid === null) {
334
+ return resolve(res);
335
+ }
336
+ server.compositor
337
+ .executeCommand('CloseAllVideos', {})
338
+ .then(() => {
334
339
  logger_1.Log.verbose({ indent, logLevel, tag: 'compositor' }, 'Freed memory from compositor');
335
- }).catch((err) => {
340
+ })
341
+ .catch((err) => {
336
342
  logger_1.Log.verbose({ indent, logLevel }, 'Could not close compositor', err);
337
343
  });
338
344
  return resolve(res);
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.512",
6
+ "version": "4.0.514",
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.512",
26
- "@remotion/streaming": "4.0.512",
25
+ "remotion": "4.0.514",
26
+ "@remotion/streaming": "4.0.514",
27
27
  "source-map": "0.8.0",
28
28
  "ws": "8.21.0",
29
- "@remotion/licensing": "4.0.512"
29
+ "@remotion/licensing": "4.0.514"
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.512",
44
- "@remotion/eslint-config-internal": "4.0.512",
43
+ "@remotion/example-videos": "4.0.514",
44
+ "@remotion/eslint-config-internal": "4.0.514",
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.512",
50
- "@remotion/compositor-darwin-x64": "4.0.512",
51
- "@remotion/compositor-linux-arm64-gnu": "4.0.512",
52
- "@remotion/compositor-linux-arm64-musl": "4.0.512",
53
- "@remotion/compositor-linux-x64-gnu": "4.0.512",
54
- "@remotion/compositor-linux-x64-musl": "4.0.512",
55
- "@remotion/compositor-win32-x64-msvc": "4.0.512"
49
+ "@remotion/compositor-darwin-arm64": "4.0.514",
50
+ "@remotion/compositor-darwin-x64": "4.0.514",
51
+ "@remotion/compositor-linux-arm64-gnu": "4.0.514",
52
+ "@remotion/compositor-linux-arm64-musl": "4.0.514",
53
+ "@remotion/compositor-linux-x64-gnu": "4.0.514",
54
+ "@remotion/compositor-linux-x64-musl": "4.0.514",
55
+ "@remotion/compositor-win32-x64-msvc": "4.0.514"
56
56
  },
57
57
  "keywords": [
58
58
  "remotion",