Conversation
|
@onmax is attempting to deploy a commit to the Convex Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughUpdates CI to test multiple better-auth versions, widens peer dependency range for better-auth, removes Passkey integration, adds id/_id handling and enhanced where-clause checks in the adapter, introduces optional select for findMany, and refactors inline adapter test orchestration. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/component/adapterTest.ts (1)
158-168:⚠️ Potential issue | 🟡 MinorType mismatch:
typeof getAdapterdoesn't match the value actually passed.At line 153,
getAdapter(ctx)is passed — this is the return type ofgetAdapter, i.e.(opts?: Omit<BetterAuthOptions, "database">) => Promise<adapter>. But line 164 annotates the parameter astypeof getAdapter, which is the full curried signature(ctx: GenericCtx<DataModel>) => (opts?: Omit<BetterAuthOptions, "database">) => Promise<adapter>.Inside
runCustomAdapterTests,getAdapter()is called with no arguments (e.g., lines 170, 181), which happens to work at runtime because the inner function'soptsparameter is optional. However, the type annotation is semantically incorrect.Proposed fix
- getAdapter: typeof getAdapter; + getAdapter: ReturnType<typeof getAdapter>;
🤖 Fix all issues with AI agents
In `@package.json`:
- Line 106: The peer dependency range for "better-auth" currently
("better-auth": ">=1.4.9 <1.6.0") excludes prerelease 1.5.0-beta.* versions;
update the version spec for the "better-auth" entry in package.json to
explicitly allow prereleases (for example use an OR clause like >=1.4.9 <1.5.0
|| >=1.5.0-beta.0 <1.6.0) so that 1.5.0-beta.* is matched by the peerDependency
resolver.
🧹 Nitpick comments (1)
src/component/adapterTest.ts (1)
55-62: Consider clearing all models consistently withrunCustomAdapterTests.The
resethelper clearsuser,session,account, andverification, while thebeforeEachinrunCustomAdapterTests(line 169-179) only clearsuserandsession. This inconsistency could cause test pollution if custom tests ever touchaccountorverificationdata. Not a bug today, but worth noting.
Fixes #251.
Summary by CodeRabbit
New Features
Removed Features
Improvements
Tests
Documentation