Skip to content

Commit bd5f924

Browse files
committed
upgrade supabase
1 parent 884652b commit bd5f924

File tree

11 files changed

+290
-102
lines changed

11 files changed

+290
-102
lines changed

.snaplet/snaplet.d.ts

+48-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ type Enum_public_key_type_enum = 'ES256';
1616
type Enum_public_lookup_type_enum = 'address' | 'phone' | 'refcode' | 'sendid' | 'tag';
1717
type Enum_public_tag_status = 'confirmed' | 'pending';
1818
type Enum_public_verification_type = 'tag_referral' | 'tag_registration';
19+
type Enum_realtime_action = 'DELETE' | 'ERROR' | 'INSERT' | 'TRUNCATE' | 'UPDATE';
20+
type Enum_realtime_equality_op = 'eq' | 'gt' | 'gte' | 'in' | 'lt' | 'lte' | 'neq';
1921
interface Table_net_http_response {
2022
id: number | null;
2123
status_code: number | null;
@@ -199,6 +201,13 @@ interface Table_private_leaderboard_referrals_all_time {
199201
rewards_usdc: number | null;
200202
updated_at: string | null;
201203
}
204+
interface Table_realtime_messages {
205+
id: number;
206+
topic: string;
207+
extension: string;
208+
inserted_at: string;
209+
updated_at: string;
210+
}
202211
interface Table_auth_mfa_amr_claims {
203212
session_id: string;
204213
created_at: string;
@@ -333,6 +342,10 @@ interface Table_auth_saml_relay_states {
333342
interface Table_auth_schema_migrations {
334343
version: string;
335344
}
345+
interface Table_realtime_schema_migrations {
346+
version: number;
347+
inserted_at: string | null;
348+
}
336349
interface Table_supabase_migrations_schema_migrations {
337350
version: string;
338351
statements: string[] | null;
@@ -525,6 +538,34 @@ interface Table_auth_sso_providers {
525538
created_at: string | null;
526539
updated_at: string | null;
527540
}
541+
interface Table_realtime_subscription {
542+
id: number;
543+
subscription_id: string;
544+
/**
545+
* We couldn't determine the type of this column. The type might be coming from an unknown extension
546+
* or be specific to your database. Please if it's a common used type report this issue so we can fix it!
547+
* Otherwise, please manually type this column by casting it to the correct type.
548+
* @example
549+
* Here is a cast example for copycat use:
550+
* ```
551+
* copycat.scramble(row.unknownColumn as string)
552+
* ```
553+
*/
554+
entity: unknown;
555+
/**
556+
* We couldn't determine the type of this column. The type might be coming from an unknown extension
557+
* or be specific to your database. Please if it's a common used type report this issue so we can fix it!
558+
* Otherwise, please manually type this column by casting it to the correct type.
559+
* @example
560+
* Here is a cast example for copycat use:
561+
* ```
562+
* copycat.scramble(row.unknownColumn as string)
563+
* ```
564+
*/
565+
filters: unknown[];
566+
claims: Json;
567+
created_at: string;
568+
}
528569
interface Table_public_tag_receipts {
529570
tag_name: string;
530571
hash: string | null;
@@ -612,6 +653,9 @@ interface Schema_analytics {
612653
}
613654
interface Schema_realtime {
614655

656+
}
657+
interface Schema_supavisor {
658+
615659
}
616660
interface Schema_auth {
617661
audit_log_entries: Table_auth_audit_log_entries;
@@ -687,7 +731,9 @@ interface Schema_public {
687731
webauthn_credentials: Table_public_webauthn_credentials;
688732
}
689733
interface Schema_realtime {
690-
734+
messages: Table_realtime_messages;
735+
schema_migrations: Table_realtime_schema_migrations;
736+
subscription: Table_realtime_subscription;
691737
}
692738
interface Schema_shovel {
693739
ig_updates: Table_shovel_ig_updates;
@@ -715,6 +761,7 @@ interface Schema_vault {
715761
interface Database {
716762
_analytics: Schema__analytics;
717763
_realtime: Schema__realtime;
764+
_supavisor: Schema__supavisor;
718765
auth: Schema_auth;
719766
dbdev: Schema_dbdev;
720767
extensions: Schema_extensions;

apps/distributor/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@my/supabase": "workspace:*",
2222
"@my/wagmi": "workspace:*",
2323
"@openzeppelin/merkle-tree": "1.0.5",
24-
"@supabase/supabase-js": "2.44.2",
24+
"@supabase/supabase-js": "^2.45.0",
2525
"@wagmi/core": "^2.13.1",
2626
"app": "workspace:*",
2727
"express": "^4.19.2",

apps/next/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"@my/ui": "workspace:*",
2020
"@my/wagmi": "workspace:*",
2121
"@plaiceholder/next": "^3.0.0",
22-
"@supabase/auth-helpers-react": "0.5.0",
23-
"@supabase/supabase-js": "2.44.2",
22+
"@supabase/auth-helpers-react": "^0.5.0",
23+
"@supabase/supabase-js": "^2.45.0",
2424
"@tamagui/next-theme": "^1.101.7",
2525
"@tanstack/react-query": "^5.18.1",
2626
"@tanstack/react-query-devtools": "^5.18.1",

packages/api/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dependencies": {
77
"@my/supabase": "workspace:*",
88
"@my/wagmi": "workspace:*",
9-
"@supabase/supabase-js": "2.44.2",
9+
"@supabase/supabase-js": "^2.45.0",
1010
"@tanstack/react-query": "^5.18.1",
1111
"@trpc/client": "11.0.0-next-beta.264",
1212
"@trpc/next": "11.0.0-next-beta.264",

packages/app/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"@openzeppelin/merkle-tree": "1.0.5",
2424
"@react-native-async-storage/async-storage": "1.21.0",
2525
"@scure/base": "^1.1.5",
26-
"@supabase/auth-helpers-nextjs": "0.10.0",
27-
"@supabase/auth-helpers-react": "0.5.0",
28-
"@supabase/postgrest-js": "1.15.7",
29-
"@supabase/supabase-js": "2.44.2",
26+
"@supabase/auth-helpers-nextjs": "^0.10.0",
27+
"@supabase/auth-helpers-react": "^0.5.0",
28+
"@supabase/postgrest-js": "^1.15.8",
29+
"@supabase/supabase-js": "^2.45.0",
3030
"@tamagui/animations-react-native": "^1.101.7",
3131
"@tamagui/colors": "^1.101.7",
3232
"@tamagui/helpers-icon": "^1.101.7",

packages/contracts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"devDependencies": {
3333
"@my/supabase": "workspace:*",
3434
"@openzeppelin/merkle-tree": "1.0.5",
35-
"@supabase/supabase-js": "2.44.2",
35+
"@supabase/supabase-js": "^2.45.0",
3636
"@types/bun": "^1.1.6",
3737
"@uniswap/v3-periphery": "^1.4.4",
3838
"debug": "^4.3.6",

packages/playwright/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@my/supabase": "workspace:*",
1111
"@my/wagmi": "workspace:*",
1212
"@playwright/test": "^1.45.1",
13-
"@supabase/supabase-js": "2.44.2",
13+
"@supabase/supabase-js": "^2.45.0",
1414
"@types/bun": "^1.1.6",
1515
"@types/jsonwebtoken": "^9.0.2",
1616
"@types/pg": "^8",

packages/workflows/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"dependencies": {
3838
"@my/supabase": "workspace:*",
3939
"@my/wagmi": "workspace:*",
40-
"@supabase/supabase-js": "2.44.2",
40+
"@supabase/supabase-js": "^2.45.0",
4141
"@temporalio/activity": "^1.10.1",
4242
"@temporalio/workflow": "^1.10.1",
4343
"app": "workspace:*"

supabase/database-generated.types.ts

+26-24
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ export type Database = {
12551255
update_distribution_shares: {
12561256
Args: {
12571257
distribution_id: number
1258-
shares: unknown[]
1258+
shares: Database["public"]["Tables"]["distribution_shares"]["Row"][]
12591259
}
12601260
Returns: undefined
12611261
}
@@ -1272,25 +1272,27 @@ export type Database = {
12721272
}
12731273
CompositeTypes: {
12741274
activity_feed_user: {
1275-
id: string
1276-
name: string
1277-
avatar_url: string
1278-
send_id: number
1279-
tags: unknown
1275+
id: string | null
1276+
name: string | null
1277+
avatar_url: string | null
1278+
send_id: number | null
1279+
tags: string[] | null
12801280
}
12811281
tag_search_result: {
1282-
avatar_url: string
1283-
tag_name: string
1284-
send_id: number
1285-
phone: string
1282+
avatar_url: string | null
1283+
tag_name: string | null
1284+
send_id: number | null
1285+
phone: string | null
12861286
}
12871287
}
12881288
}
12891289
}
12901290

1291+
type PublicSchema = Database[Extract<keyof Database, "public">]
1292+
12911293
export type Tables<
12921294
PublicTableNameOrOptions extends
1293-
| keyof (Database["public"]["Tables"] & Database["public"]["Views"])
1295+
| keyof (PublicSchema["Tables"] & PublicSchema["Views"])
12941296
| { schema: keyof Database },
12951297
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
12961298
? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
@@ -1303,10 +1305,10 @@ export type Tables<
13031305
}
13041306
? R
13051307
: never
1306-
: PublicTableNameOrOptions extends keyof (Database["public"]["Tables"] &
1307-
Database["public"]["Views"])
1308-
? (Database["public"]["Tables"] &
1309-
Database["public"]["Views"])[PublicTableNameOrOptions] extends {
1308+
: PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] &
1309+
PublicSchema["Views"])
1310+
? (PublicSchema["Tables"] &
1311+
PublicSchema["Views"])[PublicTableNameOrOptions] extends {
13101312
Row: infer R
13111313
}
13121314
? R
@@ -1315,7 +1317,7 @@ export type Tables<
13151317

13161318
export type TablesInsert<
13171319
PublicTableNameOrOptions extends
1318-
| keyof Database["public"]["Tables"]
1320+
| keyof PublicSchema["Tables"]
13191321
| { schema: keyof Database },
13201322
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
13211323
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
@@ -1326,8 +1328,8 @@ export type TablesInsert<
13261328
}
13271329
? I
13281330
: never
1329-
: PublicTableNameOrOptions extends keyof Database["public"]["Tables"]
1330-
? Database["public"]["Tables"][PublicTableNameOrOptions] extends {
1331+
: PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
1332+
? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
13311333
Insert: infer I
13321334
}
13331335
? I
@@ -1336,7 +1338,7 @@ export type TablesInsert<
13361338

13371339
export type TablesUpdate<
13381340
PublicTableNameOrOptions extends
1339-
| keyof Database["public"]["Tables"]
1341+
| keyof PublicSchema["Tables"]
13401342
| { schema: keyof Database },
13411343
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
13421344
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
@@ -1347,8 +1349,8 @@ export type TablesUpdate<
13471349
}
13481350
? U
13491351
: never
1350-
: PublicTableNameOrOptions extends keyof Database["public"]["Tables"]
1351-
? Database["public"]["Tables"][PublicTableNameOrOptions] extends {
1352+
: PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
1353+
? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
13521354
Update: infer U
13531355
}
13541356
? U
@@ -1357,14 +1359,14 @@ export type TablesUpdate<
13571359

13581360
export type Enums<
13591361
PublicEnumNameOrOptions extends
1360-
| keyof Database["public"]["Enums"]
1362+
| keyof PublicSchema["Enums"]
13611363
| { schema: keyof Database },
13621364
EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
13631365
? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]
13641366
: never = never,
13651367
> = PublicEnumNameOrOptions extends { schema: keyof Database }
13661368
? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]
1367-
: PublicEnumNameOrOptions extends keyof Database["public"]["Enums"]
1368-
? Database["public"]["Enums"][PublicEnumNameOrOptions]
1369+
: PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
1370+
? PublicSchema["Enums"][PublicEnumNameOrOptions]
13691371
: never
13701372

supabase/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"devDependencies": {
3737
"dotenv-cli": "^7.3.0",
38-
"supabase": "1.145.4",
38+
"supabase": "1.187.10",
3939
"type-fest": "^4.18.3"
4040
}
4141
}

0 commit comments

Comments
 (0)