@remotion/renderer 3.3.12 → 3.3.13

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,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { OffthreadVideoImageFormat } from 'remotion';
2
3
  import type { DownloadMap } from './assets/download-map';
3
4
  import type { FfmpegExecutable } from './ffmpeg-executable';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { OffthreadVideoImageFormat } from 'remotion';
2
3
  import type { SpecialVCodecForTransparency } from './assets/download-map';
3
4
  import type { FfmpegExecutable } from './ffmpeg-executable';
@@ -7,10 +8,7 @@ export declare const getFrameOfVideoSlow: ({ src, duration, ffmpegExecutable, im
7
8
  duration: number;
8
9
  imageFormat: OffthreadVideoImageFormat;
9
10
  specialVCodecForTransparency: SpecialVCodecForTransparency;
10
- needsResize: [
11
- number,
12
- number
13
- ] | null;
11
+ needsResize: [number, number] | null;
14
12
  offset: number;
15
13
  fps: number | null;
16
14
  remotionRoot: string;
package/dist/index.d.ts CHANGED
@@ -126,7 +126,7 @@ export declare const RenderInternals: {
126
126
  DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
127
127
  isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
128
128
  logLevels: readonly ["verbose", "info", "warn", "error"];
129
- isEqualOrBelowLogLevel: (currentLevel: "verbose" | "error" | "info" | "warn", level: "verbose" | "error" | "info" | "warn") => boolean;
129
+ isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
130
130
  isValidLogLevel: (level: string) => boolean;
131
131
  perf: typeof perf;
132
132
  makeDownloadMap: () => import("./assets/download-map").DownloadMap;
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { OffthreadVideoImageFormat } from 'remotion';
2
3
  import type { DownloadMap, SpecialVCodecForTransparency } from './assets/download-map';
3
4
  import type { FfmpegExecutable } from './ffmpeg-executable';
@@ -3,15 +3,12 @@ import type { Browser as PuppeteerBrowser } from './browser/Browser';
3
3
  import type { Viewport } from './browser/PuppeteerViewport';
4
4
  declare const validRenderers: readonly ["swangle", "angle", "egl", "swiftshader"];
5
5
  declare type OpenGlRenderer = typeof validRenderers[number];
6
- export declare type LambdaChromiumOptions = {
6
+ export declare type ChromiumOptions = {
7
7
  ignoreCertificateErrors?: boolean;
8
8
  disableWebSecurity?: boolean;
9
9
  gl?: OpenGlRenderer | null;
10
10
  headless?: boolean;
11
11
  };
12
- export declare type ChromiumOptions = LambdaChromiumOptions & {
13
- enableExtensions?: boolean;
14
- };
15
12
  export declare const killAllBrowsers: () => Promise<void>;
16
13
  export declare const openBrowser: (browser: Browser, options?: {
17
14
  shouldDumpIo?: boolean;
@@ -28,7 +28,7 @@ const killAllBrowsers = async () => {
28
28
  };
29
29
  exports.killAllBrowsers = killAllBrowsers;
30
30
  const openBrowser = async (browser, options) => {
31
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
31
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
32
32
  if (browser === 'firefox') {
33
33
  throw new TypeError('Firefox supported is not yet turned on. Stay tuned for the future.');
34
34
  }
@@ -51,13 +51,11 @@ const openBrowser = async (browser, options) => {
51
51
  '--disable-component-extensions-with-background-pages',
52
52
  '--disable-default-apps',
53
53
  '--disable-dev-shm-usage',
54
- ((_f = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _f === void 0 ? void 0 : _f.enableExtensions)
55
- ? null
56
- : '--disable-extensions',
57
54
  '--no-proxy-server',
58
55
  "--proxy-server='direct://'",
59
56
  '--proxy-bypass-list=*',
60
57
  '--disable-hang-monitor',
58
+ '--disable-extensions',
61
59
  '--disable-ipc-flooding-protection',
62
60
  '--disable-popup-blocking',
63
61
  '--disable-prompt-on-repost',
@@ -73,7 +71,7 @@ const openBrowser = async (browser, options) => {
73
71
  '--enable-blink-features=IdleDetection',
74
72
  '--export-tagged-pdf',
75
73
  '--intensive-wake-up-throttling-policy=0',
76
- ((_h = (_g = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _g === void 0 ? void 0 : _g.headless) !== null && _h !== void 0 ? _h : true) ? '--headless' : null,
74
+ ((_g = (_f = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _f === void 0 ? void 0 : _f.headless) !== null && _g !== void 0 ? _g : true) ? '--headless' : null,
77
75
  '--no-sandbox',
78
76
  '--disable-setuid-sandbox',
79
77
  ...customGlRenderer,
@@ -94,14 +92,14 @@ const openBrowser = async (browser, options) => {
94
92
  (options === null || options === void 0 ? void 0 : options.forceDeviceScaleFactor)
95
93
  ? `--force-device-scale-factor=${options.forceDeviceScaleFactor}`
96
94
  : null,
97
- ((_j = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _j === void 0 ? void 0 : _j.ignoreCertificateErrors)
95
+ ((_h = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _h === void 0 ? void 0 : _h.ignoreCertificateErrors)
98
96
  ? '--ignore-certificate-errors'
99
97
  : null,
100
- ...(((_k = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _k === void 0 ? void 0 : _k.disableWebSecurity)
98
+ ...(((_j = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _j === void 0 ? void 0 : _j.disableWebSecurity)
101
99
  ? ['--disable-web-security']
102
100
  : []),
103
101
  ].filter(Boolean),
104
- defaultViewport: (_l = options === null || options === void 0 ? void 0 : options.viewport) !== null && _l !== void 0 ? _l : {
102
+ defaultViewport: (_k = options === null || options === void 0 ? void 0 : options.viewport) !== null && _k !== void 0 ? _k : {
105
103
  height: 720,
106
104
  width: 1280,
107
105
  deviceScaleFactor: 1,
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { Page } from './browser/BrowserPage';
2
3
  import type { ImageFormat } from './image-format';
3
4
  export declare const provideScreenshot: ({ page, imageFormat, options, quality, height, width, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { Page } from './browser/BrowserPage';
2
3
  export declare const screenshot: (options: {
3
4
  page: Page;
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { SmallTCompMetadata } from 'remotion';
2
3
  import type { RenderMediaOnDownload } from './assets/download-and-map-assets-to-file';
3
4
  import type { DownloadMap } from './assets/download-map';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { Page } from './browser/BrowserPage';
2
3
  import type { ImageFormat } from './image-format';
3
4
  export declare const screenshotDOMElement: ({ page, imageFormat, quality, opts, height, width, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { Page } from './browser/BrowserPage';
2
3
  import type { StillImageFormat } from './image-format';
3
4
  export declare const screenshotTask: ({ format, height, omitBackground, page, width, path, quality, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { OffthreadVideoImageFormat } from 'remotion';
2
3
  import type { NeedsResize, SpecialVCodecForTransparency } from './assets/download-map';
3
4
  import type { FfmpegExecutable } from './ffmpeg-executable';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "3.3.12",
3
+ "version": "3.3.13",
4
4
  "description": "Renderer for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "execa": "5.1.1",
24
24
  "extract-zip": "2.0.1",
25
- "remotion": "3.3.12",
25
+ "remotion": "3.3.13",
26
26
  "source-map": "^0.8.0-beta.0",
27
27
  "ws": "8.7.0"
28
28
  },
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "0c7c54df00df527cd7e395658324102461883e87"
60
+ "gitHead": "5149292492bbbd27d48935e0aea371251c21588d"
61
61
  }