Releases: udecode/better-auth-convex
Releases · udecode/better-auth-convex
v0.4.7
v0.4.6
v0.4.5
v0.4.4
v0.4.3
v0.4.2
Patch Changes
-
df53a30: Add support for custom mutation builders in
createClientandcreateApi. Both functions now accept an optionalinternalMutationparameter, allowing you to wrap internal mutations with custom context (e.g., triggers, aggregates, middleware).Usage:
const internalMutation = customMutation( internalMutationGeneric, customCtx(async (ctx) => ({ db: triggers.wrapDB(ctx).db, })) ); // Pass to createClient createClient({ authFunctions, schema, internalMutation, triggers, }); // Pass to createApi createApi(schema, { ...auth.options, internalMutation, });
v0.4.1
Patch Changes
- cd33fd3:
@convex-dev/[email protected]
v0.4.0
Minor Changes
-
fcbc004: - vendor:
@convex-dev/better-auth0.9.5and[email protected]-
fix: swap old and new doc params in onUpdate trigger
BREAKING CHANGE: 2nd and 3rd params in onUpdate trigger are swapped.
Previously:onUpdate(ctx, oldDoc, newDoc)
Now:onUpdate(ctx, newDoc, oldDoc)
-