Skip to content

Commit 123bed1

Browse files
authored
Merge pull request #3686 from liam-hq/renovate/supabase-2.x
chore(deps): update dependency supabase to v2.45.4
2 parents 2817f20 + 782cee2 commit 123bed1

File tree

5 files changed

+26
-27
lines changed

5 files changed

+26
-27
lines changed

frontend/internal-packages/db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@biomejs/biome": "2.2.4",
1717
"@liam-hq/configs": "workspace:*",
1818
"eslint": "9.36.0",
19-
"supabase": "2.40.6",
19+
"supabase": "2.45.4",
2020
"type-fest": "4.41.0",
2121
"typescript": "5.9.2",
2222
"vitest": "3.2.4"

frontend/internal-packages/db/supabase/database.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ export type Database = {
762762
}
763763
l2_normalize: {
764764
Args: { '': string } | { '': unknown } | { '': unknown }
765-
Returns: string
765+
Returns: unknown
766766
}
767767
put_checkpoint: {
768768
Args: { p_blobs: Json; p_checkpoint: Json }

pnpm-lock.yaml

Lines changed: 9 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/extract-supabase-anon-key.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/bin/bash
22

3-
# Execute the supabase status command and capture its output
4-
STATUS_OUTPUT=$(pnpm --filter @liam-hq/db exec supabase status)
3+
# Execute the supabase status command with env output format and capture its output
4+
STATUS_OUTPUT=$(pnpm --filter @liam-hq/db exec supabase status -o env)
55

6-
# Extract the first anon key from the output
7-
# Using a more precise grep pattern to match only the anon key line
8-
ANON_KEY_LINE=$(echo "$STATUS_OUTPUT" | grep -m 1 "anon key:")
6+
# Extract the anon key from the output
7+
# Using grep to match the ANON_KEY line
8+
ANON_KEY_LINE=$(echo "$STATUS_OUTPUT" | grep "^ANON_KEY=")
99

10-
# Clean up and extract just the key
11-
# Remove "anon key: " prefix
12-
ANON_KEY=$(echo "$ANON_KEY_LINE" | sed 's/.*anon key: \(.*\)/\1/' | tr -d ' ')
10+
# Clean up and extract just the key value
11+
# Remove ANON_KEY=" prefix and trailing "
12+
ANON_KEY=$(echo "$ANON_KEY_LINE" | sed 's/^ANON_KEY="\(.*\)"$/\1/')
1313

1414
if [ -z "$ANON_KEY" ]; then
1515
echo "Failed to extract the anon key from Supabase status output"

scripts/extract-supabase-service-key.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/bin/bash
22

3-
# Execute the supabase status command and capture its output
4-
STATUS_OUTPUT=$(pnpm --filter @liam-hq/db exec supabase status)
3+
# Execute the supabase status command with env output format and capture its output
4+
STATUS_OUTPUT=$(pnpm --filter @liam-hq/db exec supabase status -o env)
55

66
# Extract the service role key from the output
7-
# Using a precise grep pattern to match only the service role key line
8-
SERVICE_KEY_LINE=$(echo "$STATUS_OUTPUT" | grep -m 1 "service_role key:")
7+
# Using grep to match the SERVICE_ROLE_KEY line
8+
SERVICE_KEY_LINE=$(echo "$STATUS_OUTPUT" | grep "^SERVICE_ROLE_KEY=")
99

10-
# Clean up and extract just the key
11-
# Remove "service_role key: " prefix
12-
SERVICE_KEY=$(echo "$SERVICE_KEY_LINE" | sed 's/.*service_role key: \(.*\)/\1/' | tr -d ' ')
10+
# Clean up and extract just the key value
11+
# Remove SERVICE_ROLE_KEY=" prefix and trailing "
12+
SERVICE_KEY=$(echo "$SERVICE_KEY_LINE" | sed 's/^SERVICE_ROLE_KEY="\(.*\)"$/\1/')
1313

1414
if [ -z "$SERVICE_KEY" ]; then
1515
echo "Failed to extract the service role key from Supabase status output"

0 commit comments

Comments
 (0)