@hot-updater/supabase 1.0.0-rc.32 → 1.0.0-rc.34

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-DI1nx1KE.cjs";
1
+ import { i as plugins, n as supabaseDatabase, t as SupabaseDatabaseConfig } from "./supabaseDatabase-8UJoPfkM.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-DI1nx1KE.mjs";
1
+ import { i as plugins, n as supabaseDatabase, t as SupabaseDatabaseConfig } from "./supabaseDatabase-8UJoPfkM.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-DI1nx1KE.cjs";
1
+ import { i as plugins, r as SupabaseServiceRoleConfig, t as SupabaseDatabaseConfig } from "./supabaseDatabase-8UJoPfkM.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-DI1nx1KE.mjs";
1
+ import { i as plugins, r as SupabaseServiceRoleConfig, t as SupabaseDatabaseConfig } from "./supabaseDatabase-8UJoPfkM.mjs";
2
2
  import { StorageAdapterWith, ToolingDatabase } from "@hot-updater/plugin-core";
3
3
  //#region src/supabaseMigration.d.ts
4
4
  /**
@@ -18,8 +18,6 @@ type BundleEventFailure = DatabaseJsonObject & {
18
18
  readonly origin_code?: string;
19
19
  readonly error_message?: string;
20
20
  readonly error_stack?: string;
21
- /** Android's `ApplicationExitInfo` reason for the process before this one. */
22
- readonly previous_process_exit?: string;
23
21
  };
24
22
  type DatabaseHttpResponse = DatabaseJsonObject & {
25
23
  readonly resource: "catalog" | "artifact";
@@ -42,8 +40,6 @@ type DatabaseBundleEventMetadata = DatabaseJsonObject & {
42
40
  readonly delivery?: "patch" | "manifest" | "archive" | "unknown";
43
41
  /** `UPDATE_DOWNLOADED`: a patch failed and the full files came instead. */
44
42
  readonly patch_fallback?: boolean;
45
- /** `RECOVERED`: Android's `ApplicationExitInfo` reason for the crashed process. */
46
- readonly previous_process_exit?: string;
47
43
  };
48
44
  type BundleEventRowBase = {
49
45
  readonly id: string;
@@ -168,8 +164,11 @@ type InsightsCoverage = {
168
164
  * which are kept.
169
165
  */
170
166
  interface ReleaseActivityMetrics {
167
+ /** Download reports of the release. */
171
168
  readonly downloads: number;
172
- readonly launches: number;
169
+ /** Apply reports of the release: installations that started running it. */
170
+ readonly applies: number;
171
+ /** Launches that crashed on the release and recovered to the one before. */
173
172
  readonly failedLaunches: number;
174
173
  }
175
174
  interface InsightsGetReleaseActivityInput {
@@ -269,17 +268,6 @@ interface InsightsUpdateFailures {
269
268
  };
270
269
  /** Over a time range: failures by stage and reason, most first. */
271
270
  readonly breakdown?: readonly InsightsFailureBreakdown[];
272
- /**
273
- * Over a time range: failed launches, and the recoveries whose crashed
274
- * process exited for a reason Android 11+ reported, by reason, most first.
275
- */
276
- readonly recoveries?: {
277
- readonly failedLaunches: number;
278
- readonly byExitReason: readonly {
279
- readonly exitReason: string;
280
- readonly events: number;
281
- }[];
282
- };
283
271
  }
284
272
  //#endregion
285
273
  //#region ../api-keys/dist/server/model.d.mts
@@ -447,7 +435,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
447
435
  readonly bucket_start_ms: {
448
436
  readonly type: "integer";
449
437
  };
450
- }, "downloads" | "launches" | "failed_launches" | "failed_updates" | "patch_downloads" | "patch_fallbacks", {
438
+ }, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks", {
451
439
  readonly window: {
452
440
  readonly eq: readonly ["identity"];
453
441
  readonly sort: readonly ["bucket_start_ms"];
@@ -475,7 +463,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
475
463
  readonly bucket_start_ms: {
476
464
  readonly type: "integer";
477
465
  };
478
- }, "downloads" | "launches" | "failed_launches" | "failed_updates" | "patch_downloads" | "patch_fallbacks", {
466
+ }, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks", {
479
467
  readonly window: {
480
468
  readonly eq: readonly ["identity"];
481
469
  readonly sort: readonly ["bucket_start_ms"];
@@ -503,7 +491,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
503
491
  readonly bucket_start_ms: {
504
492
  readonly type: "integer";
505
493
  };
506
- }, "downloads" | "launches" | "failed_launches" | "failed_updates" | "patch_downloads" | "patch_fallbacks", {
494
+ }, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks" | "applies" | "failed_updates", {
507
495
  readonly window: {
508
496
  readonly eq: readonly ["identity"];
509
497
  readonly sort: readonly ["bucket_start_ms"];
@@ -18,8 +18,6 @@ type BundleEventFailure = DatabaseJsonObject & {
18
18
  readonly origin_code?: string;
19
19
  readonly error_message?: string;
20
20
  readonly error_stack?: string;
21
- /** Android's `ApplicationExitInfo` reason for the process before this one. */
22
- readonly previous_process_exit?: string;
23
21
  };
24
22
  type DatabaseHttpResponse = DatabaseJsonObject & {
25
23
  readonly resource: "catalog" | "artifact";
@@ -42,8 +40,6 @@ type DatabaseBundleEventMetadata = DatabaseJsonObject & {
42
40
  readonly delivery?: "patch" | "manifest" | "archive" | "unknown";
43
41
  /** `UPDATE_DOWNLOADED`: a patch failed and the full files came instead. */
44
42
  readonly patch_fallback?: boolean;
45
- /** `RECOVERED`: Android's `ApplicationExitInfo` reason for the crashed process. */
46
- readonly previous_process_exit?: string;
47
43
  };
48
44
  type BundleEventRowBase = {
49
45
  readonly id: string;
@@ -168,8 +164,11 @@ type InsightsCoverage = {
168
164
  * which are kept.
169
165
  */
170
166
  interface ReleaseActivityMetrics {
167
+ /** Download reports of the release. */
171
168
  readonly downloads: number;
172
- readonly launches: number;
169
+ /** Apply reports of the release: installations that started running it. */
170
+ readonly applies: number;
171
+ /** Launches that crashed on the release and recovered to the one before. */
173
172
  readonly failedLaunches: number;
174
173
  }
175
174
  interface InsightsGetReleaseActivityInput {
@@ -269,17 +268,6 @@ interface InsightsUpdateFailures {
269
268
  };
270
269
  /** Over a time range: failures by stage and reason, most first. */
271
270
  readonly breakdown?: readonly InsightsFailureBreakdown[];
272
- /**
273
- * Over a time range: failed launches, and the recoveries whose crashed
274
- * process exited for a reason Android 11+ reported, by reason, most first.
275
- */
276
- readonly recoveries?: {
277
- readonly failedLaunches: number;
278
- readonly byExitReason: readonly {
279
- readonly exitReason: string;
280
- readonly events: number;
281
- }[];
282
- };
283
271
  }
284
272
  //#endregion
285
273
  //#region ../api-keys/dist/server/model.d.mts
@@ -447,7 +435,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
447
435
  readonly bucket_start_ms: {
448
436
  readonly type: "integer";
449
437
  };
450
- }, "downloads" | "launches" | "failed_launches" | "failed_updates" | "patch_downloads" | "patch_fallbacks", {
438
+ }, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks", {
451
439
  readonly window: {
452
440
  readonly eq: readonly ["identity"];
453
441
  readonly sort: readonly ["bucket_start_ms"];
@@ -475,7 +463,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
475
463
  readonly bucket_start_ms: {
476
464
  readonly type: "integer";
477
465
  };
478
- }, "downloads" | "launches" | "failed_launches" | "failed_updates" | "patch_downloads" | "patch_fallbacks", {
466
+ }, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks", {
479
467
  readonly window: {
480
468
  readonly eq: readonly ["identity"];
481
469
  readonly sort: readonly ["bucket_start_ms"];
@@ -503,7 +491,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
503
491
  readonly bucket_start_ms: {
504
492
  readonly type: "integer";
505
493
  };
506
- }, "downloads" | "launches" | "failed_launches" | "failed_updates" | "patch_downloads" | "patch_fallbacks", {
494
+ }, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks" | "applies" | "failed_updates", {
507
495
  readonly window: {
508
496
  readonly eq: readonly ["identity"];
509
497
  readonly sort: readonly ["bucket_start_ms"];
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.32",
4
+ "version": "1.0.0-rc.34",
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.29",
55
- "@hot-updater/plugin-core": "1.0.0-rc.29",
56
- "@hot-updater/cli-tools": "1.0.0-rc.32",
57
- "@hot-updater/server": "1.0.0-rc.32"
54
+ "@hot-updater/protocol": "1.0.0-rc.30",
55
+ "@hot-updater/plugin-core": "1.0.0-rc.30",
56
+ "@hot-updater/cli-tools": "1.0.0-rc.34",
57
+ "@hot-updater/server": "1.0.0-rc.34"
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.29",
68
- "@hot-updater/test-utils": "1.0.0-rc.30",
69
- "@hot-updater/postgres": "1.0.0-rc.32"
67
+ "@hot-updater/mock": "1.0.0-rc.30",
68
+ "@hot-updater/test-utils": "1.0.0-rc.32",
69
+ "@hot-updater/postgres": "1.0.0-rc.34"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "tsdown",
@@ -50,7 +50,7 @@ CREATE INDEX IF NOT EXISTS "hot_updater_v1_bundle_event_heads_byUser" ON "hot_up
50
50
 
51
51
  CREATE INDEX IF NOT EXISTS "hot_updater_v1_bundle_event_heads__retention" ON "hot_updater_v1_bundle_event_heads" ("received_at_ms", "install_id");
52
52
 
53
- CREATE TABLE IF NOT EXISTS "hot_updater_v1_insights_overview" ("identity" varchar(32) COLLATE "C" NOT NULL, "bucket_start_ms" bigint NOT NULL, "_shard" bigint NOT NULL, "downloads" bigint NOT NULL, "launches" bigint NOT NULL, "failed_launches" bigint NOT NULL, "failed_updates" bigint NOT NULL, "patch_downloads" bigint NOT NULL, "patch_fallbacks" bigint NOT NULL, "_v" bigint NOT NULL DEFAULT 0, PRIMARY KEY ("identity", "bucket_start_ms", "_shard"));
53
+ CREATE TABLE IF NOT EXISTS "hot_updater_v1_insights_overview" ("identity" varchar(32) COLLATE "C" NOT NULL, "bucket_start_ms" bigint NOT NULL, "_shard" bigint NOT NULL, "downloads" bigint NOT NULL, "failed_launches" bigint NOT NULL, "patch_downloads" bigint NOT NULL, "patch_fallbacks" bigint NOT NULL, "_v" bigint NOT NULL DEFAULT 0, PRIMARY KEY ("identity", "bucket_start_ms", "_shard"));
54
54
 
55
55
  CREATE INDEX IF NOT EXISTS "hot_updater_v1_insights_overview__retention" ON "hot_updater_v1_insights_overview" ("bucket_start_ms", "identity", "_shard");
56
56
 
@@ -58,7 +58,7 @@ CREATE TABLE IF NOT EXISTS "hot_updater_v1_insights_sketches" ("identity" varcha
58
58
 
59
59
  CREATE INDEX IF NOT EXISTS "hot_updater_v1_insights_sketches__retention" ON "hot_updater_v1_insights_sketches" ("bucket_start_ms", "identity", "_shard");
60
60
 
61
- CREATE TABLE IF NOT EXISTS "hot_updater_v1_insights_overview_daily" ("identity" varchar(32) COLLATE "C" NOT NULL, "bucket_start_ms" bigint NOT NULL, "_shard" bigint NOT NULL, "downloads" bigint NOT NULL, "launches" bigint NOT NULL, "failed_launches" bigint NOT NULL, "failed_updates" bigint NOT NULL, "patch_downloads" bigint NOT NULL, "patch_fallbacks" bigint NOT NULL, "_v" bigint NOT NULL DEFAULT 0, PRIMARY KEY ("identity", "bucket_start_ms", "_shard"));
61
+ CREATE TABLE IF NOT EXISTS "hot_updater_v1_insights_overview_daily" ("identity" varchar(32) COLLATE "C" NOT NULL, "bucket_start_ms" bigint NOT NULL, "_shard" bigint NOT NULL, "downloads" bigint NOT NULL, "failed_launches" bigint NOT NULL, "patch_downloads" bigint NOT NULL, "patch_fallbacks" bigint NOT NULL, "_v" bigint NOT NULL DEFAULT 0, PRIMARY KEY ("identity", "bucket_start_ms", "_shard"));
62
62
 
63
63
  CREATE INDEX IF NOT EXISTS "hot_updater_v1_insights_overview_daily__retention" ON "hot_updater_v1_insights_overview_daily" ("bucket_start_ms", "identity", "_shard");
64
64
 
@@ -66,7 +66,7 @@ CREATE TABLE IF NOT EXISTS "hot_updater_v1_insights_sketches_daily" ("identity"
66
66
 
67
67
  CREATE INDEX IF NOT EXISTS "hot_updater_v1_insights_sketches_daily__retention" ON "hot_updater_v1_insights_sketches_daily" ("bucket_start_ms", "identity", "_shard");
68
68
 
69
- CREATE TABLE IF NOT EXISTS "hot_updater_v1_insights_overview_lifetime" ("identity" varchar(32) COLLATE "C" NOT NULL, "bucket_start_ms" bigint NOT NULL, "_shard" bigint NOT NULL, "downloads" bigint NOT NULL, "launches" bigint NOT NULL, "failed_launches" bigint NOT NULL, "failed_updates" bigint NOT NULL, "patch_downloads" bigint NOT NULL, "patch_fallbacks" bigint NOT NULL, "_v" bigint NOT NULL DEFAULT 0, PRIMARY KEY ("identity", "bucket_start_ms", "_shard"));
69
+ CREATE TABLE IF NOT EXISTS "hot_updater_v1_insights_overview_lifetime" ("identity" varchar(32) COLLATE "C" NOT NULL, "bucket_start_ms" bigint NOT NULL, "_shard" bigint NOT NULL, "downloads" bigint NOT NULL, "failed_launches" bigint NOT NULL, "patch_downloads" bigint NOT NULL, "patch_fallbacks" bigint NOT NULL, "applies" bigint NOT NULL, "failed_updates" bigint NOT NULL, "_v" bigint NOT NULL DEFAULT 0, PRIMARY KEY ("identity", "bucket_start_ms", "_shard"));
70
70
 
71
71
  CREATE TABLE IF NOT EXISTS "hot_updater_v1_insights_sketches_lifetime" ("identity" varchar(32) COLLATE "C" NOT NULL, "bucket_start_ms" bigint NOT NULL, "_shard" bigint NOT NULL, "failed_users" text COLLATE "C", "_v" bigint NOT NULL DEFAULT 0, PRIMARY KEY ("identity", "bucket_start_ms", "_shard"));
72
72
 
@@ -196,6 +196,6 @@ INSERT INTO "hot_updater_v1_private_hot_updater_settings" ("key", "value", "_v")
196
196
 
197
197
  INSERT INTO "hot_updater_v1_private_hot_updater_settings" ("key", "value", "_v") VALUES ('schema.core', '1.0.0', 0) ON CONFLICT ("key") DO UPDATE SET "value" = excluded."value";
198
198
 
199
- INSERT INTO "hot_updater_v1_private_hot_updater_settings" ("key", "value", "_v") VALUES ('schema.insights', '1.2.0', 0) ON CONFLICT ("key") DO UPDATE SET "value" = excluded."value";
199
+ INSERT INTO "hot_updater_v1_private_hot_updater_settings" ("key", "value", "_v") VALUES ('schema.insights', '1.0.0', 0) ON CONFLICT ("key") DO UPDATE SET "value" = excluded."value";
200
200
 
201
201
  INSERT INTO "hot_updater_v1_private_hot_updater_settings" ("key", "value", "_v") VALUES ('schema.apiKeys', '1.0.0', 0) ON CONFLICT ("key") DO UPDATE SET "value" = excluded."value";