@remotion/studio 4.0.318 → 4.0.319

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.
@@ -32221,6 +32221,9 @@ var makeFetchRequest = async ({
32221
32221
  });
32222
32222
  const contentRange = res.headers.get("content-range");
32223
32223
  const parsedContentRange = contentRange ? parseContentRange(contentRange) : null;
32224
+ if (!res.ok) {
32225
+ throw new Error(`Server returned status code ${res.status} for ${resolvedUrl} and range ${requestedRange}`);
32226
+ }
32224
32227
  const { supportsContentRange } = validateContentRangeAndDetectIfSupported({
32225
32228
  requestedRange,
32226
32229
  parsedContentRange,
@@ -32231,9 +32234,6 @@ var makeFetchRequest = async ({
32231
32234
  ownController.abort(new MediaParserAbortError("Aborted by user"));
32232
32235
  }, { once: true });
32233
32236
  }
32234
- if (res.status.toString().startsWith("4") || res.status.toString().startsWith("5")) {
32235
- throw new Error(`Server returned status code ${res.status} for ${resolvedUrl} and range ${requestedRange}`);
32236
- }
32237
32237
  const contentDisposition = res.headers.get("content-disposition");
32238
32238
  const name = contentDisposition?.match(/filename="([^"]+)"/)?.[1];
32239
32239
  const { contentLength, needsContentRange, reader } = await getLengthAndReader({
@@ -32501,6 +32501,9 @@ var makeFetchRequest = async ({
32501
32501
  });
32502
32502
  const contentRange = res.headers.get("content-range");
32503
32503
  const parsedContentRange = contentRange ? parseContentRange(contentRange) : null;
32504
+ if (!res.ok) {
32505
+ throw new Error(`Server returned status code ${res.status} for ${resolvedUrl} and range ${requestedRange}`);
32506
+ }
32504
32507
  const { supportsContentRange } = validateContentRangeAndDetectIfSupported({
32505
32508
  requestedRange,
32506
32509
  parsedContentRange,
@@ -32511,9 +32514,6 @@ var makeFetchRequest = async ({
32511
32514
  ownController.abort(new MediaParserAbortError("Aborted by user"));
32512
32515
  }, { once: true });
32513
32516
  }
32514
- if (res.status.toString().startsWith("4") || res.status.toString().startsWith("5")) {
32515
- throw new Error(`Server returned status code ${res.status} for ${resolvedUrl} and range ${requestedRange}`);
32516
- }
32517
32517
  const contentDisposition = res.headers.get("content-disposition");
32518
32518
  const name = contentDisposition?.match(/filename="([^"]+)"/)?.[1];
32519
32519
  const { contentLength, needsContentRange, reader } = await getLengthAndReader({
@@ -183,7 +183,7 @@ var renderContent = (Root) => {
183
183
  renderToDOM(/* @__PURE__ */ jsx("div", {
184
184
  children: /* @__PURE__ */ jsx(DelayedSpinner, {})
185
185
  }));
186
- import("./chunk-3jqyahs2.js").then(({ StudioInternals }) => {
186
+ import("./chunk-xg9wh6m7.js").then(({ StudioInternals }) => {
187
187
  renderToDOM(/* @__PURE__ */ jsx(StudioInternals.Studio, {
188
188
  readOnly: true,
189
189
  rootComponent: Root
@@ -224,6 +224,7 @@ if (typeof window !== "undefined") {
224
224
  const canSerializeDefaultProps = getCanSerializeDefaultProps(compositions);
225
225
  if (!canSerializeDefaultProps) {
226
226
  Internals.Log.warn(window.remotion_logLevel, "defaultProps are too big to serialize - trying to find the problematic composition...");
227
+ Internals.Log.warn(window.remotion_logLevel, "Serialization:", compositions);
227
228
  for (const comp of compositions) {
228
229
  if (!getCanSerializeDefaultProps(comp)) {
229
230
  throw new Error(`defaultProps too big - could not serialize - the defaultProps of composition with ID ${comp.id} - the object that was passed to defaultProps was too big. Learn how to mitigate this error by visiting https://remotion.dev/docs/troubleshooting/serialize-defaultprops`);
@@ -230,6 +230,7 @@ if (typeof window !== 'undefined') {
230
230
  const canSerializeDefaultProps = getCanSerializeDefaultProps(compositions);
231
231
  if (!canSerializeDefaultProps) {
232
232
  remotion_1.Internals.Log.warn(window.remotion_logLevel, 'defaultProps are too big to serialize - trying to find the problematic composition...');
233
+ remotion_1.Internals.Log.warn(window.remotion_logLevel, 'Serialization:', compositions);
233
234
  for (const comp of compositions) {
234
235
  if (!getCanSerializeDefaultProps(comp)) {
235
236
  throw new Error(`defaultProps too big - could not serialize - the defaultProps of composition with ID ${comp.id} - the object that was passed to defaultProps was too big. Learn how to mitigate this error by visiting https://remotion.dev/docs/troubleshooting/serialize-defaultprops`);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
4
4
  },
5
5
  "name": "@remotion/studio",
6
- "version": "4.0.318",
6
+ "version": "4.0.319",
7
7
  "description": "APIs for interacting with the Remotion Studio",
8
8
  "main": "dist",
9
9
  "sideEffects": false,
@@ -23,21 +23,21 @@
23
23
  "source-map": "0.7.3",
24
24
  "open": "^8.4.2",
25
25
  "zod": "3.22.3",
26
- "remotion": "4.0.318",
27
- "@remotion/player": "4.0.318",
28
- "@remotion/media-utils": "4.0.318",
29
- "@remotion/media-parser": "4.0.318",
30
- "@remotion/renderer": "4.0.318",
31
- "@remotion/studio-shared": "4.0.318",
32
- "@remotion/webcodecs": "4.0.318",
33
- "@remotion/zod-types": "4.0.318"
26
+ "remotion": "4.0.319",
27
+ "@remotion/media-parser": "4.0.319",
28
+ "@remotion/player": "4.0.319",
29
+ "@remotion/renderer": "4.0.319",
30
+ "@remotion/media-utils": "4.0.319",
31
+ "@remotion/webcodecs": "4.0.319",
32
+ "@remotion/studio-shared": "4.0.319",
33
+ "@remotion/zod-types": "4.0.319"
34
34
  },
35
35
  "devDependencies": {
36
36
  "react": "19.0.0",
37
37
  "react-dom": "19.0.0",
38
38
  "@types/semver": "^7.3.4",
39
39
  "eslint": "9.19.0",
40
- "@remotion/eslint-config-internal": "4.0.318"
40
+ "@remotion/eslint-config-internal": "4.0.319"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
@@ -87,6 +87,6 @@
87
87
  "lint": "eslint src",
88
88
  "make": "tsc -d && bun --env-file=../.env.bundle bundle.ts",
89
89
  "test": "bun test src",
90
- "formatting": "prettier src --check"
90
+ "formatting": "prettier --experimental-cli src --check"
91
91
  }
92
92
  }