@hot-updater/supabase 1.0.0-rc.3 → 1.0.0-rc.4

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.
@@ -7140,6 +7140,9 @@ const pushDB = async (workdir, { accessToken, dbPassword }) => {
7140
7140
  ], {
7141
7141
  cwd: workdir,
7142
7142
  env: getSupabaseCommandEnv(accessToken, dbPassword)
7143
+ }).catch((error) => {
7144
+ if (error instanceof ExecaError && [error.stderr, error.stdout].some((output) => typeof output === "string" && /relation \\?"supabase_migrations\.schema_migrations\\?" does not exist/.test(output))) return;
7145
+ throw error;
7143
7146
  });
7144
7147
  const dbPush = await execa("npx", [
7145
7148
  "supabase",
@@ -7135,6 +7135,9 @@ const pushDB = async (workdir, { accessToken, dbPassword }) => {
7135
7135
  ], {
7136
7136
  cwd: workdir,
7137
7137
  env: getSupabaseCommandEnv(accessToken, dbPassword)
7138
+ }).catch((error) => {
7139
+ if (error instanceof ExecaError && [error.stderr, error.stdout].some((output) => typeof output === "string" && /relation \\?"supabase_migrations\.schema_migrations\\?" does not exist/.test(output))) return;
7140
+ throw error;
7138
7141
  });
7139
7142
  const dbPush = await execa("npx", [
7140
7143
  "supabase",
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.3",
4
+ "version": "1.0.0-rc.4",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
@@ -57,9 +57,9 @@
57
57
  "hono": "4.12.34",
58
58
  "uuidv7": "^1.0.2",
59
59
  "@hot-updater/core": "1.0.0-rc.0",
60
- "@hot-updater/plugin-core": "1.0.0-rc.2",
61
- "@hot-updater/cli-tools": "1.0.0-rc.2",
62
- "@hot-updater/server": "1.0.0-rc.2"
60
+ "@hot-updater/plugin-core": "1.0.0-rc.3",
61
+ "@hot-updater/cli-tools": "1.0.0-rc.3",
62
+ "@hot-updater/server": "1.0.0-rc.3"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@electric-sql/pglite": "0.4.1",
@@ -69,9 +69,9 @@
69
69
  "execa": "9.5.2",
70
70
  "@types/node": "^20",
71
71
  "mime": "^4.0.4",
72
- "@hot-updater/mock": "1.0.0-rc.2",
73
- "@hot-updater/test-utils": "1.0.0-rc.2",
74
- "@hot-updater/postgres": "1.0.0-rc.2"
72
+ "@hot-updater/test-utils": "1.0.0-rc.3",
73
+ "@hot-updater/mock": "1.0.0-rc.3",
74
+ "@hot-updater/postgres": "1.0.0-rc.3"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "tsdown",
@@ -117,13 +117,13 @@ CREATE TABLE public.hot_updater_v1_bundle_events (
117
117
  sdk_version text,
118
118
  received_at_ms double precision NOT NULL,
119
119
  CONSTRAINT hot_updater_v1_bundle_events_type_check CHECK (
120
- type IN ('UPDATE_APPLIED', 'RECOVERED', 'RELEASE_ADOPTED', 'UNCHANGED')
120
+ type IN ('UPDATE_APPLIED', 'RECOVERED', 'UNCHANGED')
121
121
  ),
122
122
  CONSTRAINT hot_updater_v1_bundle_events_platform_check CHECK (
123
123
  platform IN ('ios', 'android')
124
124
  ),
125
125
  CONSTRAINT hot_updater_v1_bundle_events_shape_check CHECK (
126
- (type IN ('UPDATE_APPLIED', 'RECOVERED', 'RELEASE_ADOPTED')
126
+ (type IN ('UPDATE_APPLIED', 'RECOVERED')
127
127
  AND from_bundle_id IS NOT NULL
128
128
  AND update_strategy IS NOT NULL
129
129
  AND update_strategy IN ('fingerprint', 'appVersion'))
@@ -141,7 +141,7 @@ CREATE TABLE public.hot_updater_v1_bundle_installations (
141
141
  username text,
142
142
  to_bundle_id uuid NOT NULL,
143
143
  type text NOT NULL CHECK (
144
- type IN ('UPDATE_APPLIED', 'RECOVERED', 'RELEASE_ADOPTED', 'UNCHANGED')
144
+ type IN ('UPDATE_APPLIED', 'RECOVERED', 'UNCHANGED')
145
145
  ),
146
146
  platform text COLLATE "C" NOT NULL CHECK (platform IN ('ios', 'android')),
147
147
  app_version text NOT NULL,