@remotion/renderer 4.0.31 → 4.0.33

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/client.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const BrowserSafeApis: {
3
2
  getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
4
3
  validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
@@ -283,6 +282,22 @@ export declare const BrowserSafeApis: {
283
282
  ssrName: string;
284
283
  type: "bt709" | "default";
285
284
  };
285
+ deleteAfterOption: {
286
+ name: string;
287
+ cliFlag: "delete-after";
288
+ description: () => JSX.Element;
289
+ ssrName: "deleteAfter";
290
+ docLink: string;
291
+ type: string | null;
292
+ };
293
+ folderExpiryOption: {
294
+ name: string;
295
+ cliFlag: "enable-folder-expiry";
296
+ description: () => JSX.Element;
297
+ ssrName: "enableFolderExpiry";
298
+ docLink: string;
299
+ type: boolean | null;
300
+ };
286
301
  };
287
302
  validColorSpaces: readonly ["default", "bt709"];
288
303
  optionsMap: {
package/dist/client.js CHANGED
@@ -11,7 +11,9 @@ const is_audio_codec_1 = require("./is-audio-codec");
11
11
  const audio_bitrate_1 = require("./options/audio-bitrate");
12
12
  const color_space_1 = require("./options/color-space");
13
13
  const crf_2 = require("./options/crf");
14
+ const delete_after_1 = require("./options/delete-after");
14
15
  const enforce_audio_1 = require("./options/enforce-audio");
16
+ const folder_expiry_1 = require("./options/folder-expiry");
15
17
  const jpeg_quality_1 = require("./options/jpeg-quality");
16
18
  const mute_1 = require("./options/mute");
17
19
  const offthreadvideo_cache_size_1 = require("./options/offthreadvideo-cache-size");
@@ -52,6 +54,8 @@ exports.BrowserSafeApis = {
52
54
  offthreadVideoCacheSizeInBytesOption: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
53
55
  webhookCustomDataOption: webhook_custom_data_1.webhookCustomDataOption,
54
56
  colorSpaceOption: color_space_1.colorSpaceOption,
57
+ deleteAfterOption: delete_after_1.deleteAfterOption,
58
+ folderExpiryOption: folder_expiry_1.folderExpiryOption,
55
59
  },
56
60
  validColorSpaces: color_space_1.validColorSpaces,
57
61
  optionsMap: options_map_1.optionsMap,
@@ -0,0 +1,8 @@
1
+ export declare const deleteAfterOption: {
2
+ name: string;
3
+ cliFlag: "delete-after";
4
+ description: () => JSX.Element;
5
+ ssrName: "deleteAfter";
6
+ docLink: string;
7
+ type: string | null;
8
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteAfterOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ exports.deleteAfterOption = {
6
+ name: 'Lambda render expiration',
7
+ cliFlag: 'delete-after',
8
+ description: () => {
9
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Automatically delete the render after a certain period. Accepted values are ", (0, jsx_runtime_1.jsx)("code", { children: "1-day" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "3-days" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "7-days" }), " and", ' ', (0, jsx_runtime_1.jsx)("code", { children: "30-days" }), ".", (0, jsx_runtime_1.jsx)("br", {}), " For this to work, your bucket needs to have", ' ', (0, jsx_runtime_1.jsx)("a", { href: "/docs/lambda/autodelete", children: "lifecycles enabled" }), "."] }));
10
+ },
11
+ ssrName: 'deleteAfter',
12
+ docLink: 'https://www.remotion.dev/docs/lambda/autodelete',
13
+ type: '',
14
+ };
@@ -0,0 +1,8 @@
1
+ export declare const folderExpiryOption: {
2
+ name: string;
3
+ cliFlag: "enable-folder-expiry";
4
+ description: () => JSX.Element;
5
+ ssrName: "enableFolderExpiry";
6
+ docLink: string;
7
+ type: boolean | null;
8
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.folderExpiryOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ exports.folderExpiryOption = {
6
+ name: 'Lambda render expiration',
7
+ cliFlag: 'enable-folder-expiry',
8
+ description: () => {
9
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is", ' ', (0, jsx_runtime_1.jsx)("code", { children: "null" }), ", which does not change any lifecycle policies of the S3 bucket. See: ", (0, jsx_runtime_1.jsx)("a", { href: "/docs/lambda/autodelete", children: "Lambda autodelete" }), "."] }));
10
+ },
11
+ ssrName: 'enableFolderExpiry',
12
+ docLink: 'https://www.remotion.dev/docs/lambda/autodelete',
13
+ type: false,
14
+ };
@@ -31,7 +31,11 @@ export type SelectCompositionOptions = {
31
31
  timeoutInMilliseconds?: number;
32
32
  chromiumOptions?: ChromiumOptions;
33
33
  port?: number | null;
34
+ /**
35
+ * @deprecated Use `logLevel` instead.
36
+ */
34
37
  verbose?: boolean;
38
+ logLevel?: LogLevel;
35
39
  offthreadVideoCacheSizeInBytes?: number | null;
36
40
  serveUrl: string;
37
41
  id: string;
@@ -156,8 +156,7 @@ exports.internalSelectComposition = (0, wrap_with_error_handling_1.wrapWithError
156
156
  * @see [Documentation](https://www.remotion.dev/docs/renderer/select-composition)
157
157
  */
158
158
  const selectComposition = async (options) => {
159
- var _a;
160
- const { id, serveUrl, browserExecutable, chromiumOptions, envVariables, inputProps, onBrowserLog, port, puppeteerInstance, timeoutInMilliseconds, verbose, } = options;
159
+ const { id, serveUrl, browserExecutable, chromiumOptions, envVariables, inputProps, onBrowserLog, port, puppeteerInstance, timeoutInMilliseconds, verbose, logLevel, offthreadVideoCacheSizeInBytes, } = options;
161
160
  const data = await (0, exports.internalSelectComposition)({
162
161
  id,
163
162
  serveUrl,
@@ -173,10 +172,10 @@ const selectComposition = async (options) => {
173
172
  port: port !== null && port !== void 0 ? port : null,
174
173
  puppeteerInstance,
175
174
  timeoutInMilliseconds: timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : TimeoutSettings_1.DEFAULT_TIMEOUT,
176
- logLevel: verbose ? 'verbose' : 'info',
175
+ logLevel: (logLevel !== null && logLevel !== void 0 ? logLevel : verbose) ? 'verbose' : 'info',
177
176
  indent: false,
178
177
  server: undefined,
179
- offthreadVideoCacheSizeInBytes: (_a = options.offthreadVideoCacheSizeInBytes) !== null && _a !== void 0 ? _a : null,
178
+ offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes !== null && offthreadVideoCacheSizeInBytes !== void 0 ? offthreadVideoCacheSizeInBytes : null,
180
179
  });
181
180
  return data.metadata;
182
181
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "4.0.31",
3
+ "version": "4.0.33",
4
4
  "description": "Renderer for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "extract-zip": "2.0.1",
19
19
  "source-map": "^0.8.0-beta.0",
20
20
  "ws": "8.7.0",
21
- "remotion": "4.0.31"
21
+ "remotion": "4.0.33"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=16.8.0",
@@ -40,13 +40,13 @@
40
40
  "vitest": "0.31.1"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@remotion/compositor-darwin-arm64": "4.0.31",
44
- "@remotion/compositor-darwin-x64": "4.0.31",
45
- "@remotion/compositor-linux-arm64-gnu": "4.0.31",
46
- "@remotion/compositor-linux-x64-gnu": "4.0.31",
47
- "@remotion/compositor-linux-arm64-musl": "4.0.31",
48
- "@remotion/compositor-linux-x64-musl": "4.0.31",
49
- "@remotion/compositor-win32-x64-msvc": "4.0.31"
43
+ "@remotion/compositor-darwin-arm64": "4.0.33",
44
+ "@remotion/compositor-darwin-x64": "4.0.33",
45
+ "@remotion/compositor-linux-arm64-gnu": "4.0.33",
46
+ "@remotion/compositor-linux-arm64-musl": "4.0.33",
47
+ "@remotion/compositor-linux-x64-gnu": "4.0.33",
48
+ "@remotion/compositor-linux-x64-musl": "4.0.33",
49
+ "@remotion/compositor-win32-x64-msvc": "4.0.33"
50
50
  },
51
51
  "keywords": [
52
52
  "remotion",
@@ -1,7 +0,0 @@
1
- import type { Codec } from './codec';
2
- export declare const x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
3
- export type x264Preset = typeof x264PresetOptions[number];
4
- export declare const validateSelectedCodecAndPresetCombination: ({ codec, x264Preset, }: {
5
- codec: Codec;
6
- x264Preset: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | undefined;
7
- }) => void;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateSelectedCodecAndPresetCombination = exports.x264PresetOptions = void 0;
4
- exports.x264PresetOptions = [
5
- 'ultrafast',
6
- 'superfast',
7
- 'veryfast',
8
- 'faster',
9
- 'fast',
10
- 'medium',
11
- 'slow',
12
- 'slower',
13
- 'veryslow',
14
- 'placebo',
15
- ];
16
- const validateSelectedCodecAndPresetCombination = ({ codec, x264Preset, }) => {
17
- if (typeof x264Preset !== 'undefined' && codec !== 'h264') {
18
- throw new TypeError(`You have set a Preset profile but the codec is "${codec}". Set the codec to "h264" or remove the Preset profile.`);
19
- }
20
- if (x264Preset !== undefined &&
21
- !exports.x264PresetOptions.includes(x264Preset)) {
22
- throw new TypeError(`The Preset profile "${x264Preset}" is not valid. Valid options are ${exports.x264PresetOptions
23
- .map((p) => `"${p}"`)
24
- .join(', ')}`);
25
- }
26
- };
27
- exports.validateSelectedCodecAndPresetCombination = validateSelectedCodecAndPresetCombination;