@remotion/cli 2.6.13 → 2.6.16

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,5 +1,5 @@
1
- @remotion/cli:build: cache hit, replaying output 4a4cc0ceea2e5036
2
- @remotion/cli:build: 
3
- @remotion/cli:build: > @remotion/cli@2.6.12 build /Users/jonathanburger/remotion/packages/cli
4
- @remotion/cli:build: > tsc -d
5
- @remotion/cli:build: 
1
+ @remotion/cli:build: cache hit, replaying output 38e3b3bd7420defa
2
+ @remotion/cli:build: 
3
+ @remotion/cli:build: > @remotion/cli@2.6.15 build /Users/jonathanburger/remotion/packages/cli
4
+ @remotion/cli:build: > tsc -d
5
+ @remotion/cli:build: 
@@ -0,0 +1,15 @@
1
+ @remotion/cli:lint: cache hit, replaying output dab7100943d4b084
2
+ @remotion/cli:lint: 
3
+ @remotion/cli:lint: > @remotion/cli@2.6.15 lint /Users/jonathanburger/remotion/packages/cli
4
+ @remotion/cli:lint: > eslint src --ext ts,tsx
5
+ @remotion/cli:lint: 
6
+ @remotion/cli:lint: 
7
+ @remotion/cli:lint: /Users/jonathanburger/remotion/packages/cli/src/editor/components/MenuToolbar.tsx
8
+ @remotion/cli:lint:  486:4 warning Empty components are self-closing react/self-closing-comp
9
+ @remotion/cli:lint: 
10
+ @remotion/cli:lint: /Users/jonathanburger/remotion/packages/cli/src/editor/components/Timeline/is-collapsed.ts
11
+ @remotion/cli:lint:  22:3 warning Unexpected 'todo' comment: 'TODO: Tighten up, when toggling rich...' no-warning-comments
12
+ @remotion/cli:lint: 
13
+ @remotion/cli:lint: ✖ 2 problems (0 errors, 2 warnings)
14
+ @remotion/cli:lint:  0 errors and 1 warning potentially fixable with the `--fix` option.
15
+ @remotion/cli:lint: 
@@ -0,0 +1,15 @@
1
+ @remotion/cli:test: cache hit, replaying output 3009984626421fa9
2
+ @remotion/cli:test: 
3
+ @remotion/cli:test: > @remotion/cli@2.6.15 test /Users/jonathanburger/remotion/packages/cli
4
+ @remotion/cli:test: > jest
5
+ @remotion/cli:test: 
6
+ @remotion/cli:test: PASS src/test/timeline-sequence-layout.test.ts (7.756 s)
7
+ @remotion/cli:test: PASS src/test/sequenced-timeline.test.ts (7.955 s)
8
+ @remotion/cli:test: PASS src/test/timeline.test.ts (7.833 s)
9
+ @remotion/cli:test: PASS src/test/big-timeline.test.ts (8.2 s)
10
+ @remotion/cli:test: 
11
+ @remotion/cli:test: Test Suites: 4 passed, 4 total
12
+ @remotion/cli:test: Tests: 7 passed, 7 total
13
+ @remotion/cli:test: Snapshots: 0 total
14
+ @remotion/cli:test: Time: 9.355 s
15
+ @remotion/cli:test: Ran all test suites.
@@ -1 +1 @@
1
- {"version":3,"file":"code-frame.d.ts","sourceRoot":"","sources":["../src/code-frame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAyB,MAAM,oBAAoB,CAAC;AAkD/E,eAAO,MAAM,sBAAsB,QAAS,mBAAmB,SAmC9D,CAAC"}
1
+ {"version":3,"file":"code-frame.d.ts","sourceRoot":"","sources":["../src/code-frame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAyB,MAAM,oBAAoB,CAAC;AA8D/E,eAAO,MAAM,sBAAsB,QAAS,mBAAmB,SAsC9D,CAAC"}
@@ -25,23 +25,34 @@ const printCodeFrame = (frame) => {
25
25
  log_1.Log.info();
26
26
  const longestLineNumber = Math.max(...frame.originalScriptCode.map((script) => script.lineNumber)).toString().length;
27
27
  log_1.Log.info('at', chalk_1.default.underline(makeFileName(frame)));
28
+ const alignLeftAmount = Math.min(...frame.originalScriptCode.map((c) => c.content.length - c.content.trimStart().length));
28
29
  log_1.Log.info(`${frame.originalScriptCode
29
30
  .map((c) => {
30
- const content = `${String(c.lineNumber).padStart(longestLineNumber + 1, ' ')} | ${c.content}`;
31
+ const content = `${String(c.lineNumber).padStart(longestLineNumber, ' ')} | ${c.content.substring(alignLeftAmount)}`;
31
32
  return c.highlight ? content : chalk_1.default.gray(content);
32
33
  })
33
34
  .join('\n')}`);
34
35
  };
35
36
  const logLine = (frame) => {
36
- log_1.Log.info(chalk_1.default.gray(`at ${frame.originalFunctionName} ${chalk_1.default.blueBright(`(${makeFileName(frame)})`)}`));
37
+ const fileName = makeFileName(frame);
38
+ if (!fileName) {
39
+ return;
40
+ }
41
+ log_1.Log.info(chalk_1.default.gray(['at', frame.originalFunctionName, `${chalk_1.default.blueBright(`(${fileName})`)}`]
42
+ .filter(remotion_1.Internals.truthy)
43
+ .join(' ')));
37
44
  };
38
45
  const printCodeFrameAndStack = (err) => {
39
46
  var _a, _b, _c;
40
- const firstFrame = err.stackFrames[0];
41
- log_1.Log.error(chalk_1.default.bgRed(chalk_1.default.white(` ${err.errorType} `.toUpperCase())), err.message);
47
+ if (!err.symbolicatedStackFrames) {
48
+ log_1.Log.error(err.stack);
49
+ return;
50
+ }
51
+ const firstFrame = err.symbolicatedStackFrames[0];
52
+ log_1.Log.error(chalk_1.default.bgRed(chalk_1.default.white(` ${err.name} `)), err.message);
42
53
  printCodeFrame(firstFrame);
43
54
  log_1.Log.info();
44
- for (const frame of err.stackFrames) {
55
+ for (const frame of err.symbolicatedStackFrames) {
45
56
  if (frame === firstFrame) {
46
57
  continue;
47
58
  }
@@ -49,7 +60,7 @@ const printCodeFrameAndStack = (err) => {
49
60
  }
50
61
  if (err.delayRenderCall) {
51
62
  log_1.Log.error();
52
- log_1.Log.error('The delayRender() call is located at:');
63
+ log_1.Log.error('🕧 The delayRender() call is located at:');
53
64
  for (const frame of err.delayRenderCall) {
54
65
  const showCodeFrame = (!((_a = frame.originalFileName) === null || _a === void 0 ? void 0 : _a.includes('node_modules')) &&
55
66
  !((_b = frame.originalFileName) === null || _b === void 0 ? void 0 : _b.startsWith('webpack/'))) ||
@@ -1 +1 @@
1
- {"version":3,"file":"code-frame.js","sourceRoot":"","sources":["../src/code-frame.ts"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAC1B,uCAAmC;AACnC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Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handleCommonError = void 0;
4
4
  const log_1 = require("./log");
5
5
  const handleCommonError = (err) => {
6
- log_1.Log.error(err.stack);
6
+ log_1.Log.error(err.stack || err);
7
7
  if (err.message.includes('Could not play video with')) {
8
8
  log_1.Log.info();
9
9
  log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/media-playback-error');
@@ -1 +1 @@
1
- {"version":3,"file":"handle-common-errors.js","sourceRoot":"","sources":["../src/handle-common-errors.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAEnB,MAAM,iBAAiB,GAAG,CAAC,GAAU,EAAE,EAAE;IAC/C,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACrB,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAAE;QACtD,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,SAAG,CAAC,IAAI,CACP,8EAA8E,CAC9E,CAAC;KACF;IAED,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,EAAE;QACrD,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,SAAG,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;KAC5E;IAED,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;QAC1C,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,SAAG,CAAC,IAAI,CACP,uEAAuE,CACvE,CAAC;KACF;IAED,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;QACzC,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,SAAG,CAAC,IAAI,CACP,sEAAsE,CACtE,CAAC;KACF;AACF,CAAC,CAAC;AA3BW,QAAA,iBAAiB,qBA2B5B"}
1
+ {"version":3,"file":"handle-common-errors.js","sourceRoot":"","sources":["../src/handle-common-errors.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAEnB,MAAM,iBAAiB,GAAG,CAAC,GAAU,EAAE,EAAE;IAC/C,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC;IAC5B,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAAE;QACtD,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,SAAG,CAAC,IAAI,CACP,8EAA8E,CAC9E,CAAC;KACF;IAED,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,EAAE;QACrD,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,SAAG,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;KAC5E;IAED,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;QAC1C,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,SAAG,CAAC,IAAI,CACP,uEAAuE,CACvE,CAAC;KACF;IAED,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;QACzC,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,SAAG,CAAC,IAAI,CACP,sEAAsE,CACtE,CAAC;KACF;AACF,CAAC,CAAC;AA3BW,QAAA,iBAAiB,qBA2B5B"}
@@ -1,2 +1,2 @@
1
- export declare const printError: (err: Error) => void;
1
+ export declare const printError: (err: Error) => Promise<void>;
2
2
  //# sourceMappingURL=print-error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"print-error.d.ts","sourceRoot":"","sources":["../src/print-error.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,QAAS,KAAK,SAcpC,CAAC"}
1
+ {"version":3,"file":"print-error.d.ts","sourceRoot":"","sources":["../src/print-error.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU,QAAe,KAAK,kBA+B1C,CAAC"}
@@ -1,22 +1,36 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.printError = void 0;
4
7
  const renderer_1 = require("@remotion/renderer");
8
+ const chalk_1 = __importDefault(require("chalk"));
5
9
  const code_frame_1 = require("./code-frame");
6
10
  const log_1 = require("./log");
7
- const printError = (err) => {
8
- if (err instanceof renderer_1.ErrorWithStackFrame) {
9
- if (err.frame !== null) {
10
- log_1.Log.error(`An error occurred while rendering frame ${err.frame}:`);
11
+ const progress_bar_1 = require("./progress-bar");
12
+ const printError = async (err) => {
13
+ if (err instanceof renderer_1.RenderInternals.SymbolicateableError) {
14
+ const output = (0, progress_bar_1.createOverwriteableCliOutput)(false);
15
+ output.update(chalk_1.default.red('Symbolicating minified error message...\n' + err.message));
16
+ try {
17
+ const symbolicated = await renderer_1.RenderInternals.symbolicateError(err);
18
+ if (symbolicated.frame === null) {
19
+ output.update(chalk_1.default.red('An error occurred:\n'));
20
+ }
21
+ else {
22
+ output.update(chalk_1.default.red(`An error occurred while rendering frame ${err.frame}:\n`));
23
+ }
24
+ (0, code_frame_1.printCodeFrameAndStack)(symbolicated);
11
25
  }
12
- else {
13
- log_1.Log.error('An error occurred:');
26
+ catch (e) {
27
+ output.update(chalk_1.default.red('(Error occurred symbolicating stack trace - printing minified stack trace)\n'));
28
+ log_1.Log.error(err.stack || err);
14
29
  }
15
- (0, code_frame_1.printCodeFrameAndStack)(err);
16
30
  return;
17
31
  }
18
32
  log_1.Log.error('An error occurred:');
19
- log_1.Log.error(err.stack);
33
+ log_1.Log.error(err.stack || err);
20
34
  };
21
35
  exports.printError = printError;
22
36
  //# sourceMappingURL=print-error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"print-error.js","sourceRoot":"","sources":["../src/print-error.ts"],"names":[],"mappings":";;;AAAA,iDAAuD;AACvD,6CAAoD;AACpD,+BAA0B;AAEnB,MAAM,UAAU,GAAG,CAAC,GAAU,EAAE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AAC,YAAY,CAAC,CAAC;SACrC;QAAC,OAAO,CAAC,EAAE;YACX,MAAM,CAAC,MAAM,CACZ,eAAK,CAAC,GAAG,CACR,8EAA8E,CAC9E,CACD,CAAC;YACF,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC;SAC5B;QAED,OAAO;KACP;IAED,SAAG,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAChC,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC;AAC7B,CAAC,CAAC;AA/BW,QAAA,UAAU,cA+BrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "2.6.13",
3
+ "version": "2.6.16",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -23,22 +23,22 @@
23
23
  "author": "Jonny Burger <jonny@remotion.dev>",
24
24
  "license": "SEE LICENSE IN LICENSE.md",
25
25
  "dependencies": {
26
- "@remotion/bundler": "2.6.13",
27
- "@remotion/media-utils": "2.6.13",
28
- "@remotion/player": "2.6.13",
29
- "@remotion/renderer": "2.6.13",
26
+ "@remotion/bundler": "2.6.16",
27
+ "@remotion/media-utils": "2.6.16",
28
+ "@remotion/player": "2.6.16",
29
+ "@remotion/renderer": "2.6.16",
30
30
  "better-opn": "2.1.1",
31
31
  "chalk": "4.1.2",
32
32
  "dotenv": "9.0.2",
33
33
  "execa": "5.1.1",
34
34
  "minimist": "1.2.6",
35
- "remotion": "2.6.13",
35
+ "remotion": "2.6.16",
36
36
  "semver": "7.3.5",
37
37
  "webpack": "5.60.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "react": "^17.0.1",
41
- "react-dom": "^17.0.1"
40
+ "react": ">=16.8.0",
41
+ "react-dom": ">=16.8.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@jonny/eslint-config": "^2.1.251",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "f382c9698d1e43ea56d5d10174fe0a7419e31fd2"
70
+ "gitHead": "96b2a8f042ece45305601b1f240b56f35fc9fcd4"
71
71
  }