@remotion/renderer 4.0.252 → 4.0.253

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
@@ -851,6 +851,21 @@ export declare const BrowserSafeApis: {
851
851
  setConfig: (newChromeMode: import("./options/chrome-mode").ChromeMode) => void;
852
852
  type: import("./options/chrome-mode").ChromeMode;
853
853
  };
854
+ apiKeyOption: {
855
+ name: string;
856
+ cliFlag: "api-key";
857
+ description: () => import("react/jsx-runtime").JSX.Element;
858
+ ssrName: "apiKey";
859
+ docLink: string;
860
+ type: string | null;
861
+ getValue: ({ commandLine }: {
862
+ commandLine: Record<string, unknown>;
863
+ }) => {
864
+ source: string;
865
+ value: string | null;
866
+ };
867
+ setConfig: (value: string | null) => void;
868
+ };
854
869
  };
855
870
  validColorSpaces: readonly ["default", "bt709", "bt2020-ncl"];
856
871
  optionsMap: {
@@ -1862,6 +1877,21 @@ export declare const BrowserSafeApis: {
1862
1877
  };
1863
1878
  setConfig: (value: number) => void;
1864
1879
  };
1880
+ readonly apiKey: {
1881
+ name: string;
1882
+ cliFlag: "api-key";
1883
+ description: () => import("react/jsx-runtime").JSX.Element;
1884
+ ssrName: "apiKey";
1885
+ docLink: string;
1886
+ type: string | null;
1887
+ getValue: ({ commandLine }: {
1888
+ commandLine: Record<string, unknown>;
1889
+ }) => {
1890
+ source: string;
1891
+ value: string | null;
1892
+ };
1893
+ setConfig: (value: string | null) => void;
1894
+ };
1865
1895
  };
1866
1896
  readonly renderStillOnLambda: {
1867
1897
  readonly offthreadVideoCacheSizeInBytes: {
@@ -1960,6 +1990,21 @@ export declare const BrowserSafeApis: {
1960
1990
  };
1961
1991
  setConfig: (value: number) => void;
1962
1992
  };
1993
+ readonly apiKey: {
1994
+ name: string;
1995
+ cliFlag: "api-key";
1996
+ description: () => import("react/jsx-runtime").JSX.Element;
1997
+ ssrName: "apiKey";
1998
+ docLink: string;
1999
+ type: string | null;
2000
+ getValue: ({ commandLine }: {
2001
+ commandLine: Record<string, unknown>;
2002
+ }) => {
2003
+ source: string;
2004
+ value: string | null;
2005
+ };
2006
+ setConfig: (value: string | null) => void;
2007
+ };
1963
2008
  };
1964
2009
  readonly getCompositionsOnLambda: {
1965
2010
  readonly offthreadVideoCacheSizeInBytes: {
@@ -0,0 +1,15 @@
1
+ export declare const apiKeyOption: {
2
+ name: string;
3
+ cliFlag: "api-key";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "apiKey";
6
+ docLink: string;
7
+ type: string | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ source: string;
12
+ value: string | null;
13
+ };
14
+ setConfig: (value: string | null) => void;
15
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.apiKeyOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ let currentApiKey = null;
6
+ const cliFlag = 'api-key';
7
+ exports.apiKeyOption = {
8
+ name: 'API key',
9
+ cliFlag,
10
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["API key for sending a usage event using ", (0, jsx_runtime_1.jsx)("code", { children: "@remotion/licensing" }), "."] })),
11
+ ssrName: 'apiKey',
12
+ docLink: 'https://www.remotion.dev/docs/licensing',
13
+ type: null,
14
+ getValue: ({ commandLine }) => {
15
+ if (commandLine[cliFlag] !== undefined) {
16
+ return {
17
+ source: 'cli',
18
+ value: commandLine[cliFlag],
19
+ };
20
+ }
21
+ return {
22
+ source: 'default',
23
+ value: currentApiKey,
24
+ };
25
+ },
26
+ setConfig: (value) => {
27
+ currentApiKey = value;
28
+ },
29
+ };
@@ -628,6 +628,21 @@ export declare const allOptions: {
628
628
  setConfig: (newChromeMode: import("./chrome-mode").ChromeMode) => void;
629
629
  type: import("./chrome-mode").ChromeMode;
630
630
  };
631
+ apiKeyOption: {
632
+ name: string;
633
+ cliFlag: "api-key";
634
+ description: () => import("react/jsx-runtime").JSX.Element;
635
+ ssrName: "apiKey";
636
+ docLink: string;
637
+ type: string | null;
638
+ getValue: ({ commandLine }: {
639
+ commandLine: Record<string, unknown>;
640
+ }) => {
641
+ source: string;
642
+ value: string | null;
643
+ };
644
+ setConfig: (value: string | null) => void;
645
+ };
631
646
  };
632
647
  export type AvailableOptions = keyof typeof allOptions;
633
648
  export type TypeOfOption<Type> = Type extends AnyRemotionOption<infer X> ? X : never;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.allOptions = void 0;
4
+ const api_key_1 = require("./api-key");
4
5
  const audio_bitrate_1 = require("./audio-bitrate");
5
6
  const audio_codec_1 = require("./audio-codec");
6
7
  const beep_on_finish_1 = require("./beep-on-finish");
@@ -80,4 +81,5 @@ exports.allOptions = {
80
81
  metadataOption: metadata_1.metadataOption,
81
82
  hardwareAccelerationOption: hardware_acceleration_1.hardwareAccelerationOption,
82
83
  chromeModeOption: chrome_mode_1.chromeModeOption,
84
+ apiKeyOption: api_key_1.apiKeyOption,
83
85
  };
@@ -1007,6 +1007,21 @@ export declare const optionsMap: {
1007
1007
  };
1008
1008
  setConfig: (value: number) => void;
1009
1009
  };
1010
+ readonly apiKey: {
1011
+ name: string;
1012
+ cliFlag: "api-key";
1013
+ description: () => import("react/jsx-runtime").JSX.Element;
1014
+ ssrName: "apiKey";
1015
+ docLink: string;
1016
+ type: string | null;
1017
+ getValue: ({ commandLine }: {
1018
+ commandLine: Record<string, unknown>;
1019
+ }) => {
1020
+ source: string;
1021
+ value: string | null;
1022
+ };
1023
+ setConfig: (value: string | null) => void;
1024
+ };
1010
1025
  };
1011
1026
  readonly renderStillOnLambda: {
1012
1027
  readonly offthreadVideoCacheSizeInBytes: {
@@ -1105,6 +1120,21 @@ export declare const optionsMap: {
1105
1120
  };
1106
1121
  setConfig: (value: number) => void;
1107
1122
  };
1123
+ readonly apiKey: {
1124
+ name: string;
1125
+ cliFlag: "api-key";
1126
+ description: () => import("react/jsx-runtime").JSX.Element;
1127
+ ssrName: "apiKey";
1128
+ docLink: string;
1129
+ type: string | null;
1130
+ getValue: ({ commandLine }: {
1131
+ commandLine: Record<string, unknown>;
1132
+ }) => {
1133
+ source: string;
1134
+ value: string | null;
1135
+ };
1136
+ setConfig: (value: string | null) => void;
1137
+ };
1108
1138
  };
1109
1139
  readonly getCompositionsOnLambda: {
1110
1140
  readonly offthreadVideoCacheSizeInBytes: {
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.optionsMap = void 0;
4
+ const api_key_1 = require("./api-key");
4
5
  const audio_bitrate_1 = require("./audio-bitrate");
5
6
  const audio_codec_1 = require("./audio-codec");
6
7
  const binaries_directory_1 = require("./binaries-directory");
@@ -105,6 +106,7 @@ exports.optionsMap = {
105
106
  muted: mute_1.mutedOption,
106
107
  logLevel: log_level_1.logLevelOption,
107
108
  timeoutInMilliseconds: timeout_1.delayRenderTimeoutInMillisecondsOption,
109
+ apiKey: api_key_1.apiKeyOption,
108
110
  },
109
111
  renderStillOnLambda: {
110
112
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
@@ -113,6 +115,7 @@ exports.optionsMap = {
113
115
  deleteAfter: delete_after_1.deleteAfterOption,
114
116
  scale: scale_1.scaleOption,
115
117
  timeoutInMilliseconds: timeout_1.delayRenderTimeoutInMillisecondsOption,
118
+ apiKey: api_key_1.apiKeyOption,
116
119
  },
117
120
  getCompositionsOnLambda: {
118
121
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
@@ -11,7 +11,6 @@ The above copyright notice and this permission notice shall be included in all c
11
11
 
12
12
  THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13
13
  */
14
- /* eslint-disable max-depth */
15
14
  const SLASH = 47;
16
15
  const DOT = 46;
17
16
  const assertPath = (path) => {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
4
4
  },
5
5
  "name": "@remotion/renderer",
6
- "version": "4.0.252",
6
+ "version": "4.0.253",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "extract-zip": "2.0.1",
19
19
  "source-map": "^0.8.0-beta.0",
20
20
  "ws": "8.17.1",
21
- "@remotion/streaming": "4.0.252",
22
- "remotion": "4.0.252"
21
+ "remotion": "4.0.253",
22
+ "@remotion/streaming": "4.0.253"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": ">=16.8.0",
@@ -33,17 +33,17 @@
33
33
  "react-dom": "19.0.0",
34
34
  "@types/ws": "8.5.10",
35
35
  "eslint": "9.14.0",
36
- "@remotion/example-videos": "4.0.252",
37
- "@remotion/eslint-config-internal": "4.0.252"
36
+ "@remotion/example-videos": "4.0.253",
37
+ "@remotion/eslint-config-internal": "4.0.253"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@remotion/compositor-linux-arm64-gnu": "4.0.252",
41
- "@remotion/compositor-darwin-arm64": "4.0.252",
42
- "@remotion/compositor-linux-arm64-musl": "4.0.252",
43
- "@remotion/compositor-darwin-x64": "4.0.252",
44
- "@remotion/compositor-linux-x64-gnu": "4.0.252",
45
- "@remotion/compositor-linux-x64-musl": "4.0.252",
46
- "@remotion/compositor-win32-x64-msvc": "4.0.252"
40
+ "@remotion/compositor-darwin-arm64": "4.0.253",
41
+ "@remotion/compositor-darwin-x64": "4.0.253",
42
+ "@remotion/compositor-linux-arm64-gnu": "4.0.253",
43
+ "@remotion/compositor-linux-x64-gnu": "4.0.253",
44
+ "@remotion/compositor-linux-arm64-musl": "4.0.253",
45
+ "@remotion/compositor-linux-x64-musl": "4.0.253",
46
+ "@remotion/compositor-win32-x64-msvc": "4.0.253"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",