@remotion/vercel 4.0.534 → 4.0.536

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/dist/esm/index.mjs +131 -65
  2. package/package.json +5 -5
@@ -189,6 +189,7 @@ var evaluateSourcePropStatuses = (props, config) => {
189
189
  evaluatedProps.set(props, cached);
190
190
  return result;
191
191
  };
192
+ var DEFAULT_SEQUENCE_ACTIVITY_LIMIT = Infinity;
192
193
  var NEWTON_ITERATIONS = 4;
193
194
  var NEWTON_MIN_SLOPE = 0.001;
194
195
  var SUBDIVISION_PRECISION = 0.0000001;
@@ -370,7 +371,7 @@ function advance({
370
371
  if (config.damping <= 0) {
371
372
  throw new Error("Spring damping must be greater than 0, otherwise the spring() animation will never end, causing an infinite loop.");
372
373
  }
373
- const c2 = config.damping;
374
+ const c = config.damping;
374
375
  const m = config.mass;
375
376
  const k = config.stiffness;
376
377
  const cacheKey = [
@@ -378,7 +379,7 @@ function advance({
378
379
  lastTimestamp,
379
380
  current,
380
381
  velocity,
381
- c2,
382
+ c,
382
383
  m,
383
384
  k,
384
385
  now
@@ -388,7 +389,7 @@ function advance({
388
389
  }
389
390
  const v0 = -velocity;
390
391
  const x0 = toValue - current;
391
- const zeta = c2 / (2 * Math.sqrt(k * m));
392
+ const zeta = c / (2 * Math.sqrt(k * m));
392
393
  const omega0 = Math.sqrt(k / m);
393
394
  const omega1 = omega0 * Math.sqrt(1 - zeta ** 2);
394
395
  const t = deltaTime / 1000;
@@ -951,7 +952,8 @@ var parseStringInterpolationValue = (output, outputType) => {
951
952
  }
952
953
  const parts = output.trim().split(/\\s+/);
953
954
  if (parts.length < 1 || parts.length > 3 || parts[0] === "") {
954
- throw new TypeError(\`String outputRange values must contain 1 to 3 components, but got "\${output}"\`);
955
+ const ErrorType = outputType === undefined && parts.some((part) => !cssNumberRegex.test(part) && !transformOriginKeywords.has(part.toLowerCase())) ? UnsupportedStringInterpolationValueError : TypeError;
956
+ throw new ErrorType(\`String outputRange values must contain 1 to 3 components, but got "\${output}"\`);
955
957
  }
956
958
  if (parts.some((part) => transformOriginKeywords.has(part.toLowerCase()))) {
957
959
  if (outputType !== undefined) {
@@ -1518,6 +1520,14 @@ function interpolate(input, inputRange, outputRange, options) {
1518
1520
  checkInfiniteRange("outputRange", outputRange);
1519
1521
  return interpolateNumber({ input, inputRange, outputRange, options });
1520
1522
  }
1523
+ var ENABLE_V5_BREAKING_CHANGES = false;
1524
+ var DEFAULT_PREMOUNT_IN_SECONDS = ENABLE_V5_BREAKING_CHANGES ? 2 : 0;
1525
+ var DEFAULT_STUDIO_PREMOUNT_IN_SECONDS = 2;
1526
+ var validateDefaultPremountInSeconds = (value) => {
1527
+ if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
1528
+ throw new TypeError(\`defaultPremountInSeconds must be a finite, non-negative number, but got \${String(value)}.\`);
1529
+ }
1530
+ };
1521
1531
  var DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
1522
1532
  var DELAY_RENDER_RETRIES_LEFT = "Retries left: ";
1523
1533
  var DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.";
@@ -1793,7 +1803,7 @@ var svgPaintSchema = {
1793
1803
  var premountSchema = {
1794
1804
  premountFor: {
1795
1805
  type: "number",
1796
- default: 0,
1806
+ default: undefined,
1797
1807
  description: "Premount For",
1798
1808
  min: 0,
1799
1809
  step: 1,
@@ -1894,6 +1904,26 @@ var trimBeforeField = {
1894
1904
  step: 1,
1895
1905
  hiddenFromList: true
1896
1906
  };
1907
+ var sequenceTimingSchema = {
1908
+ from: {
1909
+ ...fromField,
1910
+ description: "From",
1911
+ hiddenFromList: false,
1912
+ keyframable: false
1913
+ },
1914
+ durationInFrames: {
1915
+ ...durationInFramesField,
1916
+ description: "Duration",
1917
+ hiddenFromList: false,
1918
+ keyframable: false
1919
+ },
1920
+ trimBefore: {
1921
+ ...trimBeforeField,
1922
+ description: "Trim before",
1923
+ hiddenFromList: false,
1924
+ keyframable: false
1925
+ }
1926
+ };
1897
1927
  var freezeField = {
1898
1928
  type: "number",
1899
1929
  default: null,
@@ -2017,8 +2047,8 @@ function hslToRgb(h, s, l) {
2017
2047
  const p = 2 * l - q;
2018
2048
  const r = hue2rgb(p, q, h + 1 / 3);
2019
2049
  const g = hue2rgb(p, q, h);
2020
- const b2 = hue2rgb(p, q, h - 1 / 3);
2021
- return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b2 * 255) << 8;
2050
+ const b = hue2rgb(p, q, h - 1 / 3);
2051
+ return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
2022
2052
  }
2023
2053
  function parse255(str) {
2024
2054
  const int = Number.parseInt(str, 10);
@@ -2082,25 +2112,25 @@ function parseModernAlpha(str) {
2082
2112
  }
2083
2113
  return Math.max(0, Math.min(1, Number.parseFloat(str)));
2084
2114
  }
2085
- function linearToSrgb(c2) {
2086
- if (c2 <= 0.0031308)
2087
- return 12.92 * c2;
2088
- return 1.055 * c2 ** (1 / 2.4) - 0.055;
2115
+ function linearToSrgb(c) {
2116
+ if (c <= 0.0031308)
2117
+ return 12.92 * c;
2118
+ return 1.055 * c ** (1 / 2.4) - 0.055;
2089
2119
  }
2090
2120
  function clamp01(v) {
2091
2121
  return Math.max(0, Math.min(1, v));
2092
2122
  }
2093
- function rgbFloatToInt(r, g, b2, alpha) {
2123
+ function rgbFloatToInt(r, g, b, alpha) {
2094
2124
  const ri = Math.round(clamp01(r) * 255);
2095
2125
  const gi = Math.round(clamp01(g) * 255);
2096
- const bi = Math.round(clamp01(b2) * 255);
2126
+ const bi = Math.round(clamp01(b) * 255);
2097
2127
  const ai = Math.round(clamp01(alpha) * 255);
2098
2128
  return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
2099
2129
  }
2100
- function oklabToSrgb(L, a2, b2) {
2101
- const l_ = L + 0.3963377774 * a2 + 0.2158037573 * b2;
2102
- const m_ = L - 0.1055613458 * a2 - 0.0638541728 * b2;
2103
- const s_ = L - 0.0894841775 * a2 - 1.291485548 * b2;
2130
+ function oklabToSrgb(L, a, b) {
2131
+ const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
2132
+ const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
2133
+ const s_ = L - 0.0894841775 * a - 1.291485548 * b;
2104
2134
  const l = l_ * l_ * l_;
2105
2135
  const m = m_ * m_ * m_;
2106
2136
  const s = s_ * s_ * s_;
@@ -2109,15 +2139,15 @@ function oklabToSrgb(L, a2, b2) {
2109
2139
  const bLin = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
2110
2140
  return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
2111
2141
  }
2112
- function labToSrgb(L, a2, b2) {
2142
+ function labToSrgb(L, a, b) {
2113
2143
  const epsilon = 216 / 24389;
2114
2144
  const kappa = 24389 / 27;
2115
2145
  const Xn = 0.95047;
2116
2146
  const Yn = 1;
2117
2147
  const Zn = 1.08883;
2118
2148
  const fy = (L + 16) / 116;
2119
- const fx = a2 / 500 + fy;
2120
- const fz = fy - b2 / 200;
2149
+ const fx = a / 500 + fy;
2150
+ const fz = fy - b / 200;
2121
2151
  const fx3 = fx * fx * fx;
2122
2152
  const fz3 = fz * fz * fz;
2123
2153
  const xr = fx3 > epsilon ? fx3 : (116 * fx - 16) / kappa;
@@ -2349,27 +2379,27 @@ function normalizeColor(color) {
2349
2379
  const H = parseHueAngle(match[3]);
2350
2380
  const alpha = parseModernAlpha(match[4]);
2351
2381
  const hRad = H * Math.PI / 180;
2352
- const [r, g, b2] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
2353
- return rgbFloatToInt(r, g, b2, alpha);
2382
+ const [r, g, b] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
2383
+ return rgbFloatToInt(r, g, b, alpha);
2354
2384
  }
2355
2385
  }
2356
2386
  if (matchers.oklab) {
2357
2387
  if (match = matchers.oklab.exec(color)) {
2358
2388
  const L = parseModernComponent(match[1], 1);
2359
- const a2 = parseModernComponent(match[2], 0.4);
2360
- const b2 = parseModernComponent(match[3], 0.4);
2389
+ const a = parseModernComponent(match[2], 0.4);
2390
+ const b = parseModernComponent(match[3], 0.4);
2361
2391
  const alpha = parseModernAlpha(match[4]);
2362
- const [r, g, bl] = oklabToSrgb(L, a2, b2);
2392
+ const [r, g, bl] = oklabToSrgb(L, a, b);
2363
2393
  return rgbFloatToInt(r, g, bl, alpha);
2364
2394
  }
2365
2395
  }
2366
2396
  if (matchers.lab) {
2367
2397
  if (match = matchers.lab.exec(color)) {
2368
2398
  const L = parseModernComponent(match[1], 100);
2369
- const a2 = parseModernComponent(match[2], 125);
2370
- const b2 = parseModernComponent(match[3], 125);
2399
+ const a = parseModernComponent(match[2], 125);
2400
+ const b = parseModernComponent(match[3], 125);
2371
2401
  const alpha = parseModernAlpha(match[4]);
2372
- const [r, g, bl] = labToSrgb(L, a2, b2);
2402
+ const [r, g, bl] = labToSrgb(L, a, b);
2373
2403
  return rgbFloatToInt(r, g, bl, alpha);
2374
2404
  }
2375
2405
  }
@@ -2450,7 +2480,6 @@ var serializeScaleValue = ([x, y, z]) => {
2450
2480
  function truthy(value) {
2451
2481
  return Boolean(value);
2452
2482
  }
2453
- var ENABLE_V5_BREAKING_CHANGES = false;
2454
2483
  var validCodecs = [
2455
2484
  "h264",
2456
2485
  "h265",
@@ -2547,6 +2576,10 @@ var getOffthreadVideoSource = ({
2547
2576
  return \`http://localhost:\${window.remotion_proxyPort}/proxy?src=\${encodeURIComponent(getAbsoluteSrc(src))}&time=\${encodeURIComponent(Math.max(0, currentTime))}&transparent=\${String(transparent)}&toneMapped=\${String(toneMapped)}\`;
2548
2577
  };
2549
2578
  var NoReactInternals = {
2579
+ DEFAULT_PREMOUNT_IN_SECONDS,
2580
+ DEFAULT_STUDIO_PREMOUNT_IN_SECONDS,
2581
+ DEFAULT_SEQUENCE_ACTIVITY_LIMIT,
2582
+ validateDefaultPremountInSeconds,
2550
2583
  evaluateSourceNumericValue,
2551
2584
  evaluateSourcePropStatuses,
2552
2585
  processColor,
@@ -2770,6 +2803,7 @@ var evaluateSourcePropStatuses = (props, config) => {
2770
2803
  evaluatedProps.set(props, cached);
2771
2804
  return result;
2772
2805
  };
2806
+ var DEFAULT_SEQUENCE_ACTIVITY_LIMIT = Infinity;
2773
2807
  var NEWTON_ITERATIONS = 4;
2774
2808
  var NEWTON_MIN_SLOPE = 0.001;
2775
2809
  var SUBDIVISION_PRECISION = 0.0000001;
@@ -2951,7 +2985,7 @@ function advance({
2951
2985
  if (config.damping <= 0) {
2952
2986
  throw new Error("Spring damping must be greater than 0, otherwise the spring() animation will never end, causing an infinite loop.");
2953
2987
  }
2954
- const c2 = config.damping;
2988
+ const c = config.damping;
2955
2989
  const m = config.mass;
2956
2990
  const k = config.stiffness;
2957
2991
  const cacheKey = [
@@ -2959,7 +2993,7 @@ function advance({
2959
2993
  lastTimestamp,
2960
2994
  current,
2961
2995
  velocity,
2962
- c2,
2996
+ c,
2963
2997
  m,
2964
2998
  k,
2965
2999
  now
@@ -2969,7 +3003,7 @@ function advance({
2969
3003
  }
2970
3004
  const v0 = -velocity;
2971
3005
  const x0 = toValue - current;
2972
- const zeta = c2 / (2 * Math.sqrt(k * m));
3006
+ const zeta = c / (2 * Math.sqrt(k * m));
2973
3007
  const omega0 = Math.sqrt(k / m);
2974
3008
  const omega1 = omega0 * Math.sqrt(1 - zeta ** 2);
2975
3009
  const t = deltaTime / 1000;
@@ -3532,7 +3566,8 @@ var parseStringInterpolationValue = (output, outputType) => {
3532
3566
  }
3533
3567
  const parts = output.trim().split(/\\s+/);
3534
3568
  if (parts.length < 1 || parts.length > 3 || parts[0] === "") {
3535
- throw new TypeError(\`String outputRange values must contain 1 to 3 components, but got "\${output}"\`);
3569
+ const ErrorType = outputType === undefined && parts.some((part) => !cssNumberRegex.test(part) && !transformOriginKeywords.has(part.toLowerCase())) ? UnsupportedStringInterpolationValueError : TypeError;
3570
+ throw new ErrorType(\`String outputRange values must contain 1 to 3 components, but got "\${output}"\`);
3536
3571
  }
3537
3572
  if (parts.some((part) => transformOriginKeywords.has(part.toLowerCase()))) {
3538
3573
  if (outputType !== undefined) {
@@ -4099,6 +4134,14 @@ function interpolate(input, inputRange, outputRange, options) {
4099
4134
  checkInfiniteRange("outputRange", outputRange);
4100
4135
  return interpolateNumber({ input, inputRange, outputRange, options });
4101
4136
  }
4137
+ var ENABLE_V5_BREAKING_CHANGES = false;
4138
+ var DEFAULT_PREMOUNT_IN_SECONDS = ENABLE_V5_BREAKING_CHANGES ? 2 : 0;
4139
+ var DEFAULT_STUDIO_PREMOUNT_IN_SECONDS = 2;
4140
+ var validateDefaultPremountInSeconds = (value) => {
4141
+ if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
4142
+ throw new TypeError(\`defaultPremountInSeconds must be a finite, non-negative number, but got \${String(value)}.\`);
4143
+ }
4144
+ };
4102
4145
  var DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
4103
4146
  var DELAY_RENDER_RETRIES_LEFT = "Retries left: ";
4104
4147
  var DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.";
@@ -4374,7 +4417,7 @@ var svgPaintSchema = {
4374
4417
  var premountSchema = {
4375
4418
  premountFor: {
4376
4419
  type: "number",
4377
- default: 0,
4420
+ default: undefined,
4378
4421
  description: "Premount For",
4379
4422
  min: 0,
4380
4423
  step: 1,
@@ -4475,6 +4518,26 @@ var trimBeforeField = {
4475
4518
  step: 1,
4476
4519
  hiddenFromList: true
4477
4520
  };
4521
+ var sequenceTimingSchema = {
4522
+ from: {
4523
+ ...fromField,
4524
+ description: "From",
4525
+ hiddenFromList: false,
4526
+ keyframable: false
4527
+ },
4528
+ durationInFrames: {
4529
+ ...durationInFramesField,
4530
+ description: "Duration",
4531
+ hiddenFromList: false,
4532
+ keyframable: false
4533
+ },
4534
+ trimBefore: {
4535
+ ...trimBeforeField,
4536
+ description: "Trim before",
4537
+ hiddenFromList: false,
4538
+ keyframable: false
4539
+ }
4540
+ };
4478
4541
  var freezeField = {
4479
4542
  type: "number",
4480
4543
  default: null,
@@ -4598,8 +4661,8 @@ function hslToRgb(h, s, l) {
4598
4661
  const p = 2 * l - q;
4599
4662
  const r = hue2rgb(p, q, h + 1 / 3);
4600
4663
  const g = hue2rgb(p, q, h);
4601
- const b2 = hue2rgb(p, q, h - 1 / 3);
4602
- return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b2 * 255) << 8;
4664
+ const b = hue2rgb(p, q, h - 1 / 3);
4665
+ return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
4603
4666
  }
4604
4667
  function parse255(str) {
4605
4668
  const int = Number.parseInt(str, 10);
@@ -4663,25 +4726,25 @@ function parseModernAlpha(str) {
4663
4726
  }
4664
4727
  return Math.max(0, Math.min(1, Number.parseFloat(str)));
4665
4728
  }
4666
- function linearToSrgb(c2) {
4667
- if (c2 <= 0.0031308)
4668
- return 12.92 * c2;
4669
- return 1.055 * c2 ** (1 / 2.4) - 0.055;
4729
+ function linearToSrgb(c) {
4730
+ if (c <= 0.0031308)
4731
+ return 12.92 * c;
4732
+ return 1.055 * c ** (1 / 2.4) - 0.055;
4670
4733
  }
4671
4734
  function clamp01(v) {
4672
4735
  return Math.max(0, Math.min(1, v));
4673
4736
  }
4674
- function rgbFloatToInt(r, g, b2, alpha) {
4737
+ function rgbFloatToInt(r, g, b, alpha) {
4675
4738
  const ri = Math.round(clamp01(r) * 255);
4676
4739
  const gi = Math.round(clamp01(g) * 255);
4677
- const bi = Math.round(clamp01(b2) * 255);
4740
+ const bi = Math.round(clamp01(b) * 255);
4678
4741
  const ai = Math.round(clamp01(alpha) * 255);
4679
4742
  return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
4680
4743
  }
4681
- function oklabToSrgb(L, a2, b2) {
4682
- const l_ = L + 0.3963377774 * a2 + 0.2158037573 * b2;
4683
- const m_ = L - 0.1055613458 * a2 - 0.0638541728 * b2;
4684
- const s_ = L - 0.0894841775 * a2 - 1.291485548 * b2;
4744
+ function oklabToSrgb(L, a, b) {
4745
+ const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
4746
+ const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
4747
+ const s_ = L - 0.0894841775 * a - 1.291485548 * b;
4685
4748
  const l = l_ * l_ * l_;
4686
4749
  const m = m_ * m_ * m_;
4687
4750
  const s = s_ * s_ * s_;
@@ -4690,15 +4753,15 @@ function oklabToSrgb(L, a2, b2) {
4690
4753
  const bLin = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
4691
4754
  return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
4692
4755
  }
4693
- function labToSrgb(L, a2, b2) {
4756
+ function labToSrgb(L, a, b) {
4694
4757
  const epsilon = 216 / 24389;
4695
4758
  const kappa = 24389 / 27;
4696
4759
  const Xn = 0.95047;
4697
4760
  const Yn = 1;
4698
4761
  const Zn = 1.08883;
4699
4762
  const fy = (L + 16) / 116;
4700
- const fx = a2 / 500 + fy;
4701
- const fz = fy - b2 / 200;
4763
+ const fx = a / 500 + fy;
4764
+ const fz = fy - b / 200;
4702
4765
  const fx3 = fx * fx * fx;
4703
4766
  const fz3 = fz * fz * fz;
4704
4767
  const xr = fx3 > epsilon ? fx3 : (116 * fx - 16) / kappa;
@@ -4930,27 +4993,27 @@ function normalizeColor(color) {
4930
4993
  const H = parseHueAngle(match[3]);
4931
4994
  const alpha = parseModernAlpha(match[4]);
4932
4995
  const hRad = H * Math.PI / 180;
4933
- const [r, g, b2] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
4934
- return rgbFloatToInt(r, g, b2, alpha);
4996
+ const [r, g, b] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
4997
+ return rgbFloatToInt(r, g, b, alpha);
4935
4998
  }
4936
4999
  }
4937
5000
  if (matchers.oklab) {
4938
5001
  if (match = matchers.oklab.exec(color)) {
4939
5002
  const L = parseModernComponent(match[1], 1);
4940
- const a2 = parseModernComponent(match[2], 0.4);
4941
- const b2 = parseModernComponent(match[3], 0.4);
5003
+ const a = parseModernComponent(match[2], 0.4);
5004
+ const b = parseModernComponent(match[3], 0.4);
4942
5005
  const alpha = parseModernAlpha(match[4]);
4943
- const [r, g, bl] = oklabToSrgb(L, a2, b2);
5006
+ const [r, g, bl] = oklabToSrgb(L, a, b);
4944
5007
  return rgbFloatToInt(r, g, bl, alpha);
4945
5008
  }
4946
5009
  }
4947
5010
  if (matchers.lab) {
4948
5011
  if (match = matchers.lab.exec(color)) {
4949
5012
  const L = parseModernComponent(match[1], 100);
4950
- const a2 = parseModernComponent(match[2], 125);
4951
- const b2 = parseModernComponent(match[3], 125);
5013
+ const a = parseModernComponent(match[2], 125);
5014
+ const b = parseModernComponent(match[3], 125);
4952
5015
  const alpha = parseModernAlpha(match[4]);
4953
- const [r, g, bl] = labToSrgb(L, a2, b2);
5016
+ const [r, g, bl] = labToSrgb(L, a, b);
4954
5017
  return rgbFloatToInt(r, g, bl, alpha);
4955
5018
  }
4956
5019
  }
@@ -5031,7 +5094,6 @@ var serializeScaleValue = ([x, y, z]) => {
5031
5094
  function truthy(value) {
5032
5095
  return Boolean(value);
5033
5096
  }
5034
- var ENABLE_V5_BREAKING_CHANGES = false;
5035
5097
  var validCodecs = [
5036
5098
  "h264",
5037
5099
  "h265",
@@ -5128,6 +5190,10 @@ var getOffthreadVideoSource = ({
5128
5190
  return \`http://localhost:\${window.remotion_proxyPort}/proxy?src=\${encodeURIComponent(getAbsoluteSrc(src))}&time=\${encodeURIComponent(Math.max(0, currentTime))}&transparent=\${String(transparent)}&toneMapped=\${String(toneMapped)}\`;
5129
5191
  };
5130
5192
  var NoReactInternals = {
5193
+ DEFAULT_PREMOUNT_IN_SECONDS,
5194
+ DEFAULT_STUDIO_PREMOUNT_IN_SECONDS,
5195
+ DEFAULT_SEQUENCE_ACTIVITY_LIMIT,
5196
+ validateDefaultPremountInSeconds,
5131
5197
  evaluateSourceNumericValue,
5132
5198
  evaluateSourcePropStatuses,
5133
5199
  processColor,
@@ -5545,7 +5611,7 @@ var FALLBACK_URL = "https://remotion.media/libc6_2.35-0ubuntu3.1_amd64.deb";
5545
5611
  async function patchCompositor({
5546
5612
  sandbox
5547
5613
  }) {
5548
- const script5 = `
5614
+ const script = `
5549
5615
  set -euo pipefail
5550
5616
 
5551
5617
  echo "[patch-compositor] Listing node_modules/@remotion/:"
@@ -5614,7 +5680,7 @@ echo "[patch-compositor] Compositor patched successfully"
5614
5680
  `;
5615
5681
  const cmd = await sandbox.runCommand({
5616
5682
  cmd: "bash",
5617
- args: ["-c", script5],
5683
+ args: ["-c", script],
5618
5684
  detached: true
5619
5685
  });
5620
5686
  for await (const _log of cmd.logs()) {}
@@ -6025,10 +6091,10 @@ async function uploadToVercelBlob({
6025
6091
  return result;
6026
6092
  }
6027
6093
  export {
6028
- uploadToVercelBlob,
6029
- renderStillOnVercel,
6030
- renderMediaOnVercel,
6031
- getRenderProgress,
6094
+ addBundleToSandbox,
6032
6095
  createSandbox,
6033
- addBundleToSandbox
6096
+ getRenderProgress,
6097
+ renderMediaOnVercel,
6098
+ renderStillOnVercel,
6099
+ uploadToVercelBlob
6034
6100
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/vercel",
3
- "version": "4.0.534",
3
+ "version": "4.0.536",
4
4
  "description": "Render Remotion videos on Vercel Sandbox",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "format": "oxfmt src",
15
15
  "lint": "eslint src",
16
16
  "watch": "tsgo -w",
17
- "make": "bun --env-file=../.env.bundle bundle.ts && tsgo && tsgo -p tsconfig.scripts.json"
17
+ "make": "bun --env-file=../.env.bundle bundle.ts && tsgo && bun check -p tsconfig.scripts.json"
18
18
  },
19
19
  "author": "Jonny Burger <jonny@remotion.dev>",
20
20
  "contributors": [],
@@ -23,8 +23,8 @@
23
23
  "url": "https://github.com/remotion-dev/remotion/issues"
24
24
  },
25
25
  "dependencies": {
26
- "@remotion/renderer": "4.0.534",
27
- "remotion": "4.0.534"
26
+ "@remotion/renderer": "4.0.536",
27
+ "remotion": "4.0.536"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@vercel/sandbox": ">=1.0.0"
@@ -38,7 +38,7 @@
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "devDependencies": {
41
- "@remotion/eslint-config-internal": "4.0.534",
41
+ "@remotion/eslint-config-internal": "4.0.536",
42
42
  "@vercel/blob": "2.3.0",
43
43
  "@vercel/sandbox": "1.6.0",
44
44
  "eslint": "9.19.0",