@remotion/bundler 4.0.423 → 4.0.424

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/bundle.d.ts CHANGED
@@ -21,8 +21,8 @@ export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onP
21
21
  bufferStateDelayInMilliseconds: number | null;
22
22
  experimentalClientSideRenderingEnabled: boolean;
23
23
  maxTimelineTracks: number | null;
24
- onProgress?: (progress: number) => void;
25
- options?: LegacyBundleOptions;
24
+ onProgress?: ((progress: number) => void) | undefined;
25
+ options?: Partial<MandatoryLegacyBundleOptions> | undefined;
26
26
  }) => Promise<[string, webpack.Configuration]>;
27
27
  type NewBundleOptions = {
28
28
  entryPoint: string;
package/dist/bundle.js CHANGED
@@ -138,14 +138,15 @@ const validateEntryPoint = async (entryPoint) => {
138
138
  }
139
139
  };
140
140
  const internalBundle = async (actualArgs) => {
141
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
141
+ var _a;
142
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k;
142
143
  const entryPoint = node_path_1.default.resolve(process.cwd(), actualArgs.entryPoint);
143
- const resolvedRemotionRoot = (_b = (_a = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.rootDir) !== null && _a !== void 0 ? _a : findClosestPackageJsonFolder(entryPoint)) !== null && _b !== void 0 ? _b : process.cwd();
144
+ const resolvedRemotionRoot = (_c = (_b = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.rootDir) !== null && _b !== void 0 ? _b : findClosestPackageJsonFolder(entryPoint)) !== null && _c !== void 0 ? _c : process.cwd();
144
145
  if (!actualArgs.ignoreRegisterRootWarning) {
145
146
  await validateEntryPoint(entryPoint);
146
147
  }
147
- const outDir = await prepareOutDir((_c = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.outDir) !== null && _c !== void 0 ? _c : null);
148
- (_d = actualArgs.onDirectoryCreated) === null || _d === void 0 ? void 0 : _d.call(actualArgs, outDir);
148
+ const outDir = await prepareOutDir((_d = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.outDir) !== null && _d !== void 0 ? _d : null);
149
+ (_a = actualArgs.onDirectoryCreated) === null || _a === void 0 ? void 0 : _a.call(actualArgs, outDir);
149
150
  // The config might use an override which might use
150
151
  // `process.cwd()`. The context should always be the Remotion root.
151
152
  // This is not supported in worker threads (used for tests)
@@ -31,11 +31,10 @@ THE SOFTWARE.
31
31
  */
32
32
  const PLUGIN_NAME = 'CaseSensitive';
33
33
  class CaseSensitivePathsPlugin {
34
- constructor() {
35
- this.context = '';
36
- this.cacheMap = new Map();
37
- this.deferrerMap = new Map();
38
- }
34
+ fs;
35
+ context = '';
36
+ cacheMap = new Map();
37
+ deferrerMap = new Map();
39
38
  /**
40
39
  * Check if resource need to be checked
41
40
  */
@@ -1,5 +1,5 @@
1
1
  import fs from 'node:fs';
2
- export declare function copyDir({ src, dest, onSymlinkDetected, onProgress, copiedBytes, lastReportedProgress, }: {
2
+ export declare function copyDir({ src, dest, onSymlinkDetected, onProgress, copiedBytes, lastReportedProgress }: {
3
3
  src: string;
4
4
  dest: string;
5
5
  onSymlinkDetected: (entry: fs.Dirent, dir: string) => void;
@@ -12,7 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  // This function gets unwrapped into global scope, which is why we don't invert
13
13
  // if-blocks. Also, you cannot use `return`.
14
14
  function RefreshModuleRuntime() {
15
- var _a, _b;
15
+ var _a;
16
+ var _b;
16
17
  // Legacy CSS implementations will `eval` browser code in a Node.js context
17
18
  // to extract CSS. For backwards compatibility, we need to check we're in a
18
19
  // browser context before continuing.
@@ -1,15 +1,15 @@
1
1
  import type { GitSource, PackageManager, RenderDefaults } from '@remotion/studio-shared';
2
- import type { LogLevel, StaticFile } from 'remotion';
2
+ import type { StaticFile } from 'remotion';
3
3
  export declare const indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, logLevel, mode, }: {
4
4
  staticHash: string;
5
5
  publicPath: string;
6
6
  editorName: string | null;
7
7
  inputProps: object | null;
8
- envVariables?: Record<string, string>;
8
+ envVariables?: Record<string, string> | undefined;
9
9
  remotionRoot: string;
10
10
  studioServerCommand: string | null;
11
- renderQueue: unknown | null;
12
- completedClientRenders?: unknown | null;
11
+ renderQueue: unknown;
12
+ completedClientRenders?: unknown;
13
13
  numberOfAudioTags: number;
14
14
  audioLatencyHint: AudioContextLatencyCategory;
15
15
  publicFiles: StaticFile[];
@@ -20,7 +20,7 @@ export declare const indexHtml: ({ publicPath, editorName, inputProps, envVariab
20
20
  gitSource: GitSource | null;
21
21
  projectName: string;
22
22
  installedDependencies: string[] | null;
23
- packageManager: PackageManager | "unknown";
24
- logLevel: LogLevel;
25
- mode: "dev" | "bundle";
23
+ packageManager: "unknown" | PackageManager;
24
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
25
+ mode: "bundle" | "dev";
26
26
  }) => string;
package/dist/index.d.ts CHANGED
@@ -8,8 +8,8 @@ export declare const BundlerInternals: {
8
8
  outDir: string | null;
9
9
  environment: "development" | "production";
10
10
  webpackOverride: import("./webpack-config").WebpackOverrideFn;
11
- onProgress?: (f: number) => void;
12
- enableCaching?: boolean;
11
+ onProgress?: ((f: number) => void) | undefined;
12
+ enableCaching?: boolean | undefined;
13
13
  maxTimelineTracks: number | null;
14
14
  keyboardShortcutsEnabled: boolean;
15
15
  bufferStateDelayInMilliseconds: number | null;
@@ -17,17 +17,17 @@ export declare const BundlerInternals: {
17
17
  poll: number | null;
18
18
  askAIEnabled: boolean;
19
19
  experimentalClientSideRenderingEnabled: boolean;
20
- }) => Promise<[string, import("./webpack-config").WebpackConfiguration]>;
20
+ }) => Promise<[string, webpack.Configuration]>;
21
21
  indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, logLevel, mode, }: {
22
22
  staticHash: string;
23
23
  publicPath: string;
24
24
  editorName: string | null;
25
25
  inputProps: object | null;
26
- envVariables?: Record<string, string>;
26
+ envVariables?: Record<string, string> | undefined;
27
27
  remotionRoot: string;
28
28
  studioServerCommand: string | null;
29
- renderQueue: unknown | null;
30
- completedClientRenders?: unknown | null;
29
+ renderQueue: unknown;
30
+ completedClientRenders?: unknown;
31
31
  numberOfAudioTags: number;
32
32
  audioLatencyHint: AudioContextLatencyCategory;
33
33
  publicFiles: import("remotion").StaticFile[];
@@ -38,11 +38,11 @@ export declare const BundlerInternals: {
38
38
  gitSource: import("@remotion/studio-shared").GitSource | null;
39
39
  projectName: string;
40
40
  installedDependencies: string[] | null;
41
- packageManager: import("@remotion/studio-shared").PackageManager | "unknown";
42
- logLevel: import("remotion").LogLevel;
43
- mode: "dev" | "bundle";
41
+ packageManager: "unknown" | import("@remotion/studio-shared").PackageManager;
42
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
43
+ mode: "bundle" | "dev";
44
44
  }) => string;
45
- cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "exists" | "other-exists" | "does-not-exist";
45
+ cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "does-not-exist" | "exists" | "other-exists";
46
46
  clearCache: (remotionRoot: string, env: "development" | "production") => Promise<void>;
47
47
  getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }: {
48
48
  outDir: string;
@@ -51,13 +51,13 @@ export declare const BundlerInternals: {
51
51
  bufferStateDelayInMilliseconds: number | null;
52
52
  experimentalClientSideRenderingEnabled: boolean;
53
53
  maxTimelineTracks: number | null;
54
- onProgress?: (progress: number) => void;
55
- options?: import("./bundle").LegacyBundleOptions;
54
+ onProgress?: ((progress: number) => void) | undefined;
55
+ options?: Partial<import("./bundle").MandatoryLegacyBundleOptions> | undefined;
56
56
  }) => Promise<[string, webpack.Configuration]>;
57
57
  readRecursively: ({ folder, output, startPath, staticHash, limit, }: {
58
58
  folder: string;
59
59
  startPath: string;
60
- output?: import("remotion").StaticFile[];
60
+ output?: import("remotion").StaticFile[] | undefined;
61
61
  staticHash: string;
62
62
  limit: number;
63
63
  }) => import("remotion").StaticFile[];
package/dist/index.js CHANGED
@@ -20,5 +20,5 @@ exports.BundlerInternals = {
20
20
  findClosestFolderWithItem: bundle_1.findClosestFolderWithItem,
21
21
  internalBundle: bundle_1.internalBundle,
22
22
  };
23
- var bundle_2 = require("./bundle");
23
+ const bundle_2 = require("./bundle");
24
24
  Object.defineProperty(exports, "bundle", { enumerable: true, get: function () { return bundle_2.bundle; } });
@@ -2,7 +2,7 @@ import type { StaticFile } from 'remotion';
2
2
  export declare const readRecursively: ({ folder, output, startPath, staticHash, limit, }: {
3
3
  folder: string;
4
4
  startPath: string;
5
- output?: StaticFile[];
5
+ output?: StaticFile[] | undefined;
6
6
  staticHash: string;
7
7
  limit: number;
8
8
  }) => StaticFile[];
@@ -7,8 +7,8 @@ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, envi
7
7
  outDir: string | null;
8
8
  environment: "development" | "production";
9
9
  webpackOverride: WebpackOverrideFn;
10
- onProgress?: (f: number) => void;
11
- enableCaching?: boolean;
10
+ onProgress?: ((f: number) => void) | undefined;
11
+ enableCaching?: boolean | undefined;
12
12
  maxTimelineTracks: number | null;
13
13
  keyboardShortcutsEnabled: boolean;
14
14
  bufferStateDelayInMilliseconds: number | null;
@@ -16,4 +16,4 @@ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, envi
16
16
  poll: number | null;
17
17
  askAIEnabled: boolean;
18
18
  experimentalClientSideRenderingEnabled: boolean;
19
- }) => Promise<[string, WebpackConfiguration]>;
19
+ }) => Promise<[string, Configuration]>;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/bundler"
4
4
  },
5
5
  "name": "@remotion/bundler",
6
- "version": "4.0.423",
6
+ "version": "4.0.424",
7
7
  "description": "Bundle Remotion compositions using Webpack",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -14,7 +14,7 @@
14
14
  "formatting": "prettier --experimental-cli src --check",
15
15
  "lint": "eslint src",
16
16
  "test": "bun test src",
17
- "make": "tsc -d"
17
+ "make": "tsgo -d"
18
18
  },
19
19
  "author": "Jonny Burger <jonny@remotion.dev>",
20
20
  "license": "SEE LICENSE IN LICENSE.md",
@@ -22,10 +22,10 @@
22
22
  "css-loader": "5.2.7",
23
23
  "esbuild": "0.25.0",
24
24
  "react-refresh": "0.9.0",
25
- "remotion": "4.0.423",
26
- "@remotion/studio": "4.0.423",
27
- "@remotion/studio-shared": "4.0.423",
28
- "@remotion/media-parser": "4.0.423",
25
+ "remotion": "4.0.424",
26
+ "@remotion/studio": "4.0.424",
27
+ "@remotion/studio-shared": "4.0.424",
28
+ "@remotion/media-parser": "4.0.424",
29
29
  "style-loader": "4.0.0",
30
30
  "source-map": "0.7.3",
31
31
  "webpack": "5.105.0"
@@ -37,8 +37,9 @@
37
37
  "devDependencies": {
38
38
  "react": "19.2.3",
39
39
  "react-dom": "19.2.3",
40
- "@remotion/eslint-config-internal": "4.0.423",
41
- "eslint": "9.19.0"
40
+ "@remotion/eslint-config-internal": "4.0.424",
41
+ "eslint": "9.19.0",
42
+ "@typescript/native-preview": "7.0.0-dev.20260217.1"
42
43
  },
43
44
  "keywords": [
44
45
  "remotion",