@remotion/cli 4.0.438 → 4.0.440

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/get-env.js CHANGED
@@ -57,27 +57,21 @@ function getProcessEnv() {
57
57
  return env;
58
58
  }
59
59
  const watchEnvFile = ({ processEnv, envFile, onUpdate, logLevel, }) => {
60
- const updateFile = async () => {
61
- const file = await node_fs_1.default.promises.readFile(envFile, 'utf-8');
62
- onUpdate({
63
- ...processEnv,
64
- ...dotenv_1.default.parse(file),
65
- });
66
- };
67
60
  const { unwatch } = studio_server_1.StudioServerInternals.installFileWatcher({
68
61
  file: envFile,
69
- onChange: async (type) => {
62
+ onChange: async (event) => {
70
63
  try {
71
- if (type === 'deleted') {
64
+ if (event.type === 'deleted') {
72
65
  log_1.Log.warn({ indent: false, logLevel }, `${envFile} was deleted.`);
73
66
  }
74
- else if (type === 'changed') {
75
- await updateFile();
76
- log_1.Log.info({ indent: false, logLevel }, chalk_1.chalk.blueBright(`Updated env file ${envFile}`));
77
- }
78
- else if (type === 'created') {
79
- await updateFile();
80
- log_1.Log.info({ indent: false, logLevel }, chalk_1.chalk.blueBright(`Created env file ${envFile}`));
67
+ else {
68
+ onUpdate({
69
+ ...processEnv,
70
+ ...dotenv_1.default.parse(event.content),
71
+ });
72
+ log_1.Log.info({ indent: false, logLevel }, chalk_1.chalk.blueBright(event.type === 'created'
73
+ ? `Created env file ${envFile}`
74
+ : `Updated env file ${envFile}`));
81
75
  }
82
76
  }
83
77
  catch (err) {
@@ -21,6 +21,7 @@ const getVideoImageFormat = ({ codec, uiImageFormat, }) => {
21
21
  codec === 'h264-mkv' ||
22
22
  codec === 'h264-ts' ||
23
23
  codec === 'h265' ||
24
+ codec === 'av1' ||
24
25
  codec === 'vp8' ||
25
26
  codec === 'vp9' ||
26
27
  codec === 'prores' ||
@@ -774,17 +774,17 @@ declare const benchmarkConcurrenciesOption: {
774
774
  description: () => import("react/jsx-runtime").JSX.Element;
775
775
  ssrName: string;
776
776
  docLink: string;
777
- type: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
777
+ type: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
778
778
  getValue: ({ commandLine }: {
779
779
  commandLine: Record<string, unknown>;
780
780
  }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
781
781
  outName: string | null;
782
782
  downloadName: string | null;
783
- configFile: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null;
784
- uiCodec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null;
785
- compositionCodec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null;
783
+ configFile: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null;
784
+ uiCodec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null;
785
+ compositionCodec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null;
786
786
  }) => {
787
- value: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
787
+ value: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
788
788
  source: string;
789
789
  };
790
790
  setConfig: (newCodec: import("@remotion/renderer").CodecOrUndefined) => void;
@@ -33,7 +33,7 @@ export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, l
33
33
  addCleanupCallback: (label: string, cb: () => void) => void;
34
34
  crf: Crf | null;
35
35
  cancelSignal: CancelSignal | null;
36
- uiCodec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null;
36
+ uiCodec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null;
37
37
  uiImageFormat: "jpeg" | "none" | "png" | null;
38
38
  ffmpegOverride: FfmpegOverrideFn;
39
39
  audioBitrate: string | null;
@@ -164,14 +164,14 @@ const processJobIfPossible = async ({ remotionRoot, entryPoint, logLevel, }) =>
164
164
  log_1.Log.info({ indent: false, logLevel }, chalk_1.chalk.gray('╰─ Done in ' + (Date.now() - startTime) + 'ms.'));
165
165
  const { unwatch } = studio_server_1.StudioServerInternals.installFileWatcher({
166
166
  file: node_path_1.default.resolve(remotionRoot, nextJob.outName),
167
- onChange: (type) => {
168
- if (type === 'created') {
167
+ onChange: (event) => {
168
+ if (event.type === 'created') {
169
169
  updateJob(nextJob.id, (job) => ({
170
170
  ...job,
171
171
  deletedOutputLocation: false,
172
172
  }));
173
173
  }
174
- if (type === 'deleted') {
174
+ if (event.type === 'deleted') {
175
175
  updateJob(nextJob.id, (job) => ({
176
176
  ...job,
177
177
  deletedOutputLocation: true,
package/dist/studio.js CHANGED
@@ -31,6 +31,7 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
31
31
  }
32
32
  const desiredPort = (_b = (_a = portOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value) !== null && _a !== void 0 ? _a : config_1.ConfigInternals.getStudioPort()) !== null && _b !== void 0 ? _b : null;
33
33
  const fullEntryPath = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(file);
34
+ studio_server_1.StudioServerInternals.setFileWatcherRegistry(studio_server_1.StudioServerInternals.createFileWatcherRegistry());
34
35
  let inputProps = (0, get_input_props_1.getInputProps)((newProps) => {
35
36
  studio_server_1.StudioServerInternals.waitForLiveEventsListener().then((listener) => {
36
37
  inputProps = newProps;
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.438",
6
+ "version": "4.0.440",
7
7
  "description": "Control Remotion features using the `npx remotion` command",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -37,17 +37,17 @@
37
37
  "author": "Jonny Burger <jonny@remotion.dev>",
38
38
  "license": "SEE LICENSE IN LICENSE.md",
39
39
  "dependencies": {
40
- "@remotion/bundler": "4.0.438",
41
- "@remotion/media-utils": "4.0.438",
42
- "@remotion/player": "4.0.438",
43
- "@remotion/renderer": "4.0.438",
44
- "@remotion/studio-shared": "4.0.438",
45
- "@remotion/studio-server": "4.0.438",
46
- "@remotion/studio": "4.0.438",
40
+ "@remotion/bundler": "4.0.440",
41
+ "@remotion/media-utils": "4.0.440",
42
+ "@remotion/player": "4.0.440",
43
+ "@remotion/renderer": "4.0.440",
44
+ "@remotion/studio-shared": "4.0.440",
45
+ "@remotion/studio-server": "4.0.440",
46
+ "@remotion/studio": "4.0.440",
47
47
  "dotenv": "17.3.1",
48
48
  "minimist": "1.2.6",
49
49
  "prompts": "2.4.2",
50
- "remotion": "4.0.438"
50
+ "remotion": "4.0.440"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": ">=16.8.0",
@@ -58,14 +58,14 @@
58
58
  "@types/prompts": "^2.4.1",
59
59
  "@types/prettier": "^2.7.2",
60
60
  "@types/node": "20.12.14",
61
- "@remotion/zod-types": "4.0.438",
62
- "@remotion/tailwind-v4": "4.0.438",
63
- "@remotion/enable-scss": "4.0.438",
64
- "@remotion/skia": "4.0.438",
61
+ "@remotion/zod-types": "4.0.440",
62
+ "@remotion/tailwind-v4": "4.0.440",
63
+ "@remotion/enable-scss": "4.0.440",
64
+ "@remotion/skia": "4.0.440",
65
65
  "react": "19.2.3",
66
66
  "react-dom": "19.2.3",
67
67
  "zod": "4.3.6",
68
- "@remotion/eslint-config-internal": "4.0.438",
68
+ "@remotion/eslint-config-internal": "4.0.440",
69
69
  "eslint": "9.19.0",
70
70
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
71
71
  },