Skip to content

Report the bundled pg-delta version #7768

Backlog

Description

@martijn00

The CLI bundles pg-delta for supabase db diff and the declarative schema commands, but there's no way to ask which pg-delta release a given CLI build contains. supabase --version prints only the CLI version.

Use case

Tools that run pg-delta as a library next to the CLI want the two to plan the same way. When a plan from the library differs from the one supabase db diff produces, the first question is whether they're on the same pg-delta, and today the answer means reading the CLI's release notes or source.

Proposal

Any of:

  • supabase --version --verbose (or supabase version --json) listing bundled components, for example { "cli": "2.x.y", "pg-delta": "1.0.0-alpha.61", "postgres": "17.x" };
  • the pg-delta version in the header comment of migrations that db diff writes;
  • the version in the CLI's release notes and in package.json of the npm supabase package (for example a bundledDependencies style field).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions