Skip to content

fix(typegen): pin @supabase/postgrest-typegen to 0.2.4 - #216

Merged
spydon merged 1 commit into
mainfrom
lukasklingsbo/typegen-pin-postgrest-typegen
Sep 25, 2026
Merged

spydon merged 1 commit into
mainfrom
lukasklingsbo/typegen-pin-postgrest-typegen

Conversation

@spydon

@spydon spydon commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Summary

@supabase/typegen depended on @supabase/postgrest-typegen through ^0.2.3 and its lockfile still resolved 0.2.3. This pins the dependency to the exact 0.2.4 released in #215.

Why an exact pin

The registry's contract, added in #213, is that a consumer depends on @supabase/typegen alone and gets one postgrest-typegen version for both introspection (re-exported introspect) and the in-process generators. A caret range lets a consumer's lockfile resolve any later 0.2.x, so "the version the generators were built against" would not be a guarantee. With an exact pin it is: every postgrest-typegen bump becomes a registry release, and dependabot's existing bun group bumps the pin.

Changes

  • packages/typegen/package.json and bun.lock: 0.2.4, exact.
  • README and CLAUDE.md: one sentence each on why the pin is exact.

Checks: typecheck, format and lint, knip, 47 tests, and a frozen-lockfile install all pass.

The registry promises consumers a single postgrest-typegen version for
introspection and generation alike, which a caret range cannot
guarantee. Pin the exact version and take the 0.2.4 release; dependabot
keeps the pin current and each bump is a registry release.
@spydon
spydon requested a review from a team as a code owner September 25, 2026 08:15
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 40977c85-89a3-4185-8d38-36b6b87d2948

📥 Commits

Reviewing files that changed from the base of the PR and between 6d479f8 and 05253b0.

⛔ Files ignored due to path filters (1)
  • packages/typegen/bun.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • packages/typegen/CLAUDE.md
  • packages/typegen/README.md
  • packages/typegen/package.json

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Chores
    • Type generation tooling now uses a fixed version of its generator rather than accepting a range of versions. Automated dependency updates will continue to keep the generator current. This change affects development tooling; no user-facing features or behavior are changed.

Walkthrough

The typegen package pins @supabase/postgrest-typegen to version 0.2.4, replacing the ^0.2.3 range. The README and CLAUDE.md state that the dependency uses an exact version and that Dependabot updates the pin.

Priority: ⬇️ Low

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 05253

The dependency pin and lockfile agree, so frozen-lockfile installs are not blocked by this change. No material merge risk remains.

Architecture Summary

Architecture risk: 🔵 Low · up to 05253

The change affects 1 system.

Changed systems: packages/typegen

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — packages/typegen (library) was modified; 3 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in packages/typegen/CLAUDE.md: Added an invariant requiring an exact @supabase/postgrest-typegen dependency pin, stating that the registry promises consumers one version for both introspection and generation and that Dependabot bumps the pin.
  • observed — Modified behavior in packages/typegen/README.md: Adds that the postgrest-typegen dependency uses an exact version rather than a range and that Dependabot updates it with each registry release.
  • observed — Modified behavior in packages/typegen/package.json: Pins @supabase/postgrest-typegen to 0.2.4, replacing the ^0.2.3 version range.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@spydon
spydon merged commit de4806e into main Sep 25, 2026
4 checks passed
@spydon
spydon deleted the lukasklingsbo/typegen-pin-postgrest-typegen branch September 25, 2026 08:29
mandarini pushed a commit that referenced this pull request Sep 25, 2026
🤖 I have created a release *beep* *boop*
---


## 0.1.0 (2026-09-25)


### Features

* **typegen:** depend on the registry alone and prepare it for hosted
consumers ([#213](#213))
([ff5e98d](ff5e98d))


### Bug Fixes

* **typegen:** pin @supabase/postgrest-typegen to 0.2.4
([#216](#216))
([de4806e](de4806e))


### Miscellaneous Chores

* release 1.3.0 ([#97](#97))
([ee2ef6e](ee2ef6e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
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