Skip to content

fix(auth): dedupe raw Convex auth schema import#238

Merged
zbeyens merged 1 commit into
mainfrom
codex/auth-schema-import-idempotent
Apr 23, 2026
Merged

fix(auth): dedupe raw Convex auth schema import#238
zbeyens merged 1 commit into
mainfrom
codex/auth-schema-import-idempotent

Conversation

@zbeyens
Copy link
Copy Markdown
Member

@zbeyens zbeyens commented Apr 23, 2026

🐛 Fixes duplicate authSchema import on raw Convex auth add
🟢 95-100% confidence

Phase 🧪 Tests 🌐 Browser
Reproduced 🔴 focused registry regression failed ➖ N/A
Verified 🟢 bun check ➖ N/A

✅ Outcome

  • kitcn add auth --preset convex reuses existing authSchema imports with either quote style.
  • Added regression coverage for double-quoted authSchema imports.
  • Added patch changeset.

🏗️ Design

  • Chosen seam: raw Convex schema registration builder.
  • Why not quick patch: exact string matching caused the duplicate.
  • Why not broader change: AST rewrite is overkill for one import guard.

🧪 Verified

  • bun check

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 23, 2026

🦋 Changeset detected

Latest commit: f43fc36

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
kitcn Patch
@kitcn/resend Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
better-convex Ready Ready Preview, Comment Apr 23, 2026 8:51am

Request Review

@zbeyens zbeyens merged commit 3b14bfc into main Apr 23, 2026
3 checks passed
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.

1 participant