@remotion/cli 4.0.204 → 4.0.206

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/benchmark.js CHANGED
@@ -198,7 +198,7 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
198
198
  onBrowserDownload,
199
199
  });
200
200
  const ids = (remainingArgs[0]
201
- ? remainingArgs[0]
201
+ ? String(remainingArgs[0])
202
202
  .split(',')
203
203
  .map((c) => c.trim())
204
204
  .filter(truthy_1.truthy)
@@ -1,13 +1,13 @@
1
1
  import type { LogLevel } from '@remotion/renderer';
2
2
  type FoundReason = 'argument passed - found in cwd' | 'argument passed - found in root' | 'argument passed' | 'config file' | 'common paths' | 'none found';
3
3
  export declare const findEntryPoint: ({ args, logLevel, remotionRoot, allowDirectory, }: {
4
- args: string[];
4
+ args: (string | number)[];
5
5
  remotionRoot: string;
6
6
  logLevel: LogLevel;
7
7
  allowDirectory: boolean;
8
8
  }) => {
9
9
  file: string | null;
10
- remainingArgs: string[];
10
+ remainingArgs: (string | number)[];
11
11
  reason: FoundReason;
12
12
  };
13
13
  export {};
@@ -44,7 +44,7 @@ const isBundledCode = (p) => {
44
44
  };
45
45
  const findEntryPointInner = (args, remotionRoot, logLevel) => {
46
46
  // 1st priority: Explicitly passed entry point
47
- let file = args[0];
47
+ let file = args[0] ? args[0].toString() : null;
48
48
  if (file) {
49
49
  log_1.Log.verbose({ indent: false, logLevel }, 'Checking if', file, 'is the entry file');
50
50
  const cwdResolution = node_path_1.default.resolve(process.cwd(), file);
@@ -1,7 +1,7 @@
1
1
  import type { BrowserExecutable, ChromiumOptions, HeadlessBrowser, LogLevel, OnBrowserDownload, RemotionServer } from '@remotion/renderer';
2
2
  import type { VideoConfig } from 'remotion';
3
3
  export declare const getCompositionId: ({ args, compositionIdFromUi, serializedInputPropsWithCustomSchema, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, logLevel, indent, server, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, }: {
4
- args: string[];
4
+ args: (string | number)[];
5
5
  compositionIdFromUi: string | null;
6
6
  serializedInputPropsWithCustomSchema: string;
7
7
  puppeteerInstance: HeadlessBrowser | undefined;
@@ -21,5 +21,5 @@ export declare const getCompositionId: ({ args, compositionIdFromUi, serializedI
21
21
  compositionId: string;
22
22
  reason: string;
23
23
  config: VideoConfig;
24
- argsAfterComposition: string[];
24
+ argsAfterComposition: (string | number)[];
25
25
  }>;
@@ -14,7 +14,11 @@ const getCompName = ({ cliArgs, compositionIdFromUi, }) => {
14
14
  };
15
15
  }
16
16
  const [compName, ...remainingArgs] = cliArgs;
17
- return { compName, remainingArgs, reason: 'Passed as argument' };
17
+ return {
18
+ compName: String(compName),
19
+ remainingArgs,
20
+ reason: 'Passed as argument',
21
+ };
18
22
  };
19
23
  const getCompositionId = async ({ args, compositionIdFromUi, serializedInputPropsWithCustomSchema, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, logLevel, indent, server, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, }) => {
20
24
  const { compName, remainingArgs, reason: compReason, } = getCompName({
@@ -3,7 +3,7 @@ import type { VideoConfig } from 'remotion';
3
3
  export declare const getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, }: {
4
4
  height: number | null;
5
5
  width: number | null;
6
- args: string[];
6
+ args: (string | number)[];
7
7
  compositionIdFromUi: string | null;
8
8
  timeoutInMilliseconds: number;
9
9
  puppeteerInstance: HeadlessBrowser | undefined;
@@ -23,5 +23,5 @@ export declare const getCompositionWithDimensionOverride: ({ height, width, args
23
23
  compositionId: string;
24
24
  reason: string;
25
25
  config: VideoConfig;
26
- argsAfterComposition: string[];
26
+ argsAfterComposition: (string | number)[];
27
27
  }>;
@@ -3,7 +3,7 @@ export declare const getOutputFilename: ({ imageSequence, compositionName, defau
3
3
  imageSequence: boolean;
4
4
  compositionName: string;
5
5
  defaultExtension: string;
6
- args: string[];
6
+ args: (string | number)[];
7
7
  fromUi: string | null;
8
8
  indent: boolean;
9
9
  logLevel: LogLevel;
@@ -15,18 +15,18 @@ const getOutputFilename = ({ imageSequence, compositionName, defaultExtension, a
15
15
  type: imageSequence ? 'sequence' : 'asset',
16
16
  outputLocationFromUi: null,
17
17
  });
18
- const extension = renderer_1.RenderInternals.getExtensionOfFilename(filename);
18
+ const extension = renderer_1.RenderInternals.getExtensionOfFilename(String(filename));
19
19
  if (imageSequence) {
20
20
  if (extension !== null) {
21
21
  throw new Error('The output directory of the image sequence cannot have an extension. Got: ' +
22
22
  extension);
23
23
  }
24
- return filename;
24
+ return String(filename);
25
25
  }
26
26
  if (extension === null && !imageSequence) {
27
27
  log_1.Log.warn({ indent, logLevel }, `No file extension specified, adding ${defaultExtension} automatically.`);
28
28
  return `${filename}.${defaultExtension}`;
29
29
  }
30
- return filename;
30
+ return String(filename);
31
31
  };
32
32
  exports.getOutputFilename = getOutputFilename;
package/dist/index.d.ts CHANGED
@@ -120,13 +120,13 @@ export declare const CliInternals: {
120
120
  };
121
121
  minimist: typeof minimist;
122
122
  findEntryPoint: ({ args, logLevel, remotionRoot, allowDirectory, }: {
123
- args: string[];
123
+ args: (string | number)[];
124
124
  remotionRoot: string;
125
125
  logLevel: "verbose" | "info" | "warn" | "error";
126
126
  allowDirectory: boolean;
127
127
  }) => {
128
128
  file: string | null;
129
- remainingArgs: string[];
129
+ remainingArgs: (string | number)[];
130
130
  reason: "argument passed - found in cwd" | "argument passed - found in root" | "argument passed" | "config file" | "common paths" | "none found";
131
131
  };
132
132
  getVideoImageFormat: ({ codec, uiImageFormat, }: {
@@ -141,7 +141,7 @@ export declare const CliInternals: {
141
141
  getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, }: {
142
142
  height: number | null;
143
143
  width: number | null;
144
- args: string[];
144
+ args: (string | number)[];
145
145
  compositionIdFromUi: string | null;
146
146
  timeoutInMilliseconds: number;
147
147
  puppeteerInstance: import("@remotion/renderer").HeadlessBrowser | undefined;
@@ -161,7 +161,7 @@ export declare const CliInternals: {
161
161
  compositionId: string;
162
162
  reason: string;
163
163
  config: import("remotion").VideoConfig;
164
- argsAfterComposition: string[];
164
+ argsAfterComposition: (string | number)[];
165
165
  }>;
166
166
  defaultBrowserDownloadProgress: ({ indent, logLevel, quiet, }: {
167
167
  indent: boolean;
@@ -147,17 +147,17 @@ declare const beepOnFinishOption: {
147
147
  description: () => import("react/jsx-runtime").JSX.Element;
148
148
  ssrName: "x264Preset";
149
149
  docLink: string;
150
- type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
150
+ type: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
151
151
  getValue: ({ commandLine }: {
152
152
  commandLine: Record<string, unknown>;
153
153
  }) => {
154
- value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
154
+ value: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
155
155
  source: string;
156
156
  } | {
157
157
  value: null;
158
158
  source: string;
159
159
  };
160
- setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
160
+ setConfig: (profile: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
161
161
  }, enforceAudioOption: {
162
162
  name: string;
163
163
  cliFlag: "enforce-audio-track";
@@ -18,7 +18,7 @@ export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, l
18
18
  port: number | null;
19
19
  height: number | null;
20
20
  width: number | null;
21
- remainingArgs: string[];
21
+ remainingArgs: (string | number)[];
22
22
  compositionIdFromUi: string | null;
23
23
  outputLocationFromUI: string | null;
24
24
  overwrite: boolean;
@@ -4,7 +4,7 @@ export declare const renderStillFlow: ({ remotionRoot, fullEntryPoint, entryPoin
4
4
  remotionRoot: string;
5
5
  fullEntryPoint: string;
6
6
  entryPointReason: string;
7
- remainingArgs: string[];
7
+ remainingArgs: (string | number)[];
8
8
  serializedInputPropsWithCustomSchema: string;
9
9
  envVariables: Record<string, string>;
10
10
  jpegQuality: number;
package/dist/render.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import type { LogLevel } from '@remotion/renderer';
2
- export declare const render: (remotionRoot: string, args: string[], logLevel: LogLevel) => Promise<void>;
2
+ export declare const render: (remotionRoot: string, args: (string | number)[], logLevel: LogLevel) => Promise<void>;
@@ -1,8 +1,8 @@
1
- export declare const getUserPassedOutputLocation: (args: string[], uiPassedOutName: string | null) => string;
1
+ export declare const getUserPassedOutputLocation: (args: (string | number)[], uiPassedOutName: string | null) => string;
2
2
  export declare const getOutputLocation: ({ compositionId, defaultExtension, args, type, outputLocationFromUi, }: {
3
3
  compositionId: string;
4
4
  outputLocationFromUi: string | null;
5
5
  defaultExtension: string;
6
- args: string[];
6
+ args: (string | number)[];
7
7
  type: 'asset' | 'sequence';
8
8
  }) => string;
@@ -7,7 +7,7 @@ const parsed_cli_1 = require("./parsed-cli");
7
7
  const getUserPassedOutputLocation = (args, uiPassedOutName) => {
8
8
  var _a, _b;
9
9
  const filename = (_b = (_a = uiPassedOutName !== null && uiPassedOutName !== void 0 ? uiPassedOutName : args[0]) !== null && _a !== void 0 ? _a : parsed_cli_1.parsedCli.output) !== null && _b !== void 0 ? _b : config_1.ConfigInternals.getOutputLocation();
10
- return filename;
10
+ return String(filename);
11
11
  };
12
12
  exports.getUserPassedOutputLocation = getUserPassedOutputLocation;
13
13
  const getOutputLocation = ({ compositionId, defaultExtension, args, type, outputLocationFromUi, }) => {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli"
4
4
  },
5
5
  "name": "@remotion/cli",
6
- "version": "4.0.204",
6
+ "version": "4.0.206",
7
7
  "description": "Control Remotion features using the `npx remotion` command",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -32,14 +32,14 @@
32
32
  "dotenv": "9.0.2",
33
33
  "minimist": "1.2.6",
34
34
  "prompts": "2.4.2",
35
- "@remotion/media-utils": "4.0.204",
36
- "@remotion/studio-shared": "4.0.204",
37
- "@remotion/bundler": "4.0.204",
38
- "@remotion/studio": "4.0.204",
39
- "remotion": "4.0.204",
40
- "@remotion/renderer": "4.0.204",
41
- "@remotion/studio-server": "4.0.204",
42
- "@remotion/player": "4.0.204"
35
+ "@remotion/bundler": "4.0.206",
36
+ "@remotion/renderer": "4.0.206",
37
+ "@remotion/media-utils": "4.0.206",
38
+ "@remotion/player": "4.0.206",
39
+ "@remotion/studio-shared": "4.0.206",
40
+ "@remotion/studio-server": "4.0.206",
41
+ "remotion": "4.0.206",
42
+ "@remotion/studio": "4.0.206"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8.0",
@@ -52,10 +52,10 @@
52
52
  "react": "18.3.1",
53
53
  "react-dom": "18.3.1",
54
54
  "zod": "3.22.3",
55
- "@remotion/enable-scss": "4.0.204",
56
- "@remotion/skia": "4.0.204",
57
- "@remotion/tailwind": "4.0.204",
58
- "@remotion/zod-types": "4.0.204"
55
+ "@remotion/zod-types": "4.0.206",
56
+ "@remotion/tailwind": "4.0.206",
57
+ "@remotion/enable-scss": "4.0.206",
58
+ "@remotion/skia": "4.0.206"
59
59
  },
60
60
  "keywords": [
61
61
  "remotion",