@remotion/cli 4.0.207 → 4.0.208

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.
@@ -11,9 +11,8 @@ const truthy_1 = require("./truthy");
11
11
  const makeDownloadProgress = ({ bytesDownloaded, totalBytes, doneIn, }) => {
12
12
  const progress = bytesDownloaded / totalBytes;
13
13
  return [
14
- ` +`,
14
+ `${doneIn ? 'Got' : 'Getting'} Headless Shell`.padEnd(progress_bar_1.LABEL_WIDTH, ' '),
15
15
  (0, make_progress_bar_1.makeProgressBar)(progress, false),
16
- `${doneIn ? 'Got' : 'Getting'} Headless Shell`,
17
16
  doneIn === null
18
17
  ? (progress * 100).toFixed(0) + '%'
19
18
  : chalk_1.chalk.gray(`${doneIn}ms`),
@@ -23,8 +22,7 @@ const makeDownloadProgress = ({ bytesDownloaded, totalBytes, doneIn, }) => {
23
22
  };
24
23
  const defaultBrowserDownloadProgress = ({ indent, logLevel, quiet, }) => {
25
24
  return () => {
26
- log_1.Log.info({ indent, logLevel }, 'No local browser could be found.');
27
- log_1.Log.info({ indent, logLevel }, 'Downloading Chrome Headless Shell https://www.remotion.dev/chrome-headless-shell');
25
+ log_1.Log.info({ indent, logLevel }, chalk_1.chalk.gray('Downloading Chrome Headless Shell https://www.remotion.dev/chrome-headless-shell'));
28
26
  const updatesDontOverwrite = (0, should_use_non_overlaying_logger_1.shouldUseNonOverlayingLogger)({ logLevel });
29
27
  if (updatesDontOverwrite) {
30
28
  let lastProgress = 0;
@@ -13,6 +13,9 @@ const getCompName = ({ cliArgs, compositionIdFromUi, }) => {
13
13
  reason: 'via UI',
14
14
  };
15
15
  }
16
+ if (cliArgs.length === 0) {
17
+ return null;
18
+ }
16
19
  const [compName, ...remainingArgs] = cliArgs;
17
20
  return {
18
21
  compName: String(compName),
@@ -21,13 +24,13 @@ const getCompName = ({ cliArgs, compositionIdFromUi, }) => {
21
24
  };
22
25
  };
23
26
  const getCompositionId = async ({ args, compositionIdFromUi, serializedInputPropsWithCustomSchema, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, logLevel, indent, server, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, }) => {
24
- const { compName, remainingArgs, reason: compReason, } = getCompName({
27
+ const compNameResult = getCompName({
25
28
  cliArgs: args,
26
29
  compositionIdFromUi,
27
30
  });
28
- if (compName) {
31
+ if (compNameResult) {
29
32
  const { metadata: config, propsSize } = await renderer_1.RenderInternals.internalSelectComposition({
30
- id: compName,
33
+ id: compNameResult.compName,
31
34
  serializedInputPropsWithCustomSchema,
32
35
  puppeteerInstance,
33
36
  envVariables,
@@ -52,13 +55,13 @@ const getCompositionId = async ({ args, compositionIdFromUi, serializedInputProp
52
55
  }, `The props of your composition are large (${studio_server_1.StudioServerInternals.formatBytes(propsSize)}). This may cause slowdown.`);
53
56
  }
54
57
  if (!config) {
55
- throw new Error(`Cannot find composition with ID "${compName}"`);
58
+ throw new Error(`Cannot find composition with ID "${compNameResult.compName}"`);
56
59
  }
57
60
  return {
58
- compositionId: compName,
59
- reason: compReason,
61
+ compositionId: compNameResult.compName,
62
+ reason: compNameResult.reason,
60
63
  config,
61
- argsAfterComposition: remainingArgs,
64
+ argsAfterComposition: compNameResult.remainingArgs,
62
65
  };
63
66
  }
64
67
  if (!process.env.CI) {
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.207",
6
+ "version": "4.0.208",
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/bundler": "4.0.207",
36
- "@remotion/player": "4.0.207",
37
- "@remotion/media-utils": "4.0.207",
38
- "@remotion/renderer": "4.0.207",
39
- "@remotion/studio-shared": "4.0.207",
40
- "remotion": "4.0.207",
41
- "@remotion/studio": "4.0.207",
42
- "@remotion/studio-server": "4.0.207"
35
+ "@remotion/bundler": "4.0.208",
36
+ "@remotion/media-utils": "4.0.208",
37
+ "@remotion/studio-server": "4.0.208",
38
+ "@remotion/player": "4.0.208",
39
+ "@remotion/renderer": "4.0.208",
40
+ "remotion": "4.0.208",
41
+ "@remotion/studio": "4.0.208",
42
+ "@remotion/studio-shared": "4.0.208"
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.207",
56
- "@remotion/tailwind": "4.0.207",
57
- "@remotion/zod-types": "4.0.207",
58
- "@remotion/skia": "4.0.207"
55
+ "@remotion/zod-types": "4.0.208",
56
+ "@remotion/skia": "4.0.208",
57
+ "@remotion/enable-scss": "4.0.208",
58
+ "@remotion/tailwind": "4.0.208"
59
59
  },
60
60
  "keywords": [
61
61
  "remotion",