Skip to content

feat: new upgrade flow#125

Merged
Yostra merged 23 commits intomainfrom
rs/upgrade-flow
Mar 6, 2026
Merged

feat: new upgrade flow#125
Yostra merged 23 commits intomainfrom
rs/upgrade-flow

Conversation

@imor
Copy link
Collaborator

@imor imor commented Feb 27, 2026

This PR:

  • Improves typescript checking in VSCode by:
    • Adding deno.json file to typecheck edge function.
    • Enabling deno in .vscode/settings.json. Deno extension needs to be installed in VSCode for these changes to take effect.
    • Adding types to code wherever missing.
  • Move the schema comment format from plain text to JSON format for easier parsing.
    • The code to parse the schema is backwards compatible with the plain text format.
    • This code is also exposed to clients like Supabase frontend, so have consistent parsing logic everywhere.
  • The JSON comment now tracks the old and new versions to support upgrades in the Supabase UI.
  • Fixed bugs in which return values from the runSQL function were interpreted incorrectly.
  • The upgrade flow will just run the install function. Because the APIs used in it are idempotent, running it again upgrade to the latest version.

@imor imor changed the title feat: experimental upgrade flow [WIP] feat: experimental upgrade flow Mar 2, 2026
@imor imor marked this pull request as ready for review March 4, 2026 12:27
@imor imor changed the title [WIP] feat: experimental upgrade flow feat: new upgrade flow Mar 4, 2026
@imor imor requested a review from Yostra March 5, 2026 05:01
@Yostra Yostra merged commit 2c24154 into main Mar 6, 2026
4 of 6 checks passed
@Yostra Yostra deleted the rs/upgrade-flow branch March 6, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants