@remotion/renderer 4.0.451 → 4.0.452

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
1
  import type { ChromeMode } from '../options/chrome-mode';
2
- export declare const TESTED_VERSION = "144.0.7559.20";
2
+ export declare const TESTED_VERSION = "149.0.7790.0";
3
3
  export type Platform = 'linux64' | 'linux-arm64' | 'mac-x64' | 'mac-arm64' | 'win64';
4
4
  export declare const isAmazonLinux2023: () => boolean;
5
5
  export declare const canUseRemotionMediaBinaries: () => boolean;
@@ -38,10 +38,10 @@ exports.getChromeDownloadUrl = getChromeDownloadUrl;
38
38
  const fs = __importStar(require("node:fs"));
39
39
  const os = __importStar(require("node:os"));
40
40
  const logger_1 = require("../logger");
41
- exports.TESTED_VERSION = '144.0.7559.20';
41
+ exports.TESTED_VERSION = '149.0.7790.0';
42
42
  // https://github.com/microsoft/playwright/blame/e76ca6cba40c26bf22c19cf37398d2b9da9ed465/packages/playwright-core/browsers.json
43
43
  // packages/playwright-core/browsers.json
44
- const PLAYWRIGHT_VERSION = '1207'; // 144.0.7559.20
44
+ const PLAYWRIGHT_VERSION = '1421'; // 149.0.7790.0
45
45
  const isAmazonLinux2023 = () => {
46
46
  if (os.platform() !== 'linux') {
47
47
  return false;
@@ -109,7 +109,7 @@ function getChromeDownloadUrl({ platform, version, chromeMode, }) {
109
109
  // Amazon Linux 2023 on arm64 needs a special build.
110
110
  // This binary is compatible with older glibc (no 2.35 requirement).
111
111
  if ((0, exports.isAmazonLinux2023)() && chromeMode === 'headless-shell' && !version) {
112
- return 'https://remotion.media/chromium-headless-shell-amazon-linux-arm64-144.0.7559.20.zip';
112
+ return 'https://remotion.media/chromium-headless-shell-amazon-linux-arm64-149.0.7790.0.zip?clear';
113
113
  }
114
114
  if (chromeMode === 'chrome-for-testing') {
115
115
  return `https://playwright.azureedge.net/builds/chromium/${version !== null && version !== void 0 ? version : PLAYWRIGHT_VERSION}/chromium-linux-arm64.zip`;
@@ -119,7 +119,7 @@ function getChromeDownloadUrl({ platform, version, chromeMode, }) {
119
119
  }
120
120
  // Regular arm64 binary requires glibc 2.35+
121
121
  if ((0, exports.canUseRemotionMediaBinaries)()) {
122
- return `https://remotion.media/chromium-headless-shell-linux-arm64-${exports.TESTED_VERSION}.zip?clearcache`;
122
+ return `https://remotion.media/chromium-headless-shell-linux-arm64-${exports.TESTED_VERSION}.zip?clear`;
123
123
  }
124
124
  // Fall back to Playwright for older glibc (non-Amazon Linux systems)
125
125
  return `https://playwright.azureedge.net/builds/chromium/${PLAYWRIGHT_VERSION}/chromium-headless-shell-linux-arm64.zip`;
@@ -128,11 +128,11 @@ function getChromeDownloadUrl({ platform, version, chromeMode, }) {
128
128
  // Amazon Linux 2023 needs a special build.
129
129
  // This binary is compatible with older glibc (no 2.35 requirement).
130
130
  if ((0, exports.isAmazonLinux2023)() && platform === 'linux64' && !version) {
131
- return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-144.0.7559.20.zip`;
131
+ return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-149.0.7790.0.zip?clear`;
132
132
  }
133
133
  if (platform === 'linux64' && version === null) {
134
134
  if ((0, exports.canUseRemotionMediaBinaries)()) {
135
- return `https://remotion.media/chromium-headless-shell-linux-x64-${exports.TESTED_VERSION}.zip?clearcache`;
135
+ return `https://remotion.media/chromium-headless-shell-linux-x64-${exports.TESTED_VERSION}.zip?clear`;
136
136
  }
137
137
  // Fall back to Google's CDN for older glibc
138
138
  return `https://storage.googleapis.com/chrome-for-testing-public/${exports.TESTED_VERSION}/${platform}/chrome-headless-shell-${platform}.zip`;
@@ -2739,7 +2739,7 @@ var audioLatencyHintOption = {
2739
2739
  }),
2740
2740
  ssrName: "audioLatencyHint",
2741
2741
  docLink: "https://www.remotion.dev/docs/renderer/render-media",
2742
- type: "interactive",
2742
+ type: "playback",
2743
2743
  getValue: ({ commandLine }) => {
2744
2744
  const val = commandLine[cliFlag47];
2745
2745
  if (typeof val !== "undefined") {
@@ -4795,8 +4795,8 @@ import extractZip from "extract-zip";
4795
4795
  // src/browser/get-chrome-download-url.ts
4796
4796
  import * as fs5 from "node:fs";
4797
4797
  import * as os3 from "node:os";
4798
- var TESTED_VERSION = "144.0.7559.20";
4799
- var PLAYWRIGHT_VERSION = "1207";
4798
+ var TESTED_VERSION = "149.0.7790.0";
4799
+ var PLAYWRIGHT_VERSION = "1421";
4800
4800
  var isAmazonLinux2023 = () => {
4801
4801
  if (os3.platform() !== "linux") {
4802
4802
  return false;
@@ -4859,7 +4859,7 @@ function getChromeDownloadUrl({
4859
4859
  }) {
4860
4860
  if (platform2 === "linux-arm64") {
4861
4861
  if (isAmazonLinux2023() && chromeMode === "headless-shell" && !version) {
4862
- return "https://remotion.media/chromium-headless-shell-amazon-linux-arm64-144.0.7559.20.zip";
4862
+ return "https://remotion.media/chromium-headless-shell-amazon-linux-arm64-149.0.7790.0.zip?clear";
4863
4863
  }
4864
4864
  if (chromeMode === "chrome-for-testing") {
4865
4865
  return `https://playwright.azureedge.net/builds/chromium/${version ?? PLAYWRIGHT_VERSION}/chromium-linux-arm64.zip`;
@@ -4868,17 +4868,17 @@ function getChromeDownloadUrl({
4868
4868
  return `https://playwright.azureedge.net/builds/chromium/${version}/chromium-headless-shell-linux-arm64.zip`;
4869
4869
  }
4870
4870
  if (canUseRemotionMediaBinaries()) {
4871
- return `https://remotion.media/chromium-headless-shell-linux-arm64-${TESTED_VERSION}.zip?clearcache`;
4871
+ return `https://remotion.media/chromium-headless-shell-linux-arm64-${TESTED_VERSION}.zip?clear`;
4872
4872
  }
4873
4873
  return `https://playwright.azureedge.net/builds/chromium/${PLAYWRIGHT_VERSION}/chromium-headless-shell-linux-arm64.zip`;
4874
4874
  }
4875
4875
  if (chromeMode === "headless-shell") {
4876
4876
  if (isAmazonLinux2023() && platform2 === "linux64" && !version) {
4877
- return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-144.0.7559.20.zip`;
4877
+ return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-149.0.7790.0.zip?clear`;
4878
4878
  }
4879
4879
  if (platform2 === "linux64" && version === null) {
4880
4880
  if (canUseRemotionMediaBinaries()) {
4881
- return `https://remotion.media/chromium-headless-shell-linux-x64-${TESTED_VERSION}.zip?clearcache`;
4881
+ return `https://remotion.media/chromium-headless-shell-linux-x64-${TESTED_VERSION}.zip?clear`;
4882
4882
  }
4883
4883
  return `https://storage.googleapis.com/chrome-for-testing-public/${TESTED_VERSION}/${platform2}/chrome-headless-shell-${platform2}.zip`;
4884
4884
  }
@@ -5403,7 +5403,11 @@ var validateOpenGlRenderer = (option) => {
5403
5403
  // src/open-browser.ts
5404
5404
  var featuresToEnable = (option) => {
5405
5405
  const renderer = option ?? DEFAULT_OPENGL_RENDERER;
5406
- const enableAlways = ["NetworkService", "NetworkServiceInProcess"];
5406
+ const enableAlways = [
5407
+ "NetworkService",
5408
+ "NetworkServiceInProcess",
5409
+ "CanvasDrawElement"
5410
+ ];
5407
5411
  if (renderer === "vulkan") {
5408
5412
  return [...enableAlways, "Vulkan", "UseSkiaRenderer"];
5409
5413
  }
@@ -16,7 +16,11 @@ const logger_1 = require("./logger");
16
16
  const gl_1 = require("./options/gl");
17
17
  const featuresToEnable = (option) => {
18
18
  const renderer = option !== null && option !== void 0 ? option : gl_1.DEFAULT_OPENGL_RENDERER;
19
- const enableAlways = ['NetworkService', 'NetworkServiceInProcess'];
19
+ const enableAlways = [
20
+ 'NetworkService',
21
+ 'NetworkServiceInProcess',
22
+ 'CanvasDrawElement',
23
+ ];
20
24
  if (renderer === 'vulkan') {
21
25
  return [...enableAlways, 'Vulkan', 'UseSkiaRenderer'];
22
26
  }
@@ -19,7 +19,7 @@ exports.audioLatencyHintOption = {
19
19
  ] })),
20
20
  ssrName: 'audioLatencyHint',
21
21
  docLink: 'https://www.remotion.dev/docs/renderer/render-media',
22
- type: 'interactive',
22
+ type: 'playback',
23
23
  getValue: ({ commandLine }) => {
24
24
  const val = commandLine[cliFlag];
25
25
  if (typeof val !== 'undefined') {
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.451",
6
+ "version": "4.0.452",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
@@ -24,11 +24,11 @@
24
24
  "dependencies": {
25
25
  "execa": "5.1.1",
26
26
  "extract-zip": "2.0.1",
27
- "remotion": "4.0.451",
28
- "@remotion/streaming": "4.0.451",
27
+ "remotion": "4.0.452",
28
+ "@remotion/streaming": "4.0.452",
29
29
  "source-map": "^0.8.0-beta.0",
30
30
  "ws": "8.17.1",
31
- "@remotion/licensing": "4.0.451"
31
+ "@remotion/licensing": "4.0.452"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=16.8.0",
@@ -42,19 +42,19 @@
42
42
  "react-dom": "19.2.3",
43
43
  "@typescript/native-preview": "7.0.0-dev.20260217.1",
44
44
  "@types/ws": "8.5.10",
45
- "@remotion/example-videos": "4.0.451",
46
- "@remotion/eslint-config-internal": "4.0.451",
45
+ "@remotion/example-videos": "4.0.452",
46
+ "@remotion/eslint-config-internal": "4.0.452",
47
47
  "eslint": "9.19.0",
48
48
  "@types/node": "20.12.14"
49
49
  },
50
50
  "optionalDependencies": {
51
- "@remotion/compositor-darwin-arm64": "4.0.451",
52
- "@remotion/compositor-darwin-x64": "4.0.451",
53
- "@remotion/compositor-linux-arm64-gnu": "4.0.451",
54
- "@remotion/compositor-linux-arm64-musl": "4.0.451",
55
- "@remotion/compositor-linux-x64-gnu": "4.0.451",
56
- "@remotion/compositor-linux-x64-musl": "4.0.451",
57
- "@remotion/compositor-win32-x64-msvc": "4.0.451"
51
+ "@remotion/compositor-darwin-arm64": "4.0.452",
52
+ "@remotion/compositor-darwin-x64": "4.0.452",
53
+ "@remotion/compositor-linux-arm64-gnu": "4.0.452",
54
+ "@remotion/compositor-linux-arm64-musl": "4.0.452",
55
+ "@remotion/compositor-linux-x64-gnu": "4.0.452",
56
+ "@remotion/compositor-linux-x64-musl": "4.0.452",
57
+ "@remotion/compositor-win32-x64-msvc": "4.0.452"
58
58
  },
59
59
  "keywords": [
60
60
  "remotion",
@@ -1,16 +0,0 @@
1
- export declare const browserDownloadDirOption: {
2
- name: string;
3
- cliFlag: "browser-download-dir";
4
- description: () => import("react/jsx-runtime").JSX.Element;
5
- ssrName: "browserDownloadDir";
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
- id: "browser-download-dir";
16
- };
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.browserDownloadDirOption = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const cliFlag = 'browser-download-dir';
6
- let currentDirectory = null;
7
- exports.browserDownloadDirOption = {
8
- name: 'Browser Download Directory',
9
- cliFlag,
10
- description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify the directory where the browser should be downloaded to when calling ",
11
- jsx_runtime_1.jsx("code", { children: "npx remotion browser ensure" }),
12
- ". By default, Remotion downloads the browser into ",
13
- jsx_runtime_1.jsx("code", { children: "node_modules/.remotion" }),
14
- " inside the nearest project root. Use this option to override the default download location. Pass ",
15
- jsx_runtime_1.jsx("code", { children: "null" }),
16
- " to use the default location."] })),
17
- ssrName: 'browserDownloadDir',
18
- docLink: 'https://www.remotion.dev/docs/config#setbrowserdownloaddir',
19
- type: '',
20
- getValue: ({ commandLine }) => {
21
- if (commandLine[cliFlag] !== undefined) {
22
- return {
23
- source: 'cli',
24
- value: commandLine[cliFlag],
25
- };
26
- }
27
- if (currentDirectory !== null) {
28
- return {
29
- source: 'config',
30
- value: currentDirectory,
31
- };
32
- }
33
- return {
34
- source: 'default',
35
- value: null,
36
- };
37
- },
38
- setConfig: (value) => {
39
- currentDirectory = value;
40
- },
41
- id: cliFlag,
42
- };