@remotion/vercel 4.0.535 → 4.0.537

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 +14 -12
  2. package/package.json +4 -4
@@ -189,7 +189,7 @@ var evaluateSourcePropStatuses = (props, config) => {
189
189
  evaluatedProps.set(props, cached);
190
190
  return result;
191
191
  };
192
- var DEFAULT_SEQUENCE_ACTIVITY_LIMIT = 20;
192
+ var DEFAULT_SEQUENCE_ACTIVITY_LIMIT = Infinity;
193
193
  var NEWTON_ITERATIONS = 4;
194
194
  var NEWTON_MIN_SLOPE = 0.001;
195
195
  var SUBDIVISION_PRECISION = 0.0000001;
@@ -952,7 +952,8 @@ var parseStringInterpolationValue = (output, outputType) => {
952
952
  }
953
953
  const parts = output.trim().split(/\\s+/);
954
954
  if (parts.length < 1 || parts.length > 3 || parts[0] === "") {
955
- 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}"\`);
956
957
  }
957
958
  if (parts.some((part) => transformOriginKeywords.has(part.toLowerCase()))) {
958
959
  if (outputType !== undefined) {
@@ -1802,7 +1803,7 @@ var svgPaintSchema = {
1802
1803
  var premountSchema = {
1803
1804
  premountFor: {
1804
1805
  type: "number",
1805
- default: 0,
1806
+ default: undefined,
1806
1807
  description: "Premount For",
1807
1808
  min: 0,
1808
1809
  step: 1,
@@ -2543,12 +2544,12 @@ function validateDurationInFrames(durationInFrames, options) {
2543
2544
  if (durationInFrames <= 0) {
2544
2545
  throw new TypeError(\`The "durationInFrames" prop \${component} must be positive, but got \${durationInFrames}.\`);
2545
2546
  }
2546
- if (!allowFloats && durationInFrames % 1 !== 0) {
2547
- throw new TypeError(\`The "durationInFrames" prop \${component} must be an integer, but got \${durationInFrames}.\`);
2548
- }
2549
2547
  if (!Number.isFinite(durationInFrames)) {
2550
2548
  throw new TypeError(\`The "durationInFrames" prop \${component} must be finite, but got \${durationInFrames}.\`);
2551
2549
  }
2550
+ if (!allowFloats && durationInFrames % 1 !== 0) {
2551
+ throw new TypeError(\`The "durationInFrames" prop \${component} must be an integer, but got \${durationInFrames}.\`);
2552
+ }
2552
2553
  }
2553
2554
  var getExpectedMediaFrameUncorrected = ({
2554
2555
  frame,
@@ -2802,7 +2803,7 @@ var evaluateSourcePropStatuses = (props, config) => {
2802
2803
  evaluatedProps.set(props, cached);
2803
2804
  return result;
2804
2805
  };
2805
- var DEFAULT_SEQUENCE_ACTIVITY_LIMIT = 20;
2806
+ var DEFAULT_SEQUENCE_ACTIVITY_LIMIT = Infinity;
2806
2807
  var NEWTON_ITERATIONS = 4;
2807
2808
  var NEWTON_MIN_SLOPE = 0.001;
2808
2809
  var SUBDIVISION_PRECISION = 0.0000001;
@@ -3565,7 +3566,8 @@ var parseStringInterpolationValue = (output, outputType) => {
3565
3566
  }
3566
3567
  const parts = output.trim().split(/\\s+/);
3567
3568
  if (parts.length < 1 || parts.length > 3 || parts[0] === "") {
3568
- 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}"\`);
3569
3571
  }
3570
3572
  if (parts.some((part) => transformOriginKeywords.has(part.toLowerCase()))) {
3571
3573
  if (outputType !== undefined) {
@@ -4415,7 +4417,7 @@ var svgPaintSchema = {
4415
4417
  var premountSchema = {
4416
4418
  premountFor: {
4417
4419
  type: "number",
4418
- default: 0,
4420
+ default: undefined,
4419
4421
  description: "Premount For",
4420
4422
  min: 0,
4421
4423
  step: 1,
@@ -5156,12 +5158,12 @@ function validateDurationInFrames(durationInFrames, options) {
5156
5158
  if (durationInFrames <= 0) {
5157
5159
  throw new TypeError(\`The "durationInFrames" prop \${component} must be positive, but got \${durationInFrames}.\`);
5158
5160
  }
5159
- if (!allowFloats && durationInFrames % 1 !== 0) {
5160
- throw new TypeError(\`The "durationInFrames" prop \${component} must be an integer, but got \${durationInFrames}.\`);
5161
- }
5162
5161
  if (!Number.isFinite(durationInFrames)) {
5163
5162
  throw new TypeError(\`The "durationInFrames" prop \${component} must be finite, but got \${durationInFrames}.\`);
5164
5163
  }
5164
+ if (!allowFloats && durationInFrames % 1 !== 0) {
5165
+ throw new TypeError(\`The "durationInFrames" prop \${component} must be an integer, but got \${durationInFrames}.\`);
5166
+ }
5165
5167
  }
5166
5168
  var getExpectedMediaFrameUncorrected = ({
5167
5169
  frame,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/vercel",
3
- "version": "4.0.535",
3
+ "version": "4.0.537",
4
4
  "description": "Render Remotion videos on Vercel Sandbox",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "url": "https://github.com/remotion-dev/remotion/issues"
24
24
  },
25
25
  "dependencies": {
26
- "@remotion/renderer": "4.0.535",
27
- "remotion": "4.0.535"
26
+ "@remotion/renderer": "4.0.537",
27
+ "remotion": "4.0.537"
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.535",
41
+ "@remotion/eslint-config-internal": "4.0.537",
42
42
  "@vercel/blob": "2.3.0",
43
43
  "@vercel/sandbox": "1.6.0",
44
44
  "eslint": "9.19.0",