@remotion/renderer 4.0.316 → 4.0.317

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.
Files changed (2) hide show
  1. package/ensure-browser.mjs +46 -31
  2. package/package.json +12 -12
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
18
18
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
19
19
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
20
20
 
21
- // ../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js
21
+ // ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
22
22
  var require_ms = __commonJS((exports, module) => {
23
23
  var s = 1000;
24
24
  var m = s * 60;
@@ -128,7 +128,7 @@ var require_ms = __commonJS((exports, module) => {
128
128
  }
129
129
  });
130
130
 
131
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js
131
+ // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js
132
132
  var require_common = __commonJS((exports, module) => {
133
133
  function setup(env) {
134
134
  createDebug.debug = createDebug;
@@ -230,50 +230,64 @@ var require_common = __commonJS((exports, module) => {
230
230
  createDebug.namespaces = namespaces;
231
231
  createDebug.names = [];
232
232
  createDebug.skips = [];
233
- let i;
234
- const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
235
- const len = split.length;
236
- for (i = 0;i < len; i++) {
237
- if (!split[i]) {
238
- continue;
233
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
234
+ for (const ns of split) {
235
+ if (ns[0] === "-") {
236
+ createDebug.skips.push(ns.slice(1));
237
+ } else {
238
+ createDebug.names.push(ns);
239
239
  }
240
- namespaces = split[i].replace(/\*/g, ".*?");
241
- if (namespaces[0] === "-") {
242
- createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
240
+ }
241
+ }
242
+ function matchesTemplate(search, template) {
243
+ let searchIndex = 0;
244
+ let templateIndex = 0;
245
+ let starIndex = -1;
246
+ let matchIndex = 0;
247
+ while (searchIndex < search.length) {
248
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
249
+ if (template[templateIndex] === "*") {
250
+ starIndex = templateIndex;
251
+ matchIndex = searchIndex;
252
+ templateIndex++;
253
+ } else {
254
+ searchIndex++;
255
+ templateIndex++;
256
+ }
257
+ } else if (starIndex !== -1) {
258
+ templateIndex = starIndex + 1;
259
+ matchIndex++;
260
+ searchIndex = matchIndex;
243
261
  } else {
244
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
262
+ return false;
245
263
  }
246
264
  }
265
+ while (templateIndex < template.length && template[templateIndex] === "*") {
266
+ templateIndex++;
267
+ }
268
+ return templateIndex === template.length;
247
269
  }
248
270
  function disable() {
249
271
  const namespaces = [
250
- ...createDebug.names.map(toNamespace),
251
- ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
272
+ ...createDebug.names,
273
+ ...createDebug.skips.map((namespace) => "-" + namespace)
252
274
  ].join(",");
253
275
  createDebug.enable("");
254
276
  return namespaces;
255
277
  }
256
278
  function enabled(name) {
257
- if (name[name.length - 1] === "*") {
258
- return true;
259
- }
260
- let i;
261
- let len;
262
- for (i = 0, len = createDebug.skips.length;i < len; i++) {
263
- if (createDebug.skips[i].test(name)) {
279
+ for (const skip of createDebug.skips) {
280
+ if (matchesTemplate(name, skip)) {
264
281
  return false;
265
282
  }
266
283
  }
267
- for (i = 0, len = createDebug.names.length;i < len; i++) {
268
- if (createDebug.names[i].test(name)) {
284
+ for (const ns of createDebug.names) {
285
+ if (matchesTemplate(name, ns)) {
269
286
  return true;
270
287
  }
271
288
  }
272
289
  return false;
273
290
  }
274
- function toNamespace(regexp) {
275
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
276
- }
277
291
  function coerce(val) {
278
292
  if (val instanceof Error) {
279
293
  return val.stack || val.message;
@@ -289,7 +303,7 @@ var require_common = __commonJS((exports, module) => {
289
303
  module.exports = setup;
290
304
  });
291
305
 
292
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js
306
+ // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js
293
307
  var require_browser = __commonJS((exports, module) => {
294
308
  exports.formatArgs = formatArgs;
295
309
  exports.save = save;
@@ -390,7 +404,8 @@ var require_browser = __commonJS((exports, module) => {
390
404
  if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
391
405
  return false;
392
406
  }
393
- return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
407
+ let m;
408
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
394
409
  }
395
410
  function formatArgs(args) {
396
411
  args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
@@ -557,7 +572,7 @@ var require_supports_color = __commonJS((exports, module) => {
557
572
  };
558
573
  });
559
574
 
560
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js
575
+ // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js
561
576
  var require_node = __commonJS((exports, module) => {
562
577
  var tty = __require("tty");
563
578
  var util = __require("util");
@@ -695,7 +710,7 @@ var require_node = __commonJS((exports, module) => {
695
710
  return new Date().toISOString() + " ";
696
711
  }
697
712
  function log(...args) {
698
- return process.stderr.write(util.format(...args) + `
713
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + `
699
714
  `);
700
715
  }
701
716
  function save(namespaces) {
@@ -728,7 +743,7 @@ var require_node = __commonJS((exports, module) => {
728
743
  };
729
744
  });
730
745
 
731
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js
746
+ // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js
732
747
  var require_src = __commonJS((exports, module) => {
733
748
  if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {
734
749
  module.exports = require_browser();
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.316",
6
+ "version": "4.0.317",
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.316",
22
- "remotion": "4.0.316"
21
+ "remotion": "4.0.317",
22
+ "@remotion/streaming": "4.0.317"
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.316",
37
- "@remotion/eslint-config-internal": "4.0.316"
36
+ "@remotion/example-videos": "4.0.317",
37
+ "@remotion/eslint-config-internal": "4.0.317"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@remotion/compositor-darwin-arm64": "4.0.316",
41
- "@remotion/compositor-darwin-x64": "4.0.316",
42
- "@remotion/compositor-linux-arm64-gnu": "4.0.316",
43
- "@remotion/compositor-linux-x64-gnu": "4.0.316",
44
- "@remotion/compositor-win32-x64-msvc": "4.0.316",
45
- "@remotion/compositor-linux-arm64-musl": "4.0.316",
46
- "@remotion/compositor-linux-x64-musl": "4.0.316"
40
+ "@remotion/compositor-darwin-arm64": "4.0.317",
41
+ "@remotion/compositor-darwin-x64": "4.0.317",
42
+ "@remotion/compositor-linux-arm64-gnu": "4.0.317",
43
+ "@remotion/compositor-linux-x64-gnu": "4.0.317",
44
+ "@remotion/compositor-linux-x64-musl": "4.0.317",
45
+ "@remotion/compositor-win32-x64-msvc": "4.0.317",
46
+ "@remotion/compositor-linux-arm64-musl": "4.0.317"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",