Skip to content

feat: support next and v<N>.stable dist-tags - #456

Merged
Coly010 merged 2 commits into
mainfrom
columferry/cli-2630-setup-cli-next-stable-tags
Oct 7, 2026
Merged

Coly010 merged 2 commits into
mainfrom
columferry/cli-2630-setup-cli-next-stable-tags

Conversation

@Coly010

@Coly010 Coly010 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Feature

What is the current behavior?

version: only accepts latest, beta or an exact npm version. The Supabase CLI is adding two new npm dist-tags as part of its v3 branching/release setup (CLI-2630, supabase/cli#7038):

  • next: prereleases of the upcoming major (e.g. 3.0.0-next.4)
  • v<N>.stable (e.g. v2.stable): the maintenance line of an older major once a new major ships

Today version: next and version: v2.stable are rejected (exact versions like 3.0.0-next.1 already work).

What is the new behavior?

  • next and any v<N>.stable tag resolve via npm the same way beta does (supabase@next, supabase@v2.stable), case-insensitively.
  • The maintenance pattern is checked before the leading-v strip, so v2.stable isn't normalised into 2.stable.
  • The invalid-input message lists the new tags; action.yml, README and docs are updated.
  • Tests cover next, v2.stable, v10.stable, a concrete 3.0.0-next.4, and rejections (v2, 2.x, stable, v2.stable.1, next2, 2.stable, hotfix).

No e2e matrix entries yet: neither dist-tag exists on npm until the first next / maintenance release, so they'd fail. Worth adding once supabase@next is published.

bun run ci (format, lint, 28 tests) and bun run typecheck pass. Reaching @v3 users still needs the usual manual publish steps after merge.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Coly010
Coly010 requested a review from a team as a code owner October 7, 2026 11:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T14:50:50.590571Z bec2811 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Coly010 Coly010 self-assigned this Oct 7, 2026

@jgoux jgoux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Tag names match supabase/cli#7038, and the v<N>.stable check correctly runs before the leading-v strip. Three non-blocking nits inline.

Comment thread src/main.test.ts
Comment thread README.md
Comment thread docs/index.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Coly010
Coly010 merged commit bea6372 into main Oct 7, 2026
25 checks passed
@Coly010
Coly010 deleted the columferry/cli-2630-setup-cli-next-stable-tags branch October 7, 2026 15:56
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