@hot-updater/cloudflare 1.0.0-rc.26 → 1.0.0-rc.28

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/index.d.cts CHANGED
@@ -51,6 +51,8 @@ type BundleEventFailure = DatabaseJsonObject & {
51
51
  readonly transport?: "timeout" | "dns" | "tls" | "connection" | "offline" | "cancelled" | "unknown";
52
52
  /** The storage origin's error code, such as `ExpiredToken`. */
53
53
  readonly origin_code?: string;
54
+ readonly error_message?: string;
55
+ readonly error_stack?: string;
54
56
  /** Android's `ApplicationExitInfo` reason for the process before this one. */
55
57
  readonly previous_process_exit?: string;
56
58
  };
package/dist/index.d.mts CHANGED
@@ -51,6 +51,8 @@ type BundleEventFailure = DatabaseJsonObject & {
51
51
  readonly transport?: "timeout" | "dns" | "tls" | "connection" | "offline" | "cancelled" | "unknown";
52
52
  /** The storage origin's error code, such as `ExpiredToken`. */
53
53
  readonly origin_code?: string;
54
+ readonly error_message?: string;
55
+ readonly error_stack?: string;
54
56
  /** Android's `ApplicationExitInfo` reason for the process before this one. */
55
57
  readonly previous_process_exit?: string;
56
58
  };
@@ -39,6 +39,8 @@ type BundleEventFailure = DatabaseJsonObject & {
39
39
  readonly transport?: "timeout" | "dns" | "tls" | "connection" | "offline" | "cancelled" | "unknown";
40
40
  /** The storage origin's error code, such as `ExpiredToken`. */
41
41
  readonly origin_code?: string;
42
+ readonly error_message?: string;
43
+ readonly error_stack?: string;
42
44
  /** Android's `ApplicationExitInfo` reason for the process before this one. */
43
45
  readonly previous_process_exit?: string;
44
46
  };
@@ -39,6 +39,8 @@ type BundleEventFailure = DatabaseJsonObject & {
39
39
  readonly transport?: "timeout" | "dns" | "tls" | "connection" | "offline" | "cancelled" | "unknown";
40
40
  /** The storage origin's error code, such as `ExpiredToken`. */
41
41
  readonly origin_code?: string;
42
+ readonly error_message?: string;
43
+ readonly error_stack?: string;
42
44
  /** Android's `ApplicationExitInfo` reason for the process before this one. */
43
45
  readonly previous_process_exit?: string;
44
46
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/cloudflare",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.26",
4
+ "version": "1.0.0-rc.28",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
@@ -56,10 +56,10 @@
56
56
  "cloudflare": "4.2.0",
57
57
  "hono": "4.12.34",
58
58
  "uuidv7": "^1.0.2",
59
- "@hot-updater/protocol": "1.0.0-rc.26",
60
- "@hot-updater/cli-tools": "1.0.0-rc.26",
61
- "@hot-updater/plugin-core": "1.0.0-rc.26",
62
- "@hot-updater/server": "1.0.0-rc.26"
59
+ "@hot-updater/cli-tools": "1.0.0-rc.28",
60
+ "@hot-updater/protocol": "1.0.0-rc.27",
61
+ "@hot-updater/plugin-core": "1.0.0-rc.27",
62
+ "@hot-updater/server": "1.0.0-rc.28"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@cloudflare/vitest-pool-workers": "0.13.0",
@@ -75,7 +75,7 @@
75
75
  "vitest": "4.1.4",
76
76
  "wrangler": "^4.69.0",
77
77
  "xdg-app-paths": "^8.3.0",
78
- "@hot-updater/test-utils": "1.0.0-rc.26"
78
+ "@hot-updater/test-utils": "1.0.0-rc.27"
79
79
  },
80
80
  "scripts": {
81
81
  "build": "tsdown && pnpm build:worker",
@@ -1 +1 @@
1
- This folder contains the built output assets for the worker "hot-updater" generated at 2026-10-03T02:15:04.518Z.
1
+ This folder contains the built output assets for the worker "hot-updater" generated at 2026-10-03T06:35:04.811Z.
@@ -4511,7 +4511,7 @@ var createSqlAdapter = /* @__PURE__ */ __name(({ executor, tablePrefix = "", max
4511
4511
  }, "createSqlAdapter");
4512
4512
 
4513
4513
  // ../../packages/server/dist/package.mjs
4514
- var version = "1.0.0-rc.26";
4514
+ var version = "1.0.0-rc.28";
4515
4515
 
4516
4516
  // ../../packages/server/dist/version.mjs
4517
4517
  var HOT_UPDATER_SERVER_VERSION = version;
@@ -9555,7 +9555,7 @@ var apiKeys = /* @__PURE__ */ __name((options = {}) => {
9555
9555
  // ../insights/dist/server/eventRow.mjs
9556
9556
  var isOptional = /* @__PURE__ */ __name((value, key, valid) => !Object.hasOwn(value, key) || valid(value[key]), "isOptional");
9557
9557
  var isString = /* @__PURE__ */ __name((value) => typeof value === "string", "isString");
9558
- var isDatabaseBundleEventFailure = /* @__PURE__ */ __name((value) => isDatabaseJsonObject(value) && isString(value.stage) && isString(value.reason) && isOptional(value, "resource", isString) && isOptional(value, "http_status", (status) => Number.isSafeInteger(status)) && isOptional(value, "transport", isString) && isOptional(value, "origin_code", isString) && isOptional(value, "previous_process_exit", isString), "isDatabaseBundleEventFailure");
9558
+ var isDatabaseBundleEventFailure = /* @__PURE__ */ __name((value) => isDatabaseJsonObject(value) && isString(value.stage) && isString(value.reason) && isOptional(value, "resource", isString) && isOptional(value, "http_status", (status) => Number.isSafeInteger(status)) && isOptional(value, "transport", isString) && isOptional(value, "origin_code", isString) && isOptional(value, "error_message", isString) && isOptional(value, "error_stack", isString) && isOptional(value, "previous_process_exit", isString), "isDatabaseBundleEventFailure");
9559
9559
  var isDatabaseBundleEventMetadata = /* @__PURE__ */ __name((value) => isDatabaseJsonObject(value) && typeof value.cohort === "string" && (value.update_strategy === null || value.update_strategy === "fingerprint" || value.update_strategy === "appVersion") && (value.fingerprint_hash === null || typeof value.fingerprint_hash === "string") && (value.sdk_version === null || typeof value.sdk_version === "string") && isOptional(value, "failure", isDatabaseBundleEventFailure) && isOptional(value, "delivery", isString) && isOptional(value, "patch_fallback", (flag) => typeof flag === "boolean") && isOptional(value, "previous_process_exit", isString), "isDatabaseBundleEventMetadata");
9560
9560
  var isRecord5 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRecord");
9561
9561
  var isIdentity = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value.length <= 255, "isIdentity");
@@ -9876,6 +9876,8 @@ function readFailure(value) {
9876
9876
  const failure = isRecord6(value) ? value : {};
9877
9877
  const httpStatus = failure.httpStatus;
9878
9878
  const originCode = readCode(failure.originCode);
9879
+ const errorMessage = typeof failure.errorMessage === "string" && failure.errorMessage.length <= 2048 ? failure.errorMessage : void 0;
9880
+ const errorStack = typeof failure.errorStack === "string" && failure.errorStack.length <= 4096 ? failure.errorStack : void 0;
9879
9881
  const previousProcessExit = readCode(failure.previousProcessExit);
9880
9882
  return {
9881
9883
  stage: oneOf(STAGES, failure.stage),
@@ -9884,6 +9886,8 @@ function readFailure(value) {
9884
9886
  ...Number.isSafeInteger(httpStatus) && httpStatus >= 100 && httpStatus <= 599 ? { httpStatus } : {},
9885
9887
  ...failure.transport == null ? {} : { transport: oneOf(TRANSPORTS, failure.transport) },
9886
9888
  ...originCode === void 0 ? {} : { originCode },
9889
+ ...errorMessage === void 0 ? {} : { errorMessage },
9890
+ ...errorStack === void 0 ? {} : { errorStack },
9887
9891
  ...previousProcessExit === void 0 ? {} : { previousProcessExit }
9888
9892
  };
9889
9893
  }
@@ -10063,6 +10067,8 @@ function createBundleEventRow(input) {
10063
10067
  failure: {
10064
10068
  stage: failure.stage,
10065
10069
  reason: failure.reason,
10070
+ ...failure.errorMessage === void 0 ? {} : { error_message: failure.errorMessage },
10071
+ ...failure.errorStack === void 0 ? {} : { error_stack: failure.errorStack },
10066
10072
  ...failure.resource === void 0 ? {} : { resource: failure.resource },
10067
10073
  ...failure.httpStatus === void 0 ? {} : { http_status: failure.httpStatus },
10068
10074
  ...failure.transport === void 0 ? {} : { transport: failure.transport },
@@ -10228,6 +10234,8 @@ var assertEventRows = /* @__PURE__ */ __name((rows, input) => {
10228
10234
  var toFailure = /* @__PURE__ */ __name((failure) => ({
10229
10235
  stage: failure.stage,
10230
10236
  reason: failure.reason,
10237
+ ...failure.error_message === void 0 ? {} : { errorMessage: failure.error_message },
10238
+ ...failure.error_stack === void 0 ? {} : { errorStack: failure.error_stack },
10231
10239
  ...failure.resource === void 0 ? {} : { resource: failure.resource },
10232
10240
  ...failure.http_status === void 0 ? {} : { httpStatus: failure.http_status },
10233
10241
  ...failure.transport === void 0 ? {} : { transport: failure.transport },
@@ -10241,6 +10249,8 @@ var eventDetails = /* @__PURE__ */ __name(({ type, metadata }) => ({
10241
10249
  ...type === "RECOVERED" && metadata.previous_process_exit !== void 0 ? { previousProcessExit: metadata.previous_process_exit } : {}
10242
10250
  }), "eventDetails");
10243
10251
  var toEventHistoryRow = /* @__PURE__ */ __name((row) => ({
10252
+ ...row.to_release_id == null ? {} : { toReleaseId: row.to_release_id },
10253
+ ...row.metadata.sdk_version == null ? {} : { sdkVersion: row.metadata.sdk_version },
10244
10254
  appVersion: row.app_version,
10245
10255
  channel: row.channel,
10246
10256
  cohort: row.metadata.cohort,