@remotion/cli 3.3.59 → 3.3.60

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 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const CurrentComposition: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const getNewCompositionCode: ({ type, height, width, fps, durationInFrames, name, raw, }: {
2
3
  type: 'still' | 'composition';
3
4
  height: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { PackageManager } from '../../preview-server/get-package-manager';
2
3
  export declare type UpdateInfo = {
3
4
  currentVersion: string;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Checkmark: () => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  export declare const CaretRight: () => JSX.Element;
2
3
  export declare const CaretDown: () => JSX.Element;
@@ -20,7 +20,7 @@ const lambdaCommand = async (remotionRoot, args) => {
20
20
  log_1.Log.error('Remotion Lambda is not installed.');
21
21
  log_1.Log.info('');
22
22
  log_1.Log.info('You can install it using:');
23
- log_1.Log.info(`${installCommand} i @remotion/lambda@${(0, update_available_1.getRemotionVersion)()}`);
23
+ log_1.Log.info(`${installCommand} @remotion/lambda@${(0, update_available_1.getRemotionVersion)()}`);
24
24
  process.exit(1);
25
25
  }
26
26
  };
@@ -4,8 +4,8 @@ const react_overlay_1 = require("./react-overlay");
4
4
  const remotion_overlay_1 = require("./remotion-overlay");
5
5
  const Overlay_1 = require("./remotion-overlay/Overlay");
6
6
  (0, react_overlay_1.startReportingRuntimeErrors)(() => {
7
- if (module.hot) {
8
- module.hot.addStatusHandler((status) => {
7
+ if (__webpack_module__.hot) {
8
+ __webpack_module__.hot.addStatusHandler((status) => {
9
9
  var _a;
10
10
  if (status === 'apply') {
11
11
  if ((0, react_overlay_1.didUnmountReactApp)()) {
@@ -5,4 +5,98 @@
5
5
  */
6
6
  import type { webpack } from '@remotion/bundler';
7
7
  import type { IncomingMessage, ServerResponse } from 'http';
8
+ declare global {
9
+ const __webpack_hash__: unknown;
10
+ interface HotNotifierInfo {
11
+ type: 'self-declined' | 'declined' | 'unaccepted' | 'accepted' | 'disposed' | 'accept-errored' | 'self-accept-errored' | 'self-accept-error-handler-errored';
12
+ /**
13
+ * The module in question.
14
+ */
15
+ moduleId: number;
16
+ /**
17
+ * For errors: the module id owning the accept handler.
18
+ */
19
+ dependencyId?: number | undefined;
20
+ /**
21
+ * For declined/accepted/unaccepted: the chain from where the update was propagated.
22
+ */
23
+ chain?: number[] | undefined;
24
+ /**
25
+ * For declined: the module id of the declining parent
26
+ */
27
+ parentId?: number | undefined;
28
+ /**
29
+ * For accepted: the modules that are outdated and will be disposed
30
+ */
31
+ outdatedModules?: number[] | undefined;
32
+ /**
33
+ * For accepted: The location of accept handlers that will handle the update
34
+ */
35
+ outdatedDependencies?: {
36
+ [dependencyId: number]: number[];
37
+ } | undefined;
38
+ /**
39
+ * For errors: the thrown error
40
+ */
41
+ error?: Error | undefined;
42
+ /**
43
+ * For self-accept-error-handler-errored: the error thrown by the module
44
+ * before the error handler tried to handle it.
45
+ */
46
+ originalError?: Error | undefined;
47
+ }
48
+ interface AcceptOptions {
49
+ /**
50
+ * If true the update process continues even if some modules are not accepted (and would bubble to the entry point).
51
+ */
52
+ ignoreUnaccepted?: boolean | undefined;
53
+ /**
54
+ * Ignore changes made to declined modules.
55
+ */
56
+ ignoreDeclined?: boolean | undefined;
57
+ /**
58
+ * Ignore errors throw in accept handlers, error handlers and while reevaluating module.
59
+ */
60
+ ignoreErrored?: boolean | undefined;
61
+ /**
62
+ * Notifier for declined modules.
63
+ */
64
+ onDeclined?: ((info: HotNotifierInfo) => void) | undefined;
65
+ /**
66
+ * Notifier for unaccepted modules.
67
+ */
68
+ onUnaccepted?: ((info: HotNotifierInfo) => void) | undefined;
69
+ /**
70
+ * Notifier for accepted modules.
71
+ */
72
+ onAccepted?: ((info: HotNotifierInfo) => void) | undefined;
73
+ /**
74
+ * Notifier for disposed modules.
75
+ */
76
+ onDisposed?: ((info: HotNotifierInfo) => void) | undefined;
77
+ /**
78
+ * Notifier for errors.
79
+ */
80
+ onErrored?: ((info: HotNotifierInfo) => void) | undefined;
81
+ /**
82
+ * Indicates that apply() is automatically called by check function
83
+ */
84
+ autoApply?: boolean | undefined;
85
+ }
86
+ const __webpack_module__: {
87
+ id: string;
88
+ exports: unknown;
89
+ hot: {
90
+ accept: () => void;
91
+ dispose: (onDispose: (data: Record<string, unknown>) => void) => void;
92
+ invalidate: () => void;
93
+ data?: Record<string, unknown>;
94
+ addStatusHandler(callback: (status: string) => void): void;
95
+ status(): string;
96
+ apply(options?: AcceptOptions): Promise<ModuleId[]>;
97
+ check(autoApply?: boolean): Promise<null | ModuleId[]>;
98
+ };
99
+ };
100
+ type ModuleId = string | number;
101
+ }
8
102
  export declare const webpackHotMiddleware: (compiler: webpack.Compiler) => (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
@@ -7,8 +7,7 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.processUpdate = void 0;
10
- /* global __webpack_hash__ */
11
- if (!module.hot) {
10
+ if (!__webpack_module__.hot) {
12
11
  throw new Error('[Fast refresh] Hot Module Replacement is disabled.');
13
12
  }
14
13
  const hmrDocsUrl = 'https://webpack.js.org/concepts/hot-module-replacement/'; // eslint-disable-line max-len
@@ -44,7 +43,7 @@ function upToDate(hash) {
44
43
  const processUpdate = function (hash, moduleMap, options) {
45
44
  var _a;
46
45
  const { reload } = options;
47
- if (!upToDate(hash) && ((_a = module.hot) === null || _a === void 0 ? void 0 : _a.status()) === 'idle') {
46
+ if (!upToDate(hash) && ((_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.status()) === 'idle') {
48
47
  check();
49
48
  }
50
49
  async function check() {
@@ -69,7 +68,7 @@ const processUpdate = function (hash, moduleMap, options) {
69
68
  }
70
69
  logUpdates(updatedModules, renewedModules);
71
70
  };
72
- const applyResult = (_a = module.hot) === null || _a === void 0 ? void 0 : _a.apply(applyOptions, applyCallback);
71
+ const applyResult = (_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.apply(applyOptions);
73
72
  if (applyResult === null || applyResult === void 0 ? void 0 : applyResult.then) {
74
73
  // HotModuleReplacement.runtime.js refers to the result as `outdatedModules`
75
74
  applyResult
@@ -80,7 +79,7 @@ const processUpdate = function (hash, moduleMap, options) {
80
79
  }
81
80
  };
82
81
  try {
83
- const result = await ((_a = module.hot) === null || _a === void 0 ? void 0 : _a.check(false, cb));
82
+ const result = await ((_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.check(false));
84
83
  cb(null, result);
85
84
  }
86
85
  catch (err) {
@@ -119,7 +118,7 @@ const processUpdate = function (hash, moduleMap, options) {
119
118
  }
120
119
  function handleError(err) {
121
120
  var _a, _b;
122
- if (((_b = (_a = module.hot) === null || _a === void 0 ? void 0 : _a.status()) !== null && _b !== void 0 ? _b : 'nope') in failureStatuses) {
121
+ if (((_b = (_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.status()) !== null && _b !== void 0 ? _b : 'nope') in failureStatuses) {
123
122
  if (options.warn) {
124
123
  console.warn('[Fast refresh] Cannot check for update (Full reload needed)');
125
124
  console.warn('[Fast refresh] ' + (err.stack || err.message));
package/dist/render.js CHANGED
@@ -133,7 +133,7 @@ const render = async (remotionRoot, args) => {
133
133
  if (outputDir.cleanup) {
134
134
  (0, cleanup_before_quit_1.registerCleanupJob)(() => renderer_1.RenderInternals.deleteDirectory(outputDir.dir));
135
135
  }
136
- log_1.Log.verbose('Output dir', outputDir);
136
+ log_1.Log.verbose('Output dir', outputDir.dir);
137
137
  const renderProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
138
138
  const realFrameRange = renderer_1.RenderInternals.getRealFrameRange(config.durationInFrames, frameRange);
139
139
  const totalFrames = renderer_1.RenderInternals.getFramesToRender(realFrameRange, everyNthFrame);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "3.3.59",
3
+ "version": "3.3.60",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -22,16 +22,16 @@
22
22
  "author": "Jonny Burger <jonny@remotion.dev>",
23
23
  "license": "SEE LICENSE IN LICENSE.md",
24
24
  "dependencies": {
25
- "@remotion/bundler": "3.3.59",
26
- "@remotion/media-utils": "3.3.59",
27
- "@remotion/player": "3.3.59",
28
- "@remotion/renderer": "3.3.59",
25
+ "@remotion/bundler": "3.3.60",
26
+ "@remotion/media-utils": "3.3.60",
27
+ "@remotion/player": "3.3.60",
28
+ "@remotion/renderer": "3.3.60",
29
29
  "better-opn": "2.1.1",
30
30
  "dotenv": "9.0.2",
31
31
  "memfs": "3.4.3",
32
32
  "minimist": "1.2.6",
33
33
  "prompts": "2.4.1",
34
- "remotion": "3.3.59",
34
+ "remotion": "3.3.60",
35
35
  "semver": "7.3.5",
36
36
  "source-map": "0.6.1"
37
37
  },
@@ -47,7 +47,6 @@
47
47
  "@types/react": "18.0.26",
48
48
  "@types/react-dom": "18.0.10",
49
49
  "@types/semver": "^7.3.4",
50
- "@types/webpack-env": "^1.16.0",
51
50
  "@typescript-eslint/eslint-plugin": "5.18.0",
52
51
  "@typescript-eslint/parser": "5.18.0",
53
52
  "eslint": "8.25.0",
@@ -71,5 +70,5 @@
71
70
  "publishConfig": {
72
71
  "access": "public"
73
72
  },
74
- "gitHead": "4ee88b056704d7224838a8fbc32d2d3522c5afbe"
73
+ "gitHead": "60797b0861ef1017cec53ba656214cbc10db011b"
75
74
  }