@remotion/renderer 4.0.288 → 4.0.289

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.
@@ -1,44 +1,12 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
36
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
4
  };
38
5
  Object.defineProperty(exports, "__esModule", { value: true });
39
6
  exports.cleanDownloadMap = exports.makeDownloadMap = void 0;
40
- const node_fs_1 = __importStar(require("node:fs"));
7
+ const node_fs_1 = require("node:fs");
41
8
  const node_path_1 = __importDefault(require("node:path"));
9
+ const version_1 = require("remotion/version");
42
10
  const delete_directory_1 = require("../delete-directory");
43
11
  const offthread_video_server_1 = require("../offthread-video-server");
44
12
  const tmp_dir_1 = require("../tmp-dir");
@@ -47,19 +15,8 @@ const makeAndReturn = (dir, name) => {
47
15
  (0, node_fs_1.mkdirSync)(p);
48
16
  return p;
49
17
  };
50
- const dontInlineThis = 'package.json';
51
- let packageJsonPath = null;
52
- try {
53
- packageJsonPath = require.resolve('../../' + dontInlineThis);
54
- }
55
- catch (_a) { }
56
- const packageJson = packageJsonPath && node_fs_1.default.existsSync(packageJsonPath)
57
- ? JSON.parse(node_fs_1.default.readFileSync(packageJsonPath, 'utf-8'))
58
- : null;
59
18
  const makeDownloadMap = () => {
60
- const dir = (0, tmp_dir_1.tmpDir)(packageJson
61
- ? `remotion-v${packageJson.version.replace(/\./g, '-')}-assets`
62
- : 'remotion-assets');
19
+ const dir = (0, tmp_dir_1.tmpDir)(`remotion-v${version_1.VERSION}-assets`);
63
20
  let prevented = false;
64
21
  return {
65
22
  isDownloadingMap: {},
@@ -14501,8 +14501,9 @@ var attachDownloadListenerToEmitter = (downloadMap, onDownload) => {
14501
14501
  };
14502
14502
 
14503
14503
  // src/assets/download-map.ts
14504
- import fs12, { mkdirSync as mkdirSync2 } from "node:fs";
14504
+ import { mkdirSync as mkdirSync2 } from "node:fs";
14505
14505
  import path14 from "node:path";
14506
+ import { VERSION as VERSION2 } from "remotion/version";
14506
14507
 
14507
14508
  // src/offthread-video-server.ts
14508
14509
  import { URLSearchParams } from "node:url";
@@ -14931,14 +14932,8 @@ var makeAndReturn = (dir, name) => {
14931
14932
  mkdirSync2(p);
14932
14933
  return p;
14933
14934
  };
14934
- var dontInlineThis = "package.json";
14935
- var packageJsonPath = null;
14936
- try {
14937
- packageJsonPath = __require.resolve("../../" + dontInlineThis);
14938
- } catch {}
14939
- var packageJson = packageJsonPath && fs12.existsSync(packageJsonPath) ? JSON.parse(fs12.readFileSync(packageJsonPath, "utf-8")) : null;
14940
14935
  var makeDownloadMap = () => {
14941
- const dir = tmpDir(packageJson ? `remotion-v${packageJson.version.replace(/\./g, "-")}-assets` : "remotion-assets");
14936
+ const dir = tmpDir(`remotion-v${VERSION2}-assets`);
14942
14937
  let prevented = false;
14943
14938
  return {
14944
14939
  isDownloadingMap: {},
@@ -15990,7 +15985,7 @@ var seekToFrame = async ({
15990
15985
  };
15991
15986
 
15992
15987
  // src/set-props-and-env.ts
15993
- import { VERSION as VERSION2 } from "remotion/version";
15988
+ import { VERSION as VERSION3 } from "remotion/version";
15994
15989
 
15995
15990
  // src/goto-page-or-throw.ts
15996
15991
  var gotoPageOrThrow = async (page, urlToVisit, actualTimeout) => {
@@ -16179,7 +16174,7 @@ var innerSetPropsAndEnv = async ({
16179
16174
  throw new Error([
16180
16175
  `Incompatible site: When visiting ${urlToVisit}, a bundle was found, but one that is not compatible with this version of Remotion. Found version: ${siteVersion} - Required version: ${requiredVersion}. To resolve this error:`,
16181
16176
  "When using server-side rendering:",
16182
- ` ▸ Use 'bundle()' with '@remotion/bundler' of version ${VERSION2} to create a compatible bundle.`,
16177
+ ` ▸ Use 'bundle()' with '@remotion/bundler' of version ${VERSION3} to create a compatible bundle.`,
16183
16178
  "When using the Remotion Lambda:",
16184
16179
  " ▸ Use `npx remotion lambda sites create` to redeploy the site with the latest version.",
16185
16180
  " ℹ Use --site-name with the same name as before to overwrite your site.",
@@ -16187,13 +16182,13 @@ var innerSetPropsAndEnv = async ({
16187
16182
  ].join(`
16188
16183
  `));
16189
16184
  }
16190
- if (remotionVersion !== VERSION2 && true) {
16185
+ if (remotionVersion !== VERSION3 && true) {
16191
16186
  if (remotionVersion) {
16192
16187
  Log.warn({
16193
16188
  indent,
16194
16189
  logLevel
16195
16190
  }, [
16196
- `The site was bundled with version ${remotionVersion} of @remotion/bundler, while @remotion/renderer is on version ${VERSION2}. You may not have the newest bugfixes and features.`,
16191
+ `The site was bundled with version ${remotionVersion} of @remotion/bundler, while @remotion/renderer is on version ${VERSION3}. You may not have the newest bugfixes and features.`,
16197
16192
  `To resolve this warning:`,
16198
16193
  "▸ Use `npx remotion lambda sites create` to redeploy the site with the latest version.",
16199
16194
  " ℹ Use --site-name with the same name as before to overwrite your site.",
@@ -16204,7 +16199,7 @@ var innerSetPropsAndEnv = async ({
16204
16199
  Log.warn({
16205
16200
  indent,
16206
16201
  logLevel
16207
- }, `The site was bundled with an old version of Remotion, while @remotion/renderer is on version ${VERSION2}. You may not have the newest bugfixes and features. Re-bundle the site to fix this issue.`);
16202
+ }, `The site was bundled with an old version of Remotion, while @remotion/renderer is on version ${VERSION3}. You may not have the newest bugfixes and features. Re-bundle the site to fix this issue.`);
16208
16203
  }
16209
16204
  }
16210
16205
  };
@@ -16903,7 +16898,7 @@ var validateSelectedPixelFormatAndCodecCombination = (pixelFormat, codec) => {
16903
16898
  };
16904
16899
 
16905
16900
  // src/render-frames.ts
16906
- import fs14 from "node:fs";
16901
+ import fs13 from "node:fs";
16907
16902
  import path20 from "node:path";
16908
16903
  import { NoReactInternals as NoReactInternals12 } from "remotion/no-react";
16909
16904
 
@@ -16957,7 +16952,7 @@ var cycleBrowserTabs = ({
16957
16952
  // src/combine-audio.ts
16958
16953
  import { rmSync as rmSync2, writeFileSync } from "fs";
16959
16954
  import { join as join3 } from "path";
16960
- import { VERSION as VERSION3 } from "remotion/version";
16955
+ import { VERSION as VERSION4 } from "remotion/version";
16961
16956
 
16962
16957
  // src/options/separate-audio.tsx
16963
16958
  var DEFAULT = null;
@@ -17221,7 +17216,7 @@ var encodeAudio = async ({
17221
17216
  audioBitrate ? audioBitrate : "320k",
17222
17217
  "-vn",
17223
17218
  addRemotionMetadata ? `-metadata` : null,
17224
- addRemotionMetadata ? `comment=Made with Remotion ${VERSION3}` : null,
17219
+ addRemotionMetadata ? `comment=Made with Remotion ${VERSION4}` : null,
17225
17220
  "-y",
17226
17221
  output
17227
17222
  ];
@@ -17297,7 +17292,7 @@ var combineAudioSeamlessly = async ({
17297
17292
  "copy",
17298
17293
  "-vn",
17299
17294
  addRemotionMetadata ? `-metadata` : null,
17300
- addRemotionMetadata ? `comment=Made with Remotion ${VERSION3}` : null,
17295
+ addRemotionMetadata ? `comment=Made with Remotion ${VERSION4}` : null,
17301
17296
  "-y",
17302
17297
  output
17303
17298
  ];
@@ -17761,7 +17756,7 @@ var collectAssets = async ({
17761
17756
  import * as assert2 from "node:assert";
17762
17757
 
17763
17758
  // src/screenshot-task.ts
17764
- import fs13 from "node:fs";
17759
+ import fs12 from "node:fs";
17765
17760
  var screenshotTask = async ({
17766
17761
  format,
17767
17762
  height,
@@ -17824,7 +17819,7 @@ var screenshotTask = async ({
17824
17819
  const saveMarker = startPerfMeasure("save");
17825
17820
  const buffer = Buffer.from(result.data, "base64");
17826
17821
  if (path19)
17827
- await fs13.promises.writeFile(path19, buffer);
17822
+ await fs12.promises.writeFile(path19, buffer);
17828
17823
  stopPerfMeasure(saveMarker);
17829
17824
  return buffer;
17830
17825
  } catch (err) {
@@ -18477,8 +18472,8 @@ var innerRenderFrames = async ({
18477
18472
  binariesDirectory
18478
18473
  }) => {
18479
18474
  if (outputDir) {
18480
- if (!fs14.existsSync(outputDir)) {
18481
- fs14.mkdirSync(outputDir, {
18475
+ if (!fs13.existsSync(outputDir)) {
18476
+ fs13.mkdirSync(outputDir, {
18482
18477
  recursive: true
18483
18478
  });
18484
18479
  }
@@ -18886,7 +18881,7 @@ var renderFrames = (options) => {
18886
18881
  };
18887
18882
 
18888
18883
  // src/render-media.ts
18889
- import fs16 from "node:fs";
18884
+ import fs15 from "node:fs";
18890
18885
  import os6 from "node:os";
18891
18886
  import path25 from "node:path";
18892
18887
  import { NoReactInternals as NoReactInternals14 } from "remotion/no-react";
@@ -19774,7 +19769,7 @@ var createFfmpegMergeFilter = ({
19774
19769
  };
19775
19770
 
19776
19771
  // src/ffmpeg-filter-file.ts
19777
- import fs15, { existsSync as existsSync5 } from "node:fs";
19772
+ import fs14, { existsSync as existsSync5 } from "node:fs";
19778
19773
  import path21 from "node:path";
19779
19774
  var makeFfmpegFilterFile = (complexFilter, downloadMap) => {
19780
19775
  return makeFfmpegFilterFileStr(complexFilter.filter, downloadMap);
@@ -19783,13 +19778,13 @@ var makeFfmpegFilterFileStr = async (complexFilter, downloadMap) => {
19783
19778
  const random2 = Math.random().toString().replace(".", "");
19784
19779
  const filterFile = path21.join(downloadMap.complexFilter, "complex-filter-" + random2 + ".txt");
19785
19780
  if (!existsSync5(downloadMap.complexFilter)) {
19786
- fs15.mkdirSync(downloadMap.complexFilter, { recursive: true });
19781
+ fs14.mkdirSync(downloadMap.complexFilter, { recursive: true });
19787
19782
  }
19788
- await fs15.promises.writeFile(filterFile, complexFilter);
19783
+ await fs14.promises.writeFile(filterFile, complexFilter);
19789
19784
  return {
19790
19785
  file: filterFile,
19791
19786
  cleanup: () => {
19792
- fs15.unlinkSync(filterFile);
19787
+ fs14.unlinkSync(filterFile);
19793
19788
  }
19794
19789
  };
19795
19790
  };
@@ -20401,9 +20396,9 @@ var createAudio = async ({
20401
20396
  };
20402
20397
 
20403
20398
  // src/make-metadata-args.ts
20404
- import { VERSION as VERSION4 } from "remotion/version";
20399
+ import { VERSION as VERSION5 } from "remotion/version";
20405
20400
  var makeMetadataArgs = (metadata) => {
20406
- const defaultComment = `Made with Remotion ${VERSION4}`;
20401
+ const defaultComment = `Made with Remotion ${VERSION5}`;
20407
20402
  const newMetadata = {
20408
20403
  comment: defaultComment
20409
20404
  };
@@ -21080,7 +21075,7 @@ var internalRenderMediaRaw = ({
21080
21075
  }
21081
21076
  const imageFormat = isAudioCodec(codec) ? "none" : provisionalImageFormat;
21082
21077
  validateSelectedPixelFormatAndImageFormatCombination(pixelFormat, imageFormat);
21083
- const workingDir = fs16.mkdtempSync(path25.join(os6.tmpdir(), "react-motion-render"));
21078
+ const workingDir = fs15.mkdtempSync(path25.join(os6.tmpdir(), "react-motion-render"));
21084
21079
  const preEncodedFileLocation = parallelEncoding ? path25.join(workingDir, "pre-encode." + getFileExtensionFromCodec(codec, audioCodec)) : null;
21085
21080
  if (onCtrlCExit && workingDir) {
21086
21081
  onCtrlCExit(`Delete ${workingDir}`, () => deleteDirectory(workingDir));
@@ -21365,10 +21360,10 @@ var internalRenderMediaRaw = ({
21365
21360
  }
21366
21361
  reject(err);
21367
21362
  }).finally(() => {
21368
- if (preEncodedFileLocation !== null && fs16.existsSync(preEncodedFileLocation)) {
21363
+ if (preEncodedFileLocation !== null && fs15.existsSync(preEncodedFileLocation)) {
21369
21364
  deleteDirectory(path25.dirname(preEncodedFileLocation));
21370
21365
  }
21371
- if (workingDir && fs16.existsSync(workingDir)) {
21366
+ if (workingDir && fs15.existsSync(workingDir)) {
21372
21367
  deleteDirectory(workingDir);
21373
21368
  }
21374
21369
  cleanupServerFn?.(false).catch((err) => {
@@ -21526,7 +21521,7 @@ var renderMedia = ({
21526
21521
  };
21527
21522
 
21528
21523
  // src/render-still.ts
21529
- import fs17, { statSync as statSync2 } from "node:fs";
21524
+ import fs16, { statSync as statSync2 } from "node:fs";
21530
21525
  import path26 from "node:path";
21531
21526
  import { NoReactInternals as NoReactInternals15 } from "remotion/no-react";
21532
21527
  var innerRenderStill = async ({
@@ -21578,7 +21573,7 @@ var innerRenderStill = async ({
21578
21573
  output = typeof output === "string" ? path26.resolve(process.cwd(), output) : null;
21579
21574
  validateJpegQuality(jpegQuality);
21580
21575
  if (output) {
21581
- if (fs17.existsSync(output)) {
21576
+ if (fs16.existsSync(output)) {
21582
21577
  if (!overwrite) {
21583
21578
  throw new Error(`Cannot render still - "overwrite" option was set to false, but the output destination ${output} already exists.`);
21584
21579
  }
@@ -22177,7 +22172,7 @@ var canConcatVideoSeamlessly = (codec) => {
22177
22172
  // src/combine-video-streams.ts
22178
22173
  import { rmSync as rmSync4, writeFileSync as writeFileSync2 } from "fs";
22179
22174
  import { join as join4 } from "path";
22180
- import { VERSION as VERSION5 } from "remotion/version";
22175
+ import { VERSION as VERSION6 } from "remotion/version";
22181
22176
  var combineVideoStreams = async ({
22182
22177
  fps,
22183
22178
  codec,
@@ -22217,7 +22212,7 @@ var combineVideoStreams = async ({
22217
22212
  codec === "h265" ? "-tag:v" : null,
22218
22213
  codec === "h265" ? "hvc1" : null,
22219
22214
  addRemotionMetadata ? `-metadata` : null,
22220
- addRemotionMetadata ? `comment=Made with Remotion ${VERSION5}` : null,
22215
+ addRemotionMetadata ? `comment=Made with Remotion ${VERSION6}` : null,
22221
22216
  "-y",
22222
22217
  output
22223
22218
  ].filter(truthy);
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.288",
6
+ "version": "4.0.289",
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.288",
22
- "@remotion/streaming": "4.0.288"
21
+ "remotion": "4.0.289",
22
+ "@remotion/streaming": "4.0.289"
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.19.0",
36
- "@remotion/example-videos": "4.0.288",
37
- "@remotion/eslint-config-internal": "4.0.288"
36
+ "@remotion/example-videos": "4.0.289",
37
+ "@remotion/eslint-config-internal": "4.0.289"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@remotion/compositor-darwin-arm64": "4.0.288",
41
- "@remotion/compositor-linux-arm64-gnu": "4.0.288",
42
- "@remotion/compositor-linux-arm64-musl": "4.0.288",
43
- "@remotion/compositor-linux-x64-gnu": "4.0.288",
44
- "@remotion/compositor-linux-x64-musl": "4.0.288",
45
- "@remotion/compositor-win32-x64-msvc": "4.0.288",
46
- "@remotion/compositor-darwin-x64": "4.0.288"
40
+ "@remotion/compositor-darwin-arm64": "4.0.289",
41
+ "@remotion/compositor-linux-arm64-musl": "4.0.289",
42
+ "@remotion/compositor-linux-x64-gnu": "4.0.289",
43
+ "@remotion/compositor-darwin-x64": "4.0.289",
44
+ "@remotion/compositor-linux-x64-musl": "4.0.289",
45
+ "@remotion/compositor-win32-x64-msvc": "4.0.289",
46
+ "@remotion/compositor-linux-arm64-gnu": "4.0.289"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",
package/happydom.ts DELETED
@@ -1,6 +0,0 @@
1
- import {GlobalRegistrator} from '@happy-dom/global-registrator';
2
-
3
- GlobalRegistrator.register();
4
- window.origin = 'http://localhost:3000';
5
- // @ts-expect-error
6
- window.remotion_staticBase = '/static-abcdef';