Repository navigation
feat(cli): upgrade @supabase/typegen to 0.3.1 - #7202
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🤖 AI Review
Reviewed all three Claude findings and the completed Codex review, which reported none. Confirmed the Swift subprocess documentation omission and wrapping nit. The reported Swift breaking change remains uncertain because the dependency implementation is unavailable. Claims about SUPABASE_TYPEGEN and automatic binary discovery also remain unverified.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟠 MAJOR | apps/cli/package.json:64 |
breaking-change |
claude | The dependency upgrade reportedly breaks existing Swift generation by requiring an external tool, changing generated types, and rejecting previously accepted access-control values, requiring breaking-release handling. |
| 🟡 MINOR | apps/cli/src/commands/gen/types/SIDE_EFFECTS.md:9 |
documentation |
claude | The introduction explicitly adds the Swift supabase-typegen subprocess, but the subprocess inventory still names only Dart as a generator. |
| ⚪ NIT | apps/cli/src/commands/gen/types/SIDE_EFFECTS.md:9 |
documentation |
claude | The edited prose at lines 9 and 195 exceeds the surrounding paragraphs' wrapping width. |
Stats
Claude findings: 3 · Codex findings: 0 · Confirmed: 2 · Refuted: 0 · Uncertain: 1
Models: claude-opus-5-5 + gpt-6.1-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
avallete
approved these changes
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TL;DR:
gen typesbundles@supabase/typegen@0.3.1, which pins@supabase/postgrest-typegen@0.6.0.--lang swiftnow runs supabase-swift'ssupabase-typegenbinary instead of an in-process generator, view columns that select aNOT NULLsource column are typed non-nullable, and the introspected document gains the resolvedrpcFunctionscollection.What changed
@supabase/typegenfrom0.2.2to0.3.1inapps/cli/package.json. The lockfile moves@supabase/postgrest-typegenfrom0.4.0to0.6.0andarktypefrom2.2.5to2.2.8(with@ark/schema,@ark/utilandarkregex).pnpm-workspace.yaml: theminimumReleaseAgeExcludeentries for the two typegen packages move to the new versions, both published on 2026-10-16. The arktype entries are removed, since 2.2.8 was published on 2026-10-07 and is already past the 7-day window.SIDE_EFFECTS.mdforgen types: Swift is listed as an external tool, and--swift-access-controlaccepts onlyinternalandpublic.Output changes
supabase-typegen, emitting@Tablestructs for the PostgREST v3 typed API. The binary is resolved fromSUPABASE_TYPEGEN,PATH, or the supabase-swift release the project depends on.--swift-access-control privateandpackagenow fail validation before anything runs.NOT NULLsource column is typed non-nullable instead of nullable./rpc, and the computed-field fallback is narrowed.dart run supabase_typegen --output -now carriesrpcFunctions(supabase/sdk#271), which supabase_typegen reads to generate typed RPC methods.Linked issue
No GitHub issue.
open-for-contributionlabel (or I'm a Supabase maintainer).Checklist
fix(cli): …).types:check,lint:check,fmt:check,knip:checkandlint:effect:checkpass across the workspace.lint:actions:checkand the Go lint were not run locally, and this PR touches no workflow or Go code.gentests on bun 1.4.2: 114 unit tests pass (1 skipped), 196 integration tests pass.