@hot-updater/supabase 1.0.0-rc.27 → 1.0.0-rc.29

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/edge.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as plugins, n as supabaseDatabase, t as SupabaseDatabaseConfig } from "./supabaseDatabase-DVb3-y2x.cjs";
1
+ import { i as plugins, n as supabaseDatabase, t as SupabaseDatabaseConfig } from "./supabaseDatabase-CrntxXjq.cjs";
2
2
  import { StorageAdapterWith } from "@hot-updater/plugin-core";
3
3
  //#region src/supabaseEdgeFunctionStorage.d.ts
4
4
  interface SupabaseEdgeFunctionStorageConfig {
package/dist/edge.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as plugins, n as supabaseDatabase, t as SupabaseDatabaseConfig } from "./supabaseDatabase-DVb3-y2x.mjs";
1
+ import { i as plugins, n as supabaseDatabase, t as SupabaseDatabaseConfig } from "./supabaseDatabase-CrntxXjq.mjs";
2
2
  import { StorageAdapterWith } from "@hot-updater/plugin-core";
3
3
  //#region src/supabaseEdgeFunctionStorage.d.ts
4
4
  interface SupabaseEdgeFunctionStorageConfig {
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as plugins, r as SupabaseServiceRoleConfig, t as SupabaseDatabaseConfig } from "./supabaseDatabase-DVb3-y2x.cjs";
1
+ import { i as plugins, r as SupabaseServiceRoleConfig, t as SupabaseDatabaseConfig } from "./supabaseDatabase-CrntxXjq.cjs";
2
2
  import { StorageAdapterWith, ToolingDatabase } from "@hot-updater/plugin-core";
3
3
  //#region src/supabaseMigration.d.ts
4
4
  /**
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as plugins, r as SupabaseServiceRoleConfig, t as SupabaseDatabaseConfig } from "./supabaseDatabase-DVb3-y2x.mjs";
1
+ import { i as plugins, r as SupabaseServiceRoleConfig, t as SupabaseDatabaseConfig } from "./supabaseDatabase-CrntxXjq.mjs";
2
2
  import { StorageAdapterWith, ToolingDatabase } from "@hot-updater/plugin-core";
3
3
  //#region src/supabaseMigration.d.ts
4
4
  /**
@@ -1,4 +1,5 @@
1
1
  import { DatabaseJsonObject, EngineDatabase, Platform } from "@hot-updater/plugin-core";
2
+ import "@hot-updater/protocol";
2
3
  //#region ../insights/dist/server/eventRow.d.mts
3
4
  //#region src/server/eventRow.d.ts
4
5
  /** Where an update failed, and what failed; open sets, `unknown` for any other value. */
@@ -15,9 +16,19 @@ type BundleEventFailure = DatabaseJsonObject & {
15
16
  readonly transport?: "timeout" | "dns" | "tls" | "connection" | "offline" | "cancelled" | "unknown";
16
17
  /** The storage origin's error code, such as `ExpiredToken`. */
17
18
  readonly origin_code?: string;
19
+ readonly error_message?: string;
20
+ readonly error_stack?: string;
18
21
  /** Android's `ApplicationExitInfo` reason for the process before this one. */
19
22
  readonly previous_process_exit?: string;
20
23
  };
24
+ type DatabaseHttpResponse = DatabaseJsonObject & {
25
+ readonly resource: "catalog" | "artifact";
26
+ readonly path: string;
27
+ readonly status: number;
28
+ readonly body: string | null;
29
+ readonly body_truncated: boolean;
30
+ readonly received_at_ms: number;
31
+ };
21
32
  /** Ancillary report data; queryable identity and lifecycle fields stay on the row. */
22
33
  type DatabaseBundleEventMetadata = DatabaseJsonObject & {
23
34
  readonly cohort: string;
@@ -26,6 +37,7 @@ type DatabaseBundleEventMetadata = DatabaseJsonObject & {
26
37
  readonly sdk_version: string | null;
27
38
  /** `UPDATE_FAILED`: what failed. */
28
39
  readonly failure?: BundleEventFailure;
40
+ readonly http_response?: DatabaseHttpResponse;
29
41
  /** `UPDATE_DOWNLOADED`: how the bundle arrived. */
30
42
  readonly delivery?: "patch" | "manifest" | "archive" | "unknown";
31
43
  /** `UPDATE_DOWNLOADED`: a patch failed and the full files came instead. */
@@ -1,4 +1,5 @@
1
1
  import { DatabaseJsonObject, EngineDatabase, Platform } from "@hot-updater/plugin-core";
2
+ import "@hot-updater/protocol";
2
3
  //#region ../insights/dist/server/eventRow.d.mts
3
4
  //#region src/server/eventRow.d.ts
4
5
  /** Where an update failed, and what failed; open sets, `unknown` for any other value. */
@@ -15,9 +16,19 @@ type BundleEventFailure = DatabaseJsonObject & {
15
16
  readonly transport?: "timeout" | "dns" | "tls" | "connection" | "offline" | "cancelled" | "unknown";
16
17
  /** The storage origin's error code, such as `ExpiredToken`. */
17
18
  readonly origin_code?: string;
19
+ readonly error_message?: string;
20
+ readonly error_stack?: string;
18
21
  /** Android's `ApplicationExitInfo` reason for the process before this one. */
19
22
  readonly previous_process_exit?: string;
20
23
  };
24
+ type DatabaseHttpResponse = DatabaseJsonObject & {
25
+ readonly resource: "catalog" | "artifact";
26
+ readonly path: string;
27
+ readonly status: number;
28
+ readonly body: string | null;
29
+ readonly body_truncated: boolean;
30
+ readonly received_at_ms: number;
31
+ };
21
32
  /** Ancillary report data; queryable identity and lifecycle fields stay on the row. */
22
33
  type DatabaseBundleEventMetadata = DatabaseJsonObject & {
23
34
  readonly cohort: string;
@@ -26,6 +37,7 @@ type DatabaseBundleEventMetadata = DatabaseJsonObject & {
26
37
  readonly sdk_version: string | null;
27
38
  /** `UPDATE_FAILED`: what failed. */
28
39
  readonly failure?: BundleEventFailure;
40
+ readonly http_response?: DatabaseHttpResponse;
29
41
  /** `UPDATE_DOWNLOADED`: how the bundle arrived. */
30
42
  readonly delivery?: "patch" | "manifest" | "archive" | "unknown";
31
43
  /** `UPDATE_DOWNLOADED`: a patch failed and the full files came instead. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/supabase",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.27",
4
+ "version": "1.0.0-rc.29",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
@@ -51,10 +51,10 @@
51
51
  "@supabase/supabase-js": "2.76.1",
52
52
  "hono": "4.12.34",
53
53
  "uuidv7": "^1.0.2",
54
- "@hot-updater/protocol": "1.0.0-rc.27",
55
- "@hot-updater/cli-tools": "1.0.0-rc.27",
56
- "@hot-updater/plugin-core": "1.0.0-rc.27",
57
- "@hot-updater/server": "1.0.0-rc.27"
54
+ "@hot-updater/protocol": "1.0.0-rc.28",
55
+ "@hot-updater/plugin-core": "1.0.0-rc.28",
56
+ "@hot-updater/cli-tools": "1.0.0-rc.29",
57
+ "@hot-updater/server": "1.0.0-rc.29"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@electric-sql/pglite": "0.4.1",
@@ -64,9 +64,9 @@
64
64
  "execa": "9.5.2",
65
65
  "@types/node": "^20",
66
66
  "mime": "^4.0.4",
67
- "@hot-updater/mock": "1.0.0-rc.27",
68
- "@hot-updater/postgres": "1.0.0-rc.27",
69
- "@hot-updater/test-utils": "1.0.0-rc.27"
67
+ "@hot-updater/mock": "1.0.0-rc.28",
68
+ "@hot-updater/test-utils": "1.0.0-rc.28",
69
+ "@hot-updater/postgres": "1.0.0-rc.29"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "tsdown",