@uniformdev/next-app-router 20.69.1-alpha.10 → 20.70.1-alpha.10

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.
package/dist/cache.js CHANGED
@@ -424,12 +424,12 @@ var ApiClientError = class _ApiClientError extends Error {
424
424
  `${errorMessage}
425
425
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
426
426
  );
427
- this.errorMessage = errorMessage;
428
- this.fetchMethod = fetchMethod;
429
- this.fetchUri = fetchUri;
430
- this.statusCode = statusCode;
431
- this.statusText = statusText;
432
- this.requestId = requestId;
427
+ __publicField2(this, "errorMessage", errorMessage);
428
+ __publicField2(this, "fetchMethod", fetchMethod);
429
+ __publicField2(this, "fetchUri", fetchUri);
430
+ __publicField2(this, "statusCode", statusCode);
431
+ __publicField2(this, "statusText", statusText);
432
+ __publicField2(this, "requestId", requestId);
433
433
  Object.setPrototypeOf(this, _ApiClientError.prototype);
434
434
  }
435
435
  };
@@ -963,36 +963,43 @@ function validateConcurrency(concurrency) {
963
963
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
964
964
  var import_retry = __toESM(require_retry2(), 1);
965
965
 
966
- // ../../node_modules/.pnpm/is-network-error@1.1.0/node_modules/is-network-error/index.js
966
+ // ../../node_modules/.pnpm/is-network-error@1.3.2/node_modules/is-network-error/index.js
967
967
  var objectToString = Object.prototype.toString;
968
968
  var isError = (value) => objectToString.call(value) === "[object Error]";
969
969
  var errorMessages = /* @__PURE__ */ new Set([
970
970
  "network error",
971
971
  // Chrome
972
- "Failed to fetch",
973
- // Chrome
974
972
  "NetworkError when attempting to fetch resource.",
975
973
  // Firefox
976
974
  "The Internet connection appears to be offline.",
977
975
  // Safari 16
978
- "Load failed",
979
- // Safari 17+
980
976
  "Network request failed",
981
977
  // `cross-fetch`
982
978
  "fetch failed",
983
979
  // Undici (Node.js)
984
- "terminated"
980
+ "terminated",
985
981
  // Undici (Node.js)
982
+ " A network error occurred.",
983
+ // Bun (WebKit)
984
+ "Network connection lost"
985
+ // Cloudflare Workers (fetch)
986
986
  ]);
987
987
  function isNetworkError(error) {
988
988
  const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
989
989
  if (!isValid) {
990
990
  return false;
991
991
  }
992
- if (error.message === "Load failed") {
993
- return error.stack === void 0;
992
+ const { message, stack } = error;
993
+ if (message === "Load failed" || message.startsWith("Load failed (") && message.endsWith(")")) {
994
+ return stack === void 0 || "__sentry_captured__" in error;
995
+ }
996
+ if (message.startsWith("error sending request for url")) {
997
+ return true;
998
+ }
999
+ if (message === "Failed to fetch" || message.startsWith("Failed to fetch (") && message.endsWith(")")) {
1000
+ return true;
994
1001
  }
995
- return errorMessages.has(error.message);
1002
+ return errorMessages.has(message);
996
1003
  }
997
1004
 
998
1005
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
package/dist/cache.mjs CHANGED
@@ -411,12 +411,12 @@ var ApiClientError = class _ApiClientError extends Error {
411
411
  `${errorMessage}
412
412
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
413
413
  );
414
- this.errorMessage = errorMessage;
415
- this.fetchMethod = fetchMethod;
416
- this.fetchUri = fetchUri;
417
- this.statusCode = statusCode;
418
- this.statusText = statusText;
419
- this.requestId = requestId;
414
+ __publicField2(this, "errorMessage", errorMessage);
415
+ __publicField2(this, "fetchMethod", fetchMethod);
416
+ __publicField2(this, "fetchUri", fetchUri);
417
+ __publicField2(this, "statusCode", statusCode);
418
+ __publicField2(this, "statusText", statusText);
419
+ __publicField2(this, "requestId", requestId);
420
420
  Object.setPrototypeOf(this, _ApiClientError.prototype);
421
421
  }
422
422
  };
@@ -950,36 +950,43 @@ function validateConcurrency(concurrency) {
950
950
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
951
951
  var import_retry = __toESM(require_retry2(), 1);
952
952
 
953
- // ../../node_modules/.pnpm/is-network-error@1.1.0/node_modules/is-network-error/index.js
953
+ // ../../node_modules/.pnpm/is-network-error@1.3.2/node_modules/is-network-error/index.js
954
954
  var objectToString = Object.prototype.toString;
955
955
  var isError = (value) => objectToString.call(value) === "[object Error]";
956
956
  var errorMessages = /* @__PURE__ */ new Set([
957
957
  "network error",
958
958
  // Chrome
959
- "Failed to fetch",
960
- // Chrome
961
959
  "NetworkError when attempting to fetch resource.",
962
960
  // Firefox
963
961
  "The Internet connection appears to be offline.",
964
962
  // Safari 16
965
- "Load failed",
966
- // Safari 17+
967
963
  "Network request failed",
968
964
  // `cross-fetch`
969
965
  "fetch failed",
970
966
  // Undici (Node.js)
971
- "terminated"
967
+ "terminated",
972
968
  // Undici (Node.js)
969
+ " A network error occurred.",
970
+ // Bun (WebKit)
971
+ "Network connection lost"
972
+ // Cloudflare Workers (fetch)
973
973
  ]);
974
974
  function isNetworkError(error) {
975
975
  const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
976
976
  if (!isValid) {
977
977
  return false;
978
978
  }
979
- if (error.message === "Load failed") {
980
- return error.stack === void 0;
979
+ const { message, stack } = error;
980
+ if (message === "Load failed" || message.startsWith("Load failed (") && message.endsWith(")")) {
981
+ return stack === void 0 || "__sentry_captured__" in error;
982
+ }
983
+ if (message.startsWith("error sending request for url")) {
984
+ return true;
985
+ }
986
+ if (message === "Failed to fetch" || message.startsWith("Failed to fetch (") && message.endsWith(")")) {
987
+ return true;
981
988
  }
982
- return errorMessages.has(error.message);
989
+ return errorMessages.has(message);
983
990
  }
984
991
 
985
992
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
package/dist/component.js CHANGED
@@ -231,12 +231,12 @@ var ApiClientError = class _ApiClientError extends Error {
231
231
  `${errorMessage}
232
232
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
233
233
  );
234
- this.errorMessage = errorMessage;
235
- this.fetchMethod = fetchMethod;
236
- this.fetchUri = fetchUri;
237
- this.statusCode = statusCode;
238
- this.statusText = statusText;
239
- this.requestId = requestId;
234
+ __publicField(this, "errorMessage", errorMessage);
235
+ __publicField(this, "fetchMethod", fetchMethod);
236
+ __publicField(this, "fetchUri", fetchUri);
237
+ __publicField(this, "statusCode", statusCode);
238
+ __publicField(this, "statusText", statusText);
239
+ __publicField(this, "requestId", requestId);
240
240
  Object.setPrototypeOf(this, _ApiClientError.prototype);
241
241
  }
242
242
  };
@@ -216,12 +216,12 @@ var ApiClientError = class _ApiClientError extends Error {
216
216
  `${errorMessage}
217
217
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
218
218
  );
219
- this.errorMessage = errorMessage;
220
- this.fetchMethod = fetchMethod;
221
- this.fetchUri = fetchUri;
222
- this.statusCode = statusCode;
223
- this.statusText = statusText;
224
- this.requestId = requestId;
219
+ __publicField(this, "errorMessage", errorMessage);
220
+ __publicField(this, "fetchMethod", fetchMethod);
221
+ __publicField(this, "fetchUri", fetchUri);
222
+ __publicField(this, "statusCode", statusCode);
223
+ __publicField(this, "statusText", statusText);
224
+ __publicField(this, "requestId", requestId);
225
225
  Object.setPrototypeOf(this, _ApiClientError.prototype);
226
226
  }
227
227
  };
package/dist/handler.js CHANGED
@@ -423,12 +423,12 @@ var ApiClientError = class _ApiClientError extends Error {
423
423
  `${errorMessage}
424
424
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
425
425
  );
426
- this.errorMessage = errorMessage;
427
- this.fetchMethod = fetchMethod;
428
- this.fetchUri = fetchUri;
429
- this.statusCode = statusCode;
430
- this.statusText = statusText;
431
- this.requestId = requestId;
426
+ __publicField2(this, "errorMessage", errorMessage);
427
+ __publicField2(this, "fetchMethod", fetchMethod);
428
+ __publicField2(this, "fetchUri", fetchUri);
429
+ __publicField2(this, "statusCode", statusCode);
430
+ __publicField2(this, "statusText", statusText);
431
+ __publicField2(this, "requestId", requestId);
432
432
  Object.setPrototypeOf(this, _ApiClientError.prototype);
433
433
  }
434
434
  };
@@ -961,36 +961,43 @@ function validateConcurrency(concurrency) {
961
961
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
962
962
  var import_retry = __toESM(require_retry2(), 1);
963
963
 
964
- // ../../node_modules/.pnpm/is-network-error@1.1.0/node_modules/is-network-error/index.js
964
+ // ../../node_modules/.pnpm/is-network-error@1.3.2/node_modules/is-network-error/index.js
965
965
  var objectToString = Object.prototype.toString;
966
966
  var isError = (value) => objectToString.call(value) === "[object Error]";
967
967
  var errorMessages = /* @__PURE__ */ new Set([
968
968
  "network error",
969
969
  // Chrome
970
- "Failed to fetch",
971
- // Chrome
972
970
  "NetworkError when attempting to fetch resource.",
973
971
  // Firefox
974
972
  "The Internet connection appears to be offline.",
975
973
  // Safari 16
976
- "Load failed",
977
- // Safari 17+
978
974
  "Network request failed",
979
975
  // `cross-fetch`
980
976
  "fetch failed",
981
977
  // Undici (Node.js)
982
- "terminated"
978
+ "terminated",
983
979
  // Undici (Node.js)
980
+ " A network error occurred.",
981
+ // Bun (WebKit)
982
+ "Network connection lost"
983
+ // Cloudflare Workers (fetch)
984
984
  ]);
985
985
  function isNetworkError(error) {
986
986
  const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
987
987
  if (!isValid) {
988
988
  return false;
989
989
  }
990
- if (error.message === "Load failed") {
991
- return error.stack === void 0;
990
+ const { message, stack } = error;
991
+ if (message === "Load failed" || message.startsWith("Load failed (") && message.endsWith(")")) {
992
+ return stack === void 0 || "__sentry_captured__" in error;
993
+ }
994
+ if (message.startsWith("error sending request for url")) {
995
+ return true;
996
+ }
997
+ if (message === "Failed to fetch" || message.startsWith("Failed to fetch (") && message.endsWith(")")) {
998
+ return true;
992
999
  }
993
- return errorMessages.has(error.message);
1000
+ return errorMessages.has(message);
994
1001
  }
995
1002
 
996
1003
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
package/dist/handler.mjs CHANGED
@@ -408,12 +408,12 @@ var ApiClientError = class _ApiClientError extends Error {
408
408
  `${errorMessage}
409
409
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
410
410
  );
411
- this.errorMessage = errorMessage;
412
- this.fetchMethod = fetchMethod;
413
- this.fetchUri = fetchUri;
414
- this.statusCode = statusCode;
415
- this.statusText = statusText;
416
- this.requestId = requestId;
411
+ __publicField2(this, "errorMessage", errorMessage);
412
+ __publicField2(this, "fetchMethod", fetchMethod);
413
+ __publicField2(this, "fetchUri", fetchUri);
414
+ __publicField2(this, "statusCode", statusCode);
415
+ __publicField2(this, "statusText", statusText);
416
+ __publicField2(this, "requestId", requestId);
417
417
  Object.setPrototypeOf(this, _ApiClientError.prototype);
418
418
  }
419
419
  };
@@ -946,36 +946,43 @@ function validateConcurrency(concurrency) {
946
946
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
947
947
  var import_retry = __toESM(require_retry2(), 1);
948
948
 
949
- // ../../node_modules/.pnpm/is-network-error@1.1.0/node_modules/is-network-error/index.js
949
+ // ../../node_modules/.pnpm/is-network-error@1.3.2/node_modules/is-network-error/index.js
950
950
  var objectToString = Object.prototype.toString;
951
951
  var isError = (value) => objectToString.call(value) === "[object Error]";
952
952
  var errorMessages = /* @__PURE__ */ new Set([
953
953
  "network error",
954
954
  // Chrome
955
- "Failed to fetch",
956
- // Chrome
957
955
  "NetworkError when attempting to fetch resource.",
958
956
  // Firefox
959
957
  "The Internet connection appears to be offline.",
960
958
  // Safari 16
961
- "Load failed",
962
- // Safari 17+
963
959
  "Network request failed",
964
960
  // `cross-fetch`
965
961
  "fetch failed",
966
962
  // Undici (Node.js)
967
- "terminated"
963
+ "terminated",
968
964
  // Undici (Node.js)
965
+ " A network error occurred.",
966
+ // Bun (WebKit)
967
+ "Network connection lost"
968
+ // Cloudflare Workers (fetch)
969
969
  ]);
970
970
  function isNetworkError(error) {
971
971
  const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
972
972
  if (!isValid) {
973
973
  return false;
974
974
  }
975
- if (error.message === "Load failed") {
976
- return error.stack === void 0;
975
+ const { message, stack } = error;
976
+ if (message === "Load failed" || message.startsWith("Load failed (") && message.endsWith(")")) {
977
+ return stack === void 0 || "__sentry_captured__" in error;
978
+ }
979
+ if (message.startsWith("error sending request for url")) {
980
+ return true;
981
+ }
982
+ if (message === "Failed to fetch" || message.startsWith("Failed to fetch (") && message.endsWith(")")) {
983
+ return true;
977
984
  }
978
- return errorMessages.has(error.message);
985
+ return errorMessages.has(message);
979
986
  }
980
987
 
981
988
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
package/dist/index.esm.js CHANGED
@@ -414,12 +414,12 @@ var ApiClientError = class _ApiClientError extends Error {
414
414
  `${errorMessage}
415
415
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
416
416
  );
417
- this.errorMessage = errorMessage;
418
- this.fetchMethod = fetchMethod;
419
- this.fetchUri = fetchUri;
420
- this.statusCode = statusCode;
421
- this.statusText = statusText;
422
- this.requestId = requestId;
417
+ __publicField2(this, "errorMessage", errorMessage);
418
+ __publicField2(this, "fetchMethod", fetchMethod);
419
+ __publicField2(this, "fetchUri", fetchUri);
420
+ __publicField2(this, "statusCode", statusCode);
421
+ __publicField2(this, "statusText", statusText);
422
+ __publicField2(this, "requestId", requestId);
423
423
  Object.setPrototypeOf(this, _ApiClientError.prototype);
424
424
  }
425
425
  };
@@ -953,36 +953,43 @@ function validateConcurrency(concurrency) {
953
953
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
954
954
  var import_retry = __toESM(require_retry2(), 1);
955
955
 
956
- // ../../node_modules/.pnpm/is-network-error@1.1.0/node_modules/is-network-error/index.js
956
+ // ../../node_modules/.pnpm/is-network-error@1.3.2/node_modules/is-network-error/index.js
957
957
  var objectToString = Object.prototype.toString;
958
958
  var isError = (value) => objectToString.call(value) === "[object Error]";
959
959
  var errorMessages = /* @__PURE__ */ new Set([
960
960
  "network error",
961
961
  // Chrome
962
- "Failed to fetch",
963
- // Chrome
964
962
  "NetworkError when attempting to fetch resource.",
965
963
  // Firefox
966
964
  "The Internet connection appears to be offline.",
967
965
  // Safari 16
968
- "Load failed",
969
- // Safari 17+
970
966
  "Network request failed",
971
967
  // `cross-fetch`
972
968
  "fetch failed",
973
969
  // Undici (Node.js)
974
- "terminated"
970
+ "terminated",
975
971
  // Undici (Node.js)
972
+ " A network error occurred.",
973
+ // Bun (WebKit)
974
+ "Network connection lost"
975
+ // Cloudflare Workers (fetch)
976
976
  ]);
977
977
  function isNetworkError(error) {
978
978
  const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
979
979
  if (!isValid) {
980
980
  return false;
981
981
  }
982
- if (error.message === "Load failed") {
983
- return error.stack === void 0;
982
+ const { message, stack } = error;
983
+ if (message === "Load failed" || message.startsWith("Load failed (") && message.endsWith(")")) {
984
+ return stack === void 0 || "__sentry_captured__" in error;
985
+ }
986
+ if (message.startsWith("error sending request for url")) {
987
+ return true;
988
+ }
989
+ if (message === "Failed to fetch" || message.startsWith("Failed to fetch (") && message.endsWith(")")) {
990
+ return true;
984
991
  }
985
- return errorMessages.has(error.message);
992
+ return errorMessages.has(message);
986
993
  }
987
994
 
988
995
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
package/dist/index.js CHANGED
@@ -397,8 +397,8 @@ var require_retry2 = __commonJS({
397
397
  });
398
398
 
399
399
  // src/index.ts
400
- var src_exports = {};
401
- __export(src_exports, {
400
+ var index_exports = {};
401
+ __export(index_exports, {
402
402
  DefaultDataClient: () => DefaultDataClient,
403
403
  UniformComposition: () => UniformComposition,
404
404
  UniformPlayground: () => UniformPlayground,
@@ -417,7 +417,7 @@ __export(src_exports, {
417
417
  resolveRouteFromCode: () => resolveRouteFromCode,
418
418
  serverContext: () => serverContext
419
419
  });
420
- module.exports = __toCommonJS(src_exports);
420
+ module.exports = __toCommonJS(index_exports);
421
421
  var import_server_only5 = require("server-only");
422
422
 
423
423
  // src/clients/canvas.ts
@@ -441,12 +441,12 @@ var ApiClientError = class _ApiClientError extends Error {
441
441
  `${errorMessage}
442
442
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
443
443
  );
444
- this.errorMessage = errorMessage;
445
- this.fetchMethod = fetchMethod;
446
- this.fetchUri = fetchUri;
447
- this.statusCode = statusCode;
448
- this.statusText = statusText;
449
- this.requestId = requestId;
444
+ __publicField2(this, "errorMessage", errorMessage);
445
+ __publicField2(this, "fetchMethod", fetchMethod);
446
+ __publicField2(this, "fetchUri", fetchUri);
447
+ __publicField2(this, "statusCode", statusCode);
448
+ __publicField2(this, "statusText", statusText);
449
+ __publicField2(this, "requestId", requestId);
450
450
  Object.setPrototypeOf(this, _ApiClientError.prototype);
451
451
  }
452
452
  };
@@ -980,36 +980,43 @@ function validateConcurrency(concurrency) {
980
980
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
981
981
  var import_retry = __toESM(require_retry2(), 1);
982
982
 
983
- // ../../node_modules/.pnpm/is-network-error@1.1.0/node_modules/is-network-error/index.js
983
+ // ../../node_modules/.pnpm/is-network-error@1.3.2/node_modules/is-network-error/index.js
984
984
  var objectToString = Object.prototype.toString;
985
985
  var isError = (value) => objectToString.call(value) === "[object Error]";
986
986
  var errorMessages = /* @__PURE__ */ new Set([
987
987
  "network error",
988
988
  // Chrome
989
- "Failed to fetch",
990
- // Chrome
991
989
  "NetworkError when attempting to fetch resource.",
992
990
  // Firefox
993
991
  "The Internet connection appears to be offline.",
994
992
  // Safari 16
995
- "Load failed",
996
- // Safari 17+
997
993
  "Network request failed",
998
994
  // `cross-fetch`
999
995
  "fetch failed",
1000
996
  // Undici (Node.js)
1001
- "terminated"
997
+ "terminated",
1002
998
  // Undici (Node.js)
999
+ " A network error occurred.",
1000
+ // Bun (WebKit)
1001
+ "Network connection lost"
1002
+ // Cloudflare Workers (fetch)
1003
1003
  ]);
1004
1004
  function isNetworkError(error) {
1005
1005
  const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
1006
1006
  if (!isValid) {
1007
1007
  return false;
1008
1008
  }
1009
- if (error.message === "Load failed") {
1010
- return error.stack === void 0;
1009
+ const { message, stack } = error;
1010
+ if (message === "Load failed" || message.startsWith("Load failed (") && message.endsWith(")")) {
1011
+ return stack === void 0 || "__sentry_captured__" in error;
1012
+ }
1013
+ if (message.startsWith("error sending request for url")) {
1014
+ return true;
1015
+ }
1016
+ if (message === "Failed to fetch" || message.startsWith("Failed to fetch (") && message.endsWith(")")) {
1017
+ return true;
1011
1018
  }
1012
- return errorMessages.has(error.message);
1019
+ return errorMessages.has(message);
1013
1020
  }
1014
1021
 
1015
1022
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
package/dist/index.mjs CHANGED
@@ -414,12 +414,12 @@ var ApiClientError = class _ApiClientError extends Error {
414
414
  `${errorMessage}
415
415
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
416
416
  );
417
- this.errorMessage = errorMessage;
418
- this.fetchMethod = fetchMethod;
419
- this.fetchUri = fetchUri;
420
- this.statusCode = statusCode;
421
- this.statusText = statusText;
422
- this.requestId = requestId;
417
+ __publicField2(this, "errorMessage", errorMessage);
418
+ __publicField2(this, "fetchMethod", fetchMethod);
419
+ __publicField2(this, "fetchUri", fetchUri);
420
+ __publicField2(this, "statusCode", statusCode);
421
+ __publicField2(this, "statusText", statusText);
422
+ __publicField2(this, "requestId", requestId);
423
423
  Object.setPrototypeOf(this, _ApiClientError.prototype);
424
424
  }
425
425
  };
@@ -953,36 +953,43 @@ function validateConcurrency(concurrency) {
953
953
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
954
954
  var import_retry = __toESM(require_retry2(), 1);
955
955
 
956
- // ../../node_modules/.pnpm/is-network-error@1.1.0/node_modules/is-network-error/index.js
956
+ // ../../node_modules/.pnpm/is-network-error@1.3.2/node_modules/is-network-error/index.js
957
957
  var objectToString = Object.prototype.toString;
958
958
  var isError = (value) => objectToString.call(value) === "[object Error]";
959
959
  var errorMessages = /* @__PURE__ */ new Set([
960
960
  "network error",
961
961
  // Chrome
962
- "Failed to fetch",
963
- // Chrome
964
962
  "NetworkError when attempting to fetch resource.",
965
963
  // Firefox
966
964
  "The Internet connection appears to be offline.",
967
965
  // Safari 16
968
- "Load failed",
969
- // Safari 17+
970
966
  "Network request failed",
971
967
  // `cross-fetch`
972
968
  "fetch failed",
973
969
  // Undici (Node.js)
974
- "terminated"
970
+ "terminated",
975
971
  // Undici (Node.js)
972
+ " A network error occurred.",
973
+ // Bun (WebKit)
974
+ "Network connection lost"
975
+ // Cloudflare Workers (fetch)
976
976
  ]);
977
977
  function isNetworkError(error) {
978
978
  const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
979
979
  if (!isValid) {
980
980
  return false;
981
981
  }
982
- if (error.message === "Load failed") {
983
- return error.stack === void 0;
982
+ const { message, stack } = error;
983
+ if (message === "Load failed" || message.startsWith("Load failed (") && message.endsWith(")")) {
984
+ return stack === void 0 || "__sentry_captured__" in error;
985
+ }
986
+ if (message.startsWith("error sending request for url")) {
987
+ return true;
988
+ }
989
+ if (message === "Failed to fetch" || message.startsWith("Failed to fetch (") && message.endsWith(")")) {
990
+ return true;
984
991
  }
985
- return errorMessages.has(error.message);
992
+ return errorMessages.has(message);
986
993
  }
987
994
 
988
995
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
@@ -612,12 +612,12 @@ var ApiClientError = class _ApiClientError extends Error {
612
612
  `${errorMessage}
613
613
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
614
614
  );
615
- this.errorMessage = errorMessage;
616
- this.fetchMethod = fetchMethod;
617
- this.fetchUri = fetchUri;
618
- this.statusCode = statusCode;
619
- this.statusText = statusText;
620
- this.requestId = requestId;
615
+ __publicField2(this, "errorMessage", errorMessage);
616
+ __publicField2(this, "fetchMethod", fetchMethod);
617
+ __publicField2(this, "fetchUri", fetchUri);
618
+ __publicField2(this, "statusCode", statusCode);
619
+ __publicField2(this, "statusText", statusText);
620
+ __publicField2(this, "requestId", requestId);
621
621
  Object.setPrototypeOf(this, _ApiClientError.prototype);
622
622
  }
623
623
  };
@@ -1151,36 +1151,43 @@ function validateConcurrency(concurrency) {
1151
1151
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
1152
1152
  var import_retry = __toESM(require_retry2(), 1);
1153
1153
 
1154
- // ../../node_modules/.pnpm/is-network-error@1.1.0/node_modules/is-network-error/index.js
1154
+ // ../../node_modules/.pnpm/is-network-error@1.3.2/node_modules/is-network-error/index.js
1155
1155
  var objectToString = Object.prototype.toString;
1156
1156
  var isError = (value) => objectToString.call(value) === "[object Error]";
1157
1157
  var errorMessages = /* @__PURE__ */ new Set([
1158
1158
  "network error",
1159
1159
  // Chrome
1160
- "Failed to fetch",
1161
- // Chrome
1162
1160
  "NetworkError when attempting to fetch resource.",
1163
1161
  // Firefox
1164
1162
  "The Internet connection appears to be offline.",
1165
1163
  // Safari 16
1166
- "Load failed",
1167
- // Safari 17+
1168
1164
  "Network request failed",
1169
1165
  // `cross-fetch`
1170
1166
  "fetch failed",
1171
1167
  // Undici (Node.js)
1172
- "terminated"
1168
+ "terminated",
1173
1169
  // Undici (Node.js)
1170
+ " A network error occurred.",
1171
+ // Bun (WebKit)
1172
+ "Network connection lost"
1173
+ // Cloudflare Workers (fetch)
1174
1174
  ]);
1175
1175
  function isNetworkError(error) {
1176
1176
  const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
1177
1177
  if (!isValid) {
1178
1178
  return false;
1179
1179
  }
1180
- if (error.message === "Load failed") {
1181
- return error.stack === void 0;
1180
+ const { message, stack } = error;
1181
+ if (message === "Load failed" || message.startsWith("Load failed (") && message.endsWith(")")) {
1182
+ return stack === void 0 || "__sentry_captured__" in error;
1183
+ }
1184
+ if (message.startsWith("error sending request for url")) {
1185
+ return true;
1186
+ }
1187
+ if (message === "Failed to fetch" || message.startsWith("Failed to fetch (") && message.endsWith(")")) {
1188
+ return true;
1182
1189
  }
1183
- return errorMessages.has(error.message);
1190
+ return errorMessages.has(message);
1184
1191
  }
1185
1192
 
1186
1193
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
@@ -3225,7 +3232,7 @@ function dequal(foo, bar) {
3225
3232
  return foo !== foo && bar !== bar;
3226
3233
  }
3227
3234
 
3228
- // ../../node_modules/.pnpm/js-cookie@3.0.7/node_modules/js-cookie/dist/js.cookie.mjs
3235
+ // ../../node_modules/.pnpm/js-cookie@3.0.8/node_modules/js-cookie/dist/js.cookie.mjs
3229
3236
  function assign(target) {
3230
3237
  for (var i = 1; i < arguments.length; i++) {
3231
3238
  var source = arguments[i];
@@ -3291,7 +3298,7 @@ function init(converter, defaultAttributes) {
3291
3298
  if (name === found) {
3292
3299
  break;
3293
3300
  }
3294
- } catch (e) {
3301
+ } catch (_e) {
3295
3302
  }
3296
3303
  }
3297
3304
  return name ? jar[name] : jar;
@@ -4636,7 +4643,7 @@ var _LocalStorage_instances;
4636
4643
  var key_fn;
4637
4644
  var LocalStorage = class {
4638
4645
  constructor(partitionKey) {
4639
- this.partitionKey = partitionKey;
4646
+ __publicField3(this, "partitionKey", partitionKey);
4640
4647
  __privateAdd4(this, _LocalStorage_instances);
4641
4648
  __publicField3(this, "inMemoryFallback", {});
4642
4649
  __publicField3(this, "hasLocalStorageObject", typeof document !== "undefined" && typeof localStorage !== "undefined");
@@ -5962,5 +5969,5 @@ var determinePreviewMode = ({
5962
5969
  /*! Bundled license information:
5963
5970
 
5964
5971
  js-cookie/dist/js.cookie.mjs:
5965
- (*! js-cookie v3.0.7 | MIT *)
5972
+ (*! js-cookie v3.0.8 | MIT *)
5966
5973
  */
@@ -597,12 +597,12 @@ var ApiClientError = class _ApiClientError extends Error {
597
597
  `${errorMessage}
598
598
  ${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
599
599
  );
600
- this.errorMessage = errorMessage;
601
- this.fetchMethod = fetchMethod;
602
- this.fetchUri = fetchUri;
603
- this.statusCode = statusCode;
604
- this.statusText = statusText;
605
- this.requestId = requestId;
600
+ __publicField2(this, "errorMessage", errorMessage);
601
+ __publicField2(this, "fetchMethod", fetchMethod);
602
+ __publicField2(this, "fetchUri", fetchUri);
603
+ __publicField2(this, "statusCode", statusCode);
604
+ __publicField2(this, "statusText", statusText);
605
+ __publicField2(this, "requestId", requestId);
606
606
  Object.setPrototypeOf(this, _ApiClientError.prototype);
607
607
  }
608
608
  };
@@ -1136,36 +1136,43 @@ function validateConcurrency(concurrency) {
1136
1136
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
1137
1137
  var import_retry = __toESM(require_retry2(), 1);
1138
1138
 
1139
- // ../../node_modules/.pnpm/is-network-error@1.1.0/node_modules/is-network-error/index.js
1139
+ // ../../node_modules/.pnpm/is-network-error@1.3.2/node_modules/is-network-error/index.js
1140
1140
  var objectToString = Object.prototype.toString;
1141
1141
  var isError = (value) => objectToString.call(value) === "[object Error]";
1142
1142
  var errorMessages = /* @__PURE__ */ new Set([
1143
1143
  "network error",
1144
1144
  // Chrome
1145
- "Failed to fetch",
1146
- // Chrome
1147
1145
  "NetworkError when attempting to fetch resource.",
1148
1146
  // Firefox
1149
1147
  "The Internet connection appears to be offline.",
1150
1148
  // Safari 16
1151
- "Load failed",
1152
- // Safari 17+
1153
1149
  "Network request failed",
1154
1150
  // `cross-fetch`
1155
1151
  "fetch failed",
1156
1152
  // Undici (Node.js)
1157
- "terminated"
1153
+ "terminated",
1158
1154
  // Undici (Node.js)
1155
+ " A network error occurred.",
1156
+ // Bun (WebKit)
1157
+ "Network connection lost"
1158
+ // Cloudflare Workers (fetch)
1159
1159
  ]);
1160
1160
  function isNetworkError(error) {
1161
1161
  const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
1162
1162
  if (!isValid) {
1163
1163
  return false;
1164
1164
  }
1165
- if (error.message === "Load failed") {
1166
- return error.stack === void 0;
1165
+ const { message, stack } = error;
1166
+ if (message === "Load failed" || message.startsWith("Load failed (") && message.endsWith(")")) {
1167
+ return stack === void 0 || "__sentry_captured__" in error;
1168
+ }
1169
+ if (message.startsWith("error sending request for url")) {
1170
+ return true;
1171
+ }
1172
+ if (message === "Failed to fetch" || message.startsWith("Failed to fetch (") && message.endsWith(")")) {
1173
+ return true;
1167
1174
  }
1168
- return errorMessages.has(error.message);
1175
+ return errorMessages.has(message);
1169
1176
  }
1170
1177
 
1171
1178
  // ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
@@ -3217,7 +3224,7 @@ function dequal(foo, bar) {
3217
3224
  return foo !== foo && bar !== bar;
3218
3225
  }
3219
3226
 
3220
- // ../../node_modules/.pnpm/js-cookie@3.0.7/node_modules/js-cookie/dist/js.cookie.mjs
3227
+ // ../../node_modules/.pnpm/js-cookie@3.0.8/node_modules/js-cookie/dist/js.cookie.mjs
3221
3228
  function assign(target) {
3222
3229
  for (var i = 1; i < arguments.length; i++) {
3223
3230
  var source = arguments[i];
@@ -3283,7 +3290,7 @@ function init(converter, defaultAttributes) {
3283
3290
  if (name === found) {
3284
3291
  break;
3285
3292
  }
3286
- } catch (e) {
3293
+ } catch (_e) {
3287
3294
  }
3288
3295
  }
3289
3296
  return name ? jar[name] : jar;
@@ -4628,7 +4635,7 @@ var _LocalStorage_instances;
4628
4635
  var key_fn;
4629
4636
  var LocalStorage = class {
4630
4637
  constructor(partitionKey) {
4631
- this.partitionKey = partitionKey;
4638
+ __publicField3(this, "partitionKey", partitionKey);
4632
4639
  __privateAdd4(this, _LocalStorage_instances);
4633
4640
  __publicField3(this, "inMemoryFallback", {});
4634
4641
  __publicField3(this, "hasLocalStorageObject", typeof document !== "undefined" && typeof localStorage !== "undefined");
@@ -5953,5 +5960,5 @@ export {
5953
5960
  /*! Bundled license information:
5954
5961
 
5955
5962
  js-cookie/dist/js.cookie.mjs:
5956
- (*! js-cookie v3.0.7 | MIT *)
5963
+ (*! js-cookie v3.0.8 | MIT *)
5957
5964
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/next-app-router",
3
- "version": "20.69.1-alpha.10+3d89a58006",
3
+ "version": "20.70.1-alpha.10+6e0ecaf156",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -87,27 +87,27 @@
87
87
  "/dist"
88
88
  ],
89
89
  "devDependencies": {
90
- "@types/node": "20.19.25",
91
- "@types/react": "19.0.8",
92
- "@types/react-dom": "19.0.3",
93
- "next": "16.2.3",
94
- "react": "19.2.0",
95
- "react-dom": "19.2.0",
96
- "typescript": "5.9.2",
97
- "vite-tsconfig-paths": "^5.1.4",
98
- "vitest": "3.2.4"
90
+ "@types/node": "26.0.0",
91
+ "@types/react": "19.2.17",
92
+ "@types/react-dom": "19.2.3",
93
+ "next": "16.2.9",
94
+ "react": "19.2.1",
95
+ "react-dom": "19.2.1",
96
+ "typescript": "6.0.3",
97
+ "vite-tsconfig-paths": "^6.1.1",
98
+ "vitest": "4.1.9"
99
99
  },
100
100
  "dependencies": {
101
- "@uniformdev/canvas-react": "20.69.1-alpha.10+3d89a58006",
102
- "@uniformdev/next-app-router-client": "20.69.1-alpha.10+3d89a58006",
103
- "@uniformdev/next-app-router-shared": "20.69.1-alpha.10+3d89a58006",
104
- "@uniformdev/redirect": "20.69.1-alpha.10+3d89a58006",
105
- "@uniformdev/richtext": "20.69.1-alpha.10+3d89a58006",
106
- "@uniformdev/webhooks": "20.69.1-alpha.10+3d89a58006",
107
- "@vercel/functions": "^2.2.2",
101
+ "@uniformdev/canvas-react": "20.70.1-alpha.10+6e0ecaf156",
102
+ "@uniformdev/next-app-router-client": "20.70.1-alpha.10+6e0ecaf156",
103
+ "@uniformdev/next-app-router-shared": "20.70.1-alpha.10+6e0ecaf156",
104
+ "@uniformdev/redirect": "20.70.1-alpha.10+6e0ecaf156",
105
+ "@uniformdev/richtext": "20.70.1-alpha.10+6e0ecaf156",
106
+ "@uniformdev/webhooks": "20.70.1-alpha.10+6e0ecaf156",
107
+ "@vercel/functions": "^3.7.2",
108
108
  "encoding": "^0.1.13",
109
109
  "server-only": "^0.0.1",
110
- "svix": "^1.5.0"
110
+ "svix": "^1.96.0"
111
111
  },
112
112
  "engines": {
113
113
  "node": ">=20.9.0"
@@ -120,5 +120,5 @@
120
120
  "publishConfig": {
121
121
  "access": "public"
122
122
  },
123
- "gitHead": "3d89a5800698d773fd45afbcbec0bc5a3493cf0a"
123
+ "gitHead": "6e0ecaf15691da45ddab84cc3ca11c4d048bbbdd"
124
124
  }