@hot-updater/supabase 1.0.0-rc.32 → 1.0.0-rc.33
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 +1 -1
- package/dist/edge.d.mts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/{supabaseDatabase-DI1nx1KE.d.cts → supabaseDatabase-BAhAhyKE.d.cts} +7 -4
- package/dist/{supabaseDatabase-DI1nx1KE.d.mts → supabaseDatabase-BAhAhyKE.d.mts} +7 -4
- package/package.json +5 -5
- package/supabase/migrations/20260818000000_hot-updater_1.0.0.sql +4 -4
package/dist/edge.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as plugins, n as supabaseDatabase, t as SupabaseDatabaseConfig } from "./supabaseDatabase-
|
|
1
|
+
import { i as plugins, n as supabaseDatabase, t as SupabaseDatabaseConfig } from "./supabaseDatabase-BAhAhyKE.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-
|
|
1
|
+
import { i as plugins, n as supabaseDatabase, t as SupabaseDatabaseConfig } from "./supabaseDatabase-BAhAhyKE.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-
|
|
1
|
+
import { i as plugins, r as SupabaseServiceRoleConfig, t as SupabaseDatabaseConfig } from "./supabaseDatabase-BAhAhyKE.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-
|
|
1
|
+
import { i as plugins, r as SupabaseServiceRoleConfig, t as SupabaseDatabaseConfig } from "./supabaseDatabase-BAhAhyKE.mjs";
|
|
2
2
|
import { StorageAdapterWith, ToolingDatabase } from "@hot-updater/plugin-core";
|
|
3
3
|
//#region src/supabaseMigration.d.ts
|
|
4
4
|
/**
|
|
@@ -168,8 +168,11 @@ type InsightsCoverage = {
|
|
|
168
168
|
* which are kept.
|
|
169
169
|
*/
|
|
170
170
|
interface ReleaseActivityMetrics {
|
|
171
|
+
/** Download reports of the release. */
|
|
171
172
|
readonly downloads: number;
|
|
172
|
-
|
|
173
|
+
/** Apply reports of the release: installations that started running it. */
|
|
174
|
+
readonly applies: number;
|
|
175
|
+
/** Launches that crashed on the release and recovered to the one before. */
|
|
173
176
|
readonly failedLaunches: number;
|
|
174
177
|
}
|
|
175
178
|
interface InsightsGetReleaseActivityInput {
|
|
@@ -447,7 +450,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
|
|
|
447
450
|
readonly bucket_start_ms: {
|
|
448
451
|
readonly type: "integer";
|
|
449
452
|
};
|
|
450
|
-
}, "downloads" | "
|
|
453
|
+
}, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks", {
|
|
451
454
|
readonly window: {
|
|
452
455
|
readonly eq: readonly ["identity"];
|
|
453
456
|
readonly sort: readonly ["bucket_start_ms"];
|
|
@@ -475,7 +478,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
|
|
|
475
478
|
readonly bucket_start_ms: {
|
|
476
479
|
readonly type: "integer";
|
|
477
480
|
};
|
|
478
|
-
}, "downloads" | "
|
|
481
|
+
}, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks", {
|
|
479
482
|
readonly window: {
|
|
480
483
|
readonly eq: readonly ["identity"];
|
|
481
484
|
readonly sort: readonly ["bucket_start_ms"];
|
|
@@ -503,7 +506,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
|
|
|
503
506
|
readonly bucket_start_ms: {
|
|
504
507
|
readonly type: "integer";
|
|
505
508
|
};
|
|
506
|
-
}, "downloads" | "
|
|
509
|
+
}, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks" | "applies" | "failed_updates", {
|
|
507
510
|
readonly window: {
|
|
508
511
|
readonly eq: readonly ["identity"];
|
|
509
512
|
readonly sort: readonly ["bucket_start_ms"];
|
|
@@ -168,8 +168,11 @@ type InsightsCoverage = {
|
|
|
168
168
|
* which are kept.
|
|
169
169
|
*/
|
|
170
170
|
interface ReleaseActivityMetrics {
|
|
171
|
+
/** Download reports of the release. */
|
|
171
172
|
readonly downloads: number;
|
|
172
|
-
|
|
173
|
+
/** Apply reports of the release: installations that started running it. */
|
|
174
|
+
readonly applies: number;
|
|
175
|
+
/** Launches that crashed on the release and recovered to the one before. */
|
|
173
176
|
readonly failedLaunches: number;
|
|
174
177
|
}
|
|
175
178
|
interface InsightsGetReleaseActivityInput {
|
|
@@ -447,7 +450,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
|
|
|
447
450
|
readonly bucket_start_ms: {
|
|
448
451
|
readonly type: "integer";
|
|
449
452
|
};
|
|
450
|
-
}, "downloads" | "
|
|
453
|
+
}, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks", {
|
|
451
454
|
readonly window: {
|
|
452
455
|
readonly eq: readonly ["identity"];
|
|
453
456
|
readonly sort: readonly ["bucket_start_ms"];
|
|
@@ -475,7 +478,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
|
|
|
475
478
|
readonly bucket_start_ms: {
|
|
476
479
|
readonly type: "integer";
|
|
477
480
|
};
|
|
478
|
-
}, "downloads" | "
|
|
481
|
+
}, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks", {
|
|
479
482
|
readonly window: {
|
|
480
483
|
readonly eq: readonly ["identity"];
|
|
481
484
|
readonly sort: readonly ["bucket_start_ms"];
|
|
@@ -503,7 +506,7 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
|
|
|
503
506
|
readonly bucket_start_ms: {
|
|
504
507
|
readonly type: "integer";
|
|
505
508
|
};
|
|
506
|
-
}, "downloads" | "
|
|
509
|
+
}, "downloads" | "failed_launches" | "patch_downloads" | "patch_fallbacks" | "applies" | "failed_updates", {
|
|
507
510
|
readonly window: {
|
|
508
511
|
readonly eq: readonly ["identity"];
|
|
509
512
|
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.
|
|
4
|
+
"version": "1.0.0-rc.33",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"uuidv7": "^1.0.2",
|
|
54
54
|
"@hot-updater/protocol": "1.0.0-rc.29",
|
|
55
55
|
"@hot-updater/plugin-core": "1.0.0-rc.29",
|
|
56
|
-
"@hot-updater/cli-tools": "1.0.0-rc.
|
|
57
|
-
"@hot-updater/server": "1.0.0-rc.
|
|
56
|
+
"@hot-updater/cli-tools": "1.0.0-rc.33",
|
|
57
|
+
"@hot-updater/server": "1.0.0-rc.33"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@electric-sql/pglite": "0.4.1",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@types/node": "^20",
|
|
66
66
|
"mime": "^4.0.4",
|
|
67
67
|
"@hot-updater/mock": "1.0.0-rc.29",
|
|
68
|
-
"@hot-updater/test-utils": "1.0.0-rc.
|
|
69
|
-
"@hot-updater/postgres": "1.0.0-rc.
|
|
68
|
+
"@hot-updater/test-utils": "1.0.0-rc.31",
|
|
69
|
+
"@hot-updater/postgres": "1.0.0-rc.33"
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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.
|
|
199
|
+
INSERT INTO "hot_updater_v1_private_hot_updater_settings" ("key", "value", "_v") VALUES ('schema.insights', '1.4.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";
|