@remotion/renderer 4.0.267 → 4.0.269

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.
@@ -104,6 +104,7 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
104
104
  logLevel,
105
105
  indent,
106
106
  pageIndex: 0,
107
+ onBrowserLog,
107
108
  });
108
109
  await page.setViewport({
109
110
  width: composition.width,
@@ -119,16 +120,8 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
119
120
  onError: errorCallback,
120
121
  frame: null,
121
122
  });
122
- const logCallback = (log) => {
123
- onBrowserLog === null || onBrowserLog === void 0 ? void 0 : onBrowserLog({
124
- stackTrace: log.stackTrace(),
125
- text: log.text,
126
- type: log.type,
127
- });
128
- };
129
123
  const cleanup = async () => {
130
124
  cleanUpJSException();
131
- page.off('console', logCallback);
132
125
  if (puppeteerInstance) {
133
126
  await page.close();
134
127
  }
@@ -141,9 +134,6 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
141
134
  cancelSignal === null || cancelSignal === void 0 ? void 0 : cancelSignal(() => {
142
135
  cleanup();
143
136
  });
144
- if (onBrowserLog) {
145
- page.on('console', logCallback);
146
- }
147
137
  await (0, set_props_and_env_1.setPropsAndEnv)({
148
138
  serializedInputPropsWithCustomSchema,
149
139
  envVariables,
@@ -161,7 +151,7 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
161
151
  });
162
152
  await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
163
153
  // eslint-disable-next-line max-params
164
- pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec) => {
154
+ pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName) => {
165
155
  window.remotion_setBundleMode({
166
156
  type: 'composition',
167
157
  compositionName: id,
@@ -171,6 +161,7 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
171
161
  compositionHeight: height,
172
162
  compositionWidth: width,
173
163
  compositionDefaultCodec: defaultCodec,
164
+ compositionDefaultOutName: defaultOutName,
174
165
  });
175
166
  },
176
167
  args: [
@@ -181,6 +172,7 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
181
172
  composition.height,
182
173
  composition.width,
183
174
  composition.defaultCodec,
175
+ composition.defaultOutName,
184
176
  ],
185
177
  frame: null,
186
178
  page,
@@ -14,16 +14,7 @@ const seek_to_frame_1 = require("./seek-to-frame");
14
14
  const set_props_and_env_1 = require("./set-props-and-env");
15
15
  const validate_puppeteer_timeout_1 = require("./validate-puppeteer-timeout");
16
16
  const wrap_with_error_handling_1 = require("./wrap-with-error-handling");
17
- const innerSelectComposition = async ({ page, onBrowserLog, serializedInputPropsWithCustomSchema, envVariables, serveUrl, timeoutInMilliseconds, port, id, indent, logLevel, onServeUrlVisited, }) => {
18
- if (onBrowserLog) {
19
- page.on('console', (log) => {
20
- onBrowserLog({
21
- stackTrace: log.stackTrace(),
22
- text: log.text,
23
- type: log.type,
24
- });
25
- });
26
- }
17
+ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSchema, envVariables, serveUrl, timeoutInMilliseconds, port, id, indent, logLevel, onServeUrlVisited, }) => {
27
18
  (0, validate_puppeteer_timeout_1.validatePuppeteerTimeout)(timeoutInMilliseconds);
28
19
  await (0, set_props_and_env_1.setPropsAndEnv)({
29
20
  serializedInputPropsWithCustomSchema,
@@ -79,7 +70,7 @@ const innerSelectComposition = async ({ page, onBrowserLog, serializedInputProps
79
70
  logLevel,
80
71
  }, `calculateMetadata() took ${Date.now() - time}ms`);
81
72
  const res = result;
82
- const { width, durationInFrames, fps, height, defaultCodec } = res;
73
+ const { width, durationInFrames, fps, height, defaultCodec, defaultOutName } = res;
83
74
  return {
84
75
  metadata: {
85
76
  id,
@@ -90,6 +81,7 @@ const innerSelectComposition = async ({ page, onBrowserLog, serializedInputProps
90
81
  props: no_react_1.NoReactInternals.deserializeJSONWithCustomFields(res.serializedResolvedPropsWithCustomSchema),
91
82
  defaultProps: no_react_1.NoReactInternals.deserializeJSONWithCustomFields(res.serializedDefaultPropsWithCustomSchema),
92
83
  defaultCodec,
84
+ defaultOutName,
93
85
  },
94
86
  propsSize: size,
95
87
  };
@@ -108,6 +100,7 @@ const internalSelectCompositionRaw = async (options) => {
108
100
  onBrowserDownload,
109
101
  chromeMode,
110
102
  pageIndex: 0,
103
+ onBrowserLog,
111
104
  }),
112
105
  (0, prepare_server_1.makeOrReuseServer)(options.server, {
113
106
  webpackConfigOrServeUrl: serveUrlOrWebpackUrl,
@@ -144,7 +137,6 @@ const internalSelectCompositionRaw = async (options) => {
144
137
  envVariables,
145
138
  id,
146
139
  serializedInputPropsWithCustomSchema,
147
- onBrowserLog,
148
140
  timeoutInMilliseconds,
149
141
  logLevel,
150
142
  indent,
package/dist/test-gpu.js CHANGED
@@ -14,6 +14,7 @@ const getChromiumGpuInformation = async ({ browserExecutable, indent, logLevel,
14
14
  onBrowserDownload,
15
15
  chromeMode,
16
16
  pageIndex: 0,
17
+ onBrowserLog: null,
17
18
  });
18
19
  await page.goto({ url: 'chrome://gpu', timeout: 12000 });
19
20
  const { value } = await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
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.267",
6
+ "version": "4.0.269",
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": "4.0.267",
22
- "@remotion/streaming": "4.0.267"
21
+ "remotion": "4.0.269",
22
+ "@remotion/streaming": "4.0.269"
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.19.0",
36
- "@remotion/example-videos": "4.0.267",
37
- "@remotion/eslint-config-internal": "4.0.267"
36
+ "@remotion/example-videos": "4.0.269",
37
+ "@remotion/eslint-config-internal": "4.0.269"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@remotion/compositor-darwin-x64": "4.0.267",
41
- "@remotion/compositor-linux-arm64-gnu": "4.0.267",
42
- "@remotion/compositor-darwin-arm64": "4.0.267",
43
- "@remotion/compositor-linux-arm64-musl": "4.0.267",
44
- "@remotion/compositor-linux-x64-musl": "4.0.267",
45
- "@remotion/compositor-linux-x64-gnu": "4.0.267",
46
- "@remotion/compositor-win32-x64-msvc": "4.0.267"
40
+ "@remotion/compositor-darwin-x64": "4.0.269",
41
+ "@remotion/compositor-linux-arm64-gnu": "4.0.269",
42
+ "@remotion/compositor-linux-arm64-musl": "4.0.269",
43
+ "@remotion/compositor-linux-x64-gnu": "4.0.269",
44
+ "@remotion/compositor-linux-x64-musl": "4.0.269",
45
+ "@remotion/compositor-win32-x64-msvc": "4.0.269",
46
+ "@remotion/compositor-darwin-arm64": "4.0.269"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",
@@ -56,10 +56,50 @@
56
56
  "access": "public"
57
57
  },
58
58
  "homepage": "https://www.remotion.dev/docs/renderer",
59
+ "exports": {
60
+ "./package.json": "./package.json",
61
+ ".": {
62
+ "types": "./dist/index.d.ts",
63
+ "require": "./dist/index.js",
64
+ "module": "./dist/esm/index.mjs",
65
+ "import": "./dist/esm/index.mjs"
66
+ },
67
+ "./client": {
68
+ "types": "./dist/client.d.ts",
69
+ "require": "./dist/client.js",
70
+ "module": "./dist/esm/client.mjs",
71
+ "import": "./dist/esm/client.mjs"
72
+ },
73
+ "./pure": {
74
+ "types": "./dist/pure.d.ts",
75
+ "require": "./dist/pure.js",
76
+ "module": "./dist/esm/pure.mjs",
77
+ "import": "./dist/esm/pure.mjs"
78
+ },
79
+ "./error-handling": {
80
+ "types": "./dist/error-handling.d.ts",
81
+ "require": "./dist/error-handling.js",
82
+ "module": "./dist/esm/error-handling.mjs",
83
+ "import": "./dist/esm/error-handling.mjs"
84
+ }
85
+ },
86
+ "typesVersions": {
87
+ ">=1.0": {
88
+ "client": [
89
+ "dist/client.d.ts"
90
+ ],
91
+ "pure": [
92
+ "dist/pure.d.ts"
93
+ ],
94
+ "error-handling": [
95
+ "dist/error-handling.d.ts"
96
+ ]
97
+ }
98
+ },
59
99
  "scripts": {
60
100
  "formatting": "prettier src --check",
61
101
  "lint": "eslint src",
62
102
  "test": "bun test src",
63
- "make": "tsc -d"
103
+ "make": "tsc -d && bun --env-file=../.env.bundle bundle.ts"
64
104
  }
65
105
  }